/* Custom CSS for Silva Admin Dashboard */

/* ========================================
   FONT FACE DECLARATIONS
   ======================================== */

/* Gilroy Font Family */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-ultralight-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-ultralight-webfont.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-light-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-regular-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-medium-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-semibold-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-bold-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-extrabold-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-extrabold-webfont.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-heavy-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-heavy-webfont.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-black-webfont.woff2') format('woff2'),
         url('../fonts/gilroy-black-webfont.woff') format('woff');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

/* Rama Gothic Rounded Font Family */
@font-face {
    font-family: 'Rama Gothic Rounded';
    src: url('../fonts/RamaGothicRoundedE-Bold.woff2') format('woff2'),
         url('../fonts/RamaGothicRoundedE-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rama Gothic Rounded';
    src: url('../fonts/RamaGothicRoundedE-Heavy.woff2') format('woff2'),
         url('../fonts/RamaGothicRoundedE-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Gayathri Font Family (Additional fonts found) */
@font-face {
    font-family: 'Gayathri';
    src: url('../fonts/gayathri-100.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gayathri';
    src: url('../fonts/gayathri-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gayathri';
    src: url('../fonts/gayathri-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   FONT UTILITY CLASSES
   ======================================== */

/* Gilroy Font Classes */
.font-gilroy {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-gilroy-ultralight {
    font-family: 'Gilroy', sans-serif;
    font-weight: 100;
}

.font-gilroy-light {
    font-family: 'Gilroy', sans-serif;
    font-weight: 300;
}

.font-gilroy-regular {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

.font-gilroy-medium {
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
}

.font-gilroy-semibold {
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
}

.font-gilroy-bold {
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
}

.font-gilroy-extrabold {
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
}

.font-gilroy-heavy {
    font-family: 'Gilroy', sans-serif;
    font-weight: 900;
}

.font-gilroy-black {
    font-family: 'Gilroy', sans-serif;
    font-weight: 950;
}

/* Rama Gothic Font Classes */
.font-rama-gothic {
    font-family: 'Rama Gothic Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-rama-gothic-bold {
    font-family: 'Rama Gothic Rounded', sans-serif;
    font-weight: 700;
}

.font-rama-gothic-heavy {
    font-family: 'Rama Gothic Rounded', sans-serif;
    font-weight: 900;
}

/* Gayathri Font Classes */
.font-gayathri {
    font-family: 'Gayathri', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-gayathri-thin {
    font-family: 'Gayathri', sans-serif;
    font-weight: 100;
}

.font-gayathri-regular {
    font-family: 'Gayathri', sans-serif;
    font-weight: 400;
}

.font-gayathri-bold {
    font-family: 'Gayathri', sans-serif;
    font-weight: 700;
}

/* Override Bootstrap variables */
:root {
    --primary: #4e73df;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

/* Body and Layout */
body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-weight: 400;
    background-color: #f8f9fc;
}

/* Headings with Gilroy Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rama Gothic Rounded', sans-serif;
    letter-spacing: 0.8px;
}

h1 {
    font-weight: 900; /* Gilroy Bold */
    font-size: 3.375rem;
    color: #000000;
}

h2 {
    font-weight: 600; /* Gilroy SemiBold */
    font-size: 2.75rem;
}

h3 {
    font-weight: 600; /* Gilroy SemiBold */
}

h4 {
    font-weight: 500; /* Gilroy Medium */
}

h5 {
    font-weight: 500; /* Gilroy Medium */
}

h6 {
    font-weight: 400; /* Gilroy Regular */
}

.logo {
    width: 205px;
    height: 50px;
}

.logo a {
    display: block;
}

.logo a:focus-visible {
    outline: none;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.login-auth-logo {
    width: 38px;
    height: 50px;
}

.login-auth-logo a {
    display: block;
}

.login-auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-image {
    max-width: 800px;
    width: min(100%, 800px);
    aspect-ratio: 1 / 1;
    margin: auto;
}

.auth-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.auth-image.is-ready img {
    opacity: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 14rem;
    min-height: 100vh;
}

.sidebar .nav-item .nav-link {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar .nav-item .nav-link:hover {
    color: #fff;
}

.sidebar .nav-item.active .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    height: 4.375rem;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800; /* Gilroy ExtraBold */
    padding: 1.5rem 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    z-index: 1;
}

.sidebar-brand-icon i {
    font-size: 2rem;
}

.sidebar-brand-text {
    font-size: 0.85rem;
}

/* Topbar Styles */
.topbar {
    height: 4.375rem;
}

.topbar .navbar-search .input-group .form-control {
    border: none;
    background-color: #eaecf4;
    font-size: 0.85rem;
    height: auto;
    padding: 0.75rem 1rem;
}

.topbar .navbar-nav .nav-item .nav-link {
    color: #5a5c69;
    padding: 0.75rem 1rem;
}

.topbar .navbar-nav .nav-item .nav-link:hover {
    color: #858796;
}

/* Cards */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: none;
}

.card .card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Topbar User Profile Enhancements */
.topbar-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-user-name {
    color: #495057;
    font-weight: 500;
    text-decoration: none !important;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.topbar-user-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #495057;
}

.dropdown-toggle::after {
    margin-left: 0.5em;
}

#profileDropdown {
    position: relative;
}

.profile-dropdown-menu.active {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
}

/* Buttons */
.btn {
    font-size: 1rem;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.btn:target {
    transform: none !important;
}


.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Tables */
.table {
    font-size: 0.85rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    padding: 0.75rem;
    color: #858796;
    font-family: 'Gilroy', sans-serif;
}

/* Forms */
.form-control {
    border: 1px solid #0000001F;
    border-radius: 4px !important;
    font-size: 1rem;
    padding: 8px 12px;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Badges */
.badge {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    font-family: 'Gilroy', sans-serif;
    line-height: 1.2;
    border-radius: 30px;
}

.badge-gray {
    background-color: #F4F4F4;
    color: #000000;
}

.badge-success {
    background-color: #00BA001F !important;
    color: #00BA00 !important;
}

.badge-inactive {
    background-color: #f5126b1f;
    color: #f5126b;
}

.badge-warning {
    background-color: #fff5d6 !important;
    color: #ffbf00 !important;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    color: #495057;
    border-radius: 4px;
    margin: 0 3px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #f5126b !important;
    border-color: #f5126b !important;
    color: #fff;
    box-shadow: 0 2px 5px rgba(245, 18, 107, 0.2);
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination-info {
    font-size: 14px;
    font-weight: 500;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 8px 16px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

.dropdown-item:active {
    background-color: #F5126B !important;
}

/* Utilities */
.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-600 {
    color: #858796 !important;
}

.text-gray-500 {
    color: #b7b9cc !important;
}

.text-gray-400 {
    color: #d1d3e2 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.bg-gradient-primary {
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
}

.border-left-primary {
    border-left: 0.25rem solid var(--primary) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 6.5rem;
    }

    .sidebar .sidebar-brand-text {
        display: none;
    }

    .sidebar .nav-item .nav-link span {
        display: none;
    }
}

/* Animation */
.animated--grow-in {
    animation-name: growIn;
    animation-duration: 200ms;
    animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
}

@keyframes growIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    text-align: center;
    color: #fff;
    background: rgba(90, 92, 105, 0.5);
    line-height: 46px;
}

.scroll-to-top:focus,
.scroll-to-top:hover {
    color: white;
}

.scroll-to-top:hover {
    background: #5a5c69;
}

.scroll-to-top i {
    font-weight: 800;
}

.btn.button-primary {
    background-color: #F5126B !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
}

.btn.button-primary:hover {
    background-color: #ffffff !important;
    color: #F5126B !important;
    box-shadow: 0 0 4px #F5126B !important;
}

.btn.button-secondary {
    border-color: #F5126B !important;
    color: #F5126B !important;
    background-color: #FFFFFF !important;
}

.btn.button-secondary:hover {
    background-color: #F5126B !important;
    color: #FFFFFF !important;
}

.btn.button-tertiary {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    text-decoration: underline;
    border: 1px solid transparent;
}

.btn.button-tertiary:hover {
    border-color: #000000;
}

.btn.button-whiteBg {
    background-color: #9f003e !important;
    color: #FFFFFF !important;
    border: 1px solid #9f003e !important;
}


/* Toggle status control (Active/Inactive) */
.toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 999px;
  padding: 12px 20px 12px 20px;
  cursor: pointer;
  background: #e5e5e5; /* inactive base */
  color: #111;
  transition: background 160ms ease, color 160ms ease, transform 80ms ease;
}

/* Layout: push ends, and place knob left when inactive */
.toggle-btn:not(.is-active) .label { 
    order: 2; 
}

.toggle-btn:not(.is-active) .knob { 
    order: 1; 
}

.toggle-btn .label { 
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase; 
}

.toggle-btn .knob {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #111; color: #fff;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.toggle-btn .knob i {
    font-size: 14px;
    line-height: 1;
}

.toggle-btn:active {
    transform: scale(0.98);
}

/* Active state styled like provided design (pink) */
.toggle-btn.is-active {
    background: #F5126B;
    color: #fff;
}

.toggle-btn.is-active .knob {
    background: #fff;
    color: #F5126B;
}

/* Compact variant for tables */
.table .toggle-btn {
    padding: 4px 8px 4px 4px !important;
    gap: 4px;
    font-size: 12px;
}

.table .toggle-btn.is-active {
    padding: 4px 4px 4px 8px !important;
}

.table .toggle-btn .knob {
    width: 20px;
    height: 20px;
}

.table .toggle-btn:hover {
    background-color: #e5e5e5 !important;
}

/* Navigation Links */
.nav-link {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

/* Card Titles */
.card-title {
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
}

/* Form Labels */
.form-label, label {
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb-item {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

/* Alert Messages */
.alert {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

/* Modal Titles */
.modal-title {
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
}

/* Pagination */
.page-link {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

/* ========================================
   FONT WEIGHT UTILITY CLASSES
   ======================================== */

.fw-ultralight { font-weight: 100 !important; }
.fw-light { font-weight: 300 !important; }
.fw-regular { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }
.fw-heavy { font-weight: 900 !important; }
.fw-black { font-weight: 950 !important; }

/* ========================================
   RESPONSIVE FONT SIZES
   ======================================== */

.display-1 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
}

.display-2 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
}

.display-3 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
}

.display-4 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
}

/* Lead text */
.lead {
    font-family: 'Gilroy', sans-serif;
    font-weight: 300;
}

/* Small text */
small, .small {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
}

/* Custom Table Styling */
.custom-table .card-header {
    background-color: #FFFFFF !important;
    padding: 16px 24px;
    border: none;
}

.custom-table .card-header h4 {
    margin-bottom: 0 !important;
}

.custom-table .card-body {
    padding: 0px 0px 16px;
    overflow-x: auto;
}

.custom-table .pagination-block {
    padding: 0px 24px;
}

.custom-table .table {
    vertical-align: middle;
}

.custom-table .table thead {
    border-top: 1px solid #EEEEEE;
}

.custom-table .table thead a {
    color: #000000 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-table .table tbody tr {
    border-top: 1px solid #EEEEEE;
}

.custom-table .table tbody tr:hover {
    box-shadow: inset 0px 0px 0px rgb(218,220,224),inset -1px 0 0 rgb(219,220,224),0 0px 4px 0 rgba(60,64,67,0.3),0 1px 3px 1px rgba(60,64,67,0.15);
    position: relative;
    z-index: 4;
}

.custom-table .table tbody tr:hover td {
    box-shadow: none !important;
}

.custom-table .table th, .custom-table .table td {
    padding: 15px 8px;
    color: #000000;
    vertical-align: middle;
}

.custom-table .table th {
    font-size: 0.875rem;
}

.custom-table .table td {
    font-size: 1rem;
    font-weight: 500;
    border: none;
}

.custom-table .table td:first-child, .custom-table .table th:first-child {
    padding-left: 24px;
}

.custom-table .table td:last-child, .custom-table .table th:last-child {
    padding-right: 24px;
}

.custom-table .table td .button-secondary {
    font-weight: 400 !important;
}

.custom-table .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #F5126B;
    flex: none;
}

.custom-table .profile-pic .profile-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5126B;
    color: #FFFFFF;
    text-transform: uppercase;
}

.custom-table .user-role {
    border: 1px dashed #198754;
    color: #000000;
}

.wave-ripple {
    display: none !important;
}

.search-icon {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    margin: auto;
    z-index: 6;
}

.search-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.search-input {
    padding-left: 36px !important;
}

.form-group {
    position: relative;
}

.icon-eye {
    width: 16px;
    height: 16px;
    position: absolute;
    bottom: 13px;
    right: 16px;
    z-index: 6;
    cursor: pointer;
}

.icon-eye img {
    display: block;
    width: 100%;
    height: 100%;
}

.asterisk {
    color: #ff0000;
}

.modal-body {
    overflow-y: auto;
}
