.navbar {
        padding: 0.5rem 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        position: sticky;
        top: 0;
        z-index: 1020;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }    .navbar-brand {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .navbar-brand img {
        height: 32px;
        width: auto;
        border-radius: 6px;
    }
      .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.2);
        padding: 0.3rem 0.6rem;
        font-size: 1rem;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-toggler::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
    
    .navbar-toggler:hover::before {
        left: 100%;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .navbar-toggler:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }
      /* Enhanced mobile navigation menu */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            margin-top: 1rem;
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        [data-bs-theme="dark"] .navbar-collapse {
            background: rgba(33, 37, 41, 0.98);
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        .navbar-nav {
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
          .nav-link {
            padding: 1rem 1.25rem !important;
            border-radius: 10px;
            margin: 0.25rem 0;
            background: rgba(var(--bs-primary-rgb), 0.1);
            color: var(--bs-primary) !important;
            font-weight: 600;
            border-left: 4px solid transparent;
            position: relative;
            overflow: hidden;
        }
        
        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(var(--bs-primary-rgb), 0.1), transparent);
        }
        
        .nav-link:hover::before {
            left: 100%;
        }        .nav-link.active {
            background: rgba(var(--bs-warning-rgb), 0.9) !important;
            color: var(--bs-dark) !important;
            border-left-color: var(--bs-warning);
            box-shadow: 0 4px 15px rgba(var(--bs-warning-rgb), 0.4);
            font-weight: 700 !important;
        }
        
        [data-bs-theme="dark"] .nav-link.active {
            background: var(--bs-warning) !important;
            color: var(--bs-dark) !important;
        }
        
        [data-bs-theme="dark"] .nav-link {
            background: rgba(255, 255, 255, 0.1);
            color: #e1e1e1 !important;
        }        .nav-link:hover {
            background: rgba(var(--bs-primary-rgb), 0.2) !important;
            color: var(--bs-primary) !important;
            border-left-color: var(--bs-warning);
            box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
        }
        
        [data-bs-theme="dark"] .nav-link:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            color: #e1e1e1 !important;
        }
          .btn.nav-item {
            margin: 1rem 0 0.5rem 0;
            border-radius: 10px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2);
        }
        
        .btn.nav-item:hover {
            box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.3);
        }
        
        /* Mobile action buttons container */
        .mobile-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            margin-top: 1rem;
        }
        
        [data-bs-theme="dark"] .mobile-actions {
            border-top-color: rgba(255, 255, 255, 0.1);
        }
    }
    
    /* Additional mobile navigation improvements */
    @media (max-width: 991.98px) {
        .navbar-nav .nav-item {
            margin-bottom: 0.5rem;
        }
        
        .navbar-nav .nav-item:last-child {
            margin-bottom: 0;
        }
        
        .navbar-collapse {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }
        
        .navbar-collapse .d-flex {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        [data-bs-theme="dark"] .navbar-collapse .d-flex {
            border-top-color: rgba(255, 255, 255, 0.1);
        }
        
        /* Ensure mobile theme container has proper spacing */
        .mobile-theme-container {
            margin: 0.5rem 0 !important;
        }
        
        /* Better touch targets for mobile */
        .nav-link {
            padding: 0.75rem 1rem !important;
            border-radius: 6px !important;
            margin: 0.25rem 0 !important;
        }
          .nav-link:hover,
        .nav-link.active {
            background: rgba(var(--bs-primary-rgb), 0.2) !important;
            color: var(--bs-primary) !important;
        }
        
        [data-bs-theme="dark"] .nav-link:hover,
        [data-bs-theme="dark"] .nav-link.active {
            background: rgba(255, 255, 255, 0.2) !important;
            color: #e1e1e1 !important;
        }
    }
    
    /* Fix for navbar toggler icon alignment */
    .navbar-toggler {
        padding: 0.5rem !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    }
    
    .navbar-toggler-icon {
        width: 1.2em !important;
        height: 1.2em !important;
    }
    
    /* Desktop navigation refinements */
    @media (min-width: 992px) {
        .navbar-nav .nav-link {
            padding: 0.5rem 1rem;
            margin: 0 0.25rem;
            border-radius: 20px;
            transition: all 0.3s ease;
        }
          .navbar-nav .nav-link:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            transform: translateY(-2px);
        }
        
        .navbar-nav .nav-link.active {
            background: rgba(255, 255, 255, 0.3) !important;
            color: white !important;
            font-weight: 700;
        }
    }
    
    /* Enhanced footer for mobile */
    .footer {
        background: linear-gradient(135deg, var(--bs-light), #f8f9fa);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
    
    [data-bs-theme="dark"] .footer {
        background: linear-gradient(135deg, #212529, #2c3034);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile footer adjustments */
    @media (max-width: 767.98px) {
        .footer {
            padding: 2rem 1rem;
            text-align: center;
        }
        
        .footer .row > div {
            margin-bottom: 1rem;
        }
        
        .footer .row > div:last-child {
            margin-bottom: 0;
        }
        
        .footer .text-end {
            text-align: center !important;
        }
        
        .footer .justify-content-end {
            justify-content: center !important;
        }
    }    /* Quick access floating button for mobile */
    .floating-action {
        position: fixed;
        bottom: 80px;
        right: 16px;
        z-index: 1050;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
        color: white;
        border: none;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        opacity: 0;
        cursor: pointer;
    }
    
    .floating-action.show {
        opacity: 1;
    }
    
    .floating-action:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    /* Hide floating action on desktop */
    @media (min-width: 768px) {
        .floating-action {
            display: none;
        }
    }    /* Empty state styling */
    .empty-state-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .empty-state-container .card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
      /* Enhanced theme toggle button */
    .theme-toggle {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        cursor: pointer;
        font-size: 1.1rem;
    }
    
    .theme-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: all 0.4s ease;
        transform: translate(-50%, -50%);
    }
    
    .theme-toggle:hover::before {
        width: 100%;
        height: 100%;
    }
    
    .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.1) rotate(180deg);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .theme-toggle i {
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
    }
      /* Mobile theme toggle adjustments */
    @media (max-width: 767.98px) {
        .theme-toggle {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
    }
      /* Mobile theme mode label and toggle container */
    .theme-mode-label {
        color: var(--bs-dark) !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    
    [data-bs-theme="dark"] .theme-mode-label {
        color: #e1e1e1 !important;
        font-weight: 500 !important;
    }
      .theme-toggle-btn {
        background: var(--bs-primary) !important;
        border: 2px solid var(--bs-primary) !important;
        color: white !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        cursor: pointer !important;
        font-size: 1rem !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 40px !important;
        min-height: 40px !important;
        flex-shrink: 0 !important;
    }
    
    .theme-toggle-btn i {
        font-size: 1rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .theme-toggle-btn:hover {
        background: var(--bs-primary-dark) !important;
        border-color: var(--bs-primary-dark) !important;
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
    }
    
    .theme-toggle-btn:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    }
    
    [data-bs-theme="dark"] .theme-toggle-btn {
        background: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #000 !important;
    }
    
    [data-bs-theme="dark"] .theme-toggle-btn:hover {
        background: #ffcd3d !important;
        border-color: #ffcd3d !important;
    }
      /* Login button alignment fixes */
    .btn.d-inline-flex {
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        display: inline-flex !important;
        vertical-align: middle !important;
    }
    
    .btn.d-inline-flex i {
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    .btn.d-inline-flex:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        text-decoration: none !important;
    }
    
    /* Mobile login button adjustments */
    @media (max-width: 991.98px) {
        .btn.d-inline-flex {
            width: 100% !important;
            justify-content: center !important;
            padding: 0.75rem 1.5rem !important;
            margin-top: 1rem !important;
        }
        
        /* Ensure mobile nav items are properly spaced */
        .navbar-collapse .d-flex {
            flex-direction: column !important;
            gap: 0.5rem !important;
        }
    }
      /* Dark theme adjustments for nav elements */
    [data-bs-theme="dark"] .navbar-collapse {
        background: rgba(33, 37, 41, 0.98) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    [data-bs-theme="dark"] .theme-mode-label {
        color: #e1e1e1 !important;
    }
    
    [data-bs-theme="dark"] .nav-item > div {
        background: rgba(255, 255, 255, 0.1) !important;
    }
      /* Mobile theme container styling */
    .mobile-theme-container {
        background: rgba(var(--bs-primary-rgb), 0.1) !important;
        border: 1px solid rgba(var(--bs-primary-rgb), 0.2) !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.5rem 1rem !important;
    }
    
    [data-bs-theme="dark"] .mobile-theme-container {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .mobile-theme-container:hover {
        background: rgba(var(--bs-primary-rgb), 0.15) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    [data-bs-theme="dark"] .mobile-theme-container:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Breadcrumb for navigation context */
    .breadcrumb-nav {
        background: none;
        padding: 0;
        margin: 1rem 0;
    }
    
    .breadcrumb-nav .breadcrumb-item {
        font-size: 0.9rem;
    }
    
    .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
        content: '›';
        font-weight: bold;
    }
    
    /* Progress indicator for multi-step processes */
    .progress-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 2rem 0;
        gap: 1rem;
    }
    
    .progress-step {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bs-light);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .progress-step.active {
        background: var(--bs-primary);
        color: white;
        transform: scale(1.1);
    }
    
    .progress-step.completed {
        background: var(--bs-success);
        color: white;
    }
    
    .progress-line {
        height: 2px;
        width: 50px;
        background: var(--bs-light);
        transition: all 0.3s ease;
    }
    
    .progress-line.completed {
        background: var(--bs-success);
    }

    body {
        padding-bottom: 80px; /* Increased for mobile footer */
        transition: background-color 0.3s ease, color 0.3s ease;
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
        -webkit-tap-highlight-color: transparent; /* Remove blue highlight on tap */
    }
    
    /* Theme-specific body styles */
    body.theme-dark {
        background-color: #212529;
        color: #e1e1e1;
    }
    
    body.theme-light {
        background-color: #ffffff;
        color: #212529;
    }
    
    /* Mobile-optimized container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
    }
      /* Mobile-first search section */
    .search-section {
        background: transparent;
        color: inherit;
        padding: 2rem 0;
        margin: 0 0 2rem 0;
    }
      .search-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 2px solid var(--bs-primary);
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    [data-bs-theme="dark"] .search-card {
        background: rgba(44, 48, 52, 0.95);
        color: #e1e1e1;
        border-color: var(--bs-primary);
    }
      /* Mobile-optimized form controls */
    .form-control-lg {
        font-size: 18px; /* Prevent zoom on iOS */
        padding: 12px 16px;
        border-radius: 10px;
        border: 2px solid #e9ecef;
    }
    
    .form-control-lg:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    }/* Mobile-optimized buttons */
    .btn-lg {
        padding: 14px 24px;
        font-size: 18px;
        border-radius: 10px;
        font-weight: 600;
        min-height: 50px; /* Better touch target */
        display: flex;
        align-items: center;
    justify-content: center;
    }
    
    /* Touch-friendly button spacing */
    @media (max-width: 767.98px) {
        .btn-lg {
            margin-bottom: 1rem;
            padding: 16px 24px;
            font-size: 16px;
        }
    }
    
    /* Mobile-first card design */
    .mobile-card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.5rem;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    /* Mobile-optimized card headers */
    .mobile-card-header {
        padding: 1rem;
        font-weight: 600;
        font-size: 1.1rem;
        border-bottom: none;
        position: relative;
    }
    
    .mobile-card-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1rem;
        right: 1rem;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }
      .student-info-header {
        background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
        color: white;
    }
    
    .contact-info-header {
        background: linear-gradient(135deg, var(--bs-success), #20c997);
        color: white;
    }
    
    .outstanding-fees-header {
        background: linear-gradient(135deg, var(--bs-warning), #ffc107);
        color: var(--bs-dark);
    }
    
    .payment-history-header {
        background: linear-gradient(135deg, var(--bs-info), var(--bs-primary));
        color: white;
    }
    
    /* Mobile-optimized card body */
    .mobile-card-body {
        padding: 1.25rem;
    }
    
    /* Mobile-first info display */
    .info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    .info-label {
        font-weight: 600;
        color: var(--bs-gray-700);
        flex: 0 0 auto;
        margin-right: 1rem;
    }
    
    .info-value {
        text-align: right;
        flex: 1;
    }
    
    [data-bs-theme="dark"] .info-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    [data-bs-theme="dark"] .info-label {
        color: #adb5bd;
    }
    
    /* Mobile-optimized tables */
    .mobile-table {
        font-size: 0.9rem;
    }
    
    .mobile-table th {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0.75rem 0.5rem;
    }
    
    .mobile-table td {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
    }
      /* Mobile-first responsive table */
    @media (max-width: 767.98px) {
        .table-responsive-mobile {
            border: none;
            margin: 0;
        }
        
        .table-responsive-mobile table,
        .table-responsive-mobile thead,
        .table-responsive-mobile tbody,
        .table-responsive-mobile th,
        .table-responsive-mobile td,
        .table-responsive-mobile tr {
            display: block;
        }
        
        .table-responsive-mobile thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        
        .table-responsive-mobile tr {
            border: 1px solid #ccc;
            border-radius: 10px;
            margin-bottom: 1rem;
            padding: 1rem;
            background: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        [data-bs-theme="dark"] .table-responsive-mobile tr {
            background: #2c3034;
            border-color: rgba(255, 255, 255, 0.1);
        }
          .table-responsive-mobile td {
            border: none;
            position: relative;
            padding: 0.75rem 0 0.75rem 40%;
            text-align: right;
            word-wrap: break-word;
        }
        
        .table-responsive-mobile td:before {
            content: attr(data-label) ": ";
            position: absolute;
            left: 0;
            width: 35%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: 600;
            text-align: left;
            color: var(--bs-gray-600);
        }
        
        /* Special styling for mobile table cells */
        .table-responsive-mobile td:first-child {
            border-top: none;
            font-weight: 600;
        }
        
        .table-responsive-mobile td:last-child {
            border-bottom: none;
            font-size: 1.1rem;
        }
        
        /* Footer row special styling for Total Outstanding */
        .table-responsive-mobile tfoot tr {
            background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
            border-color: #ffc107;
        }
        
        [data-bs-theme="dark"] .table-responsive-mobile tfoot tr {
            background: linear-gradient(135deg, #664d03, #997404) !important;
        }
        
        /* Increase width for Total Outstanding on mobile */
        .table-responsive-mobile tfoot td {
            padding: 1rem 0 1rem 25% !important;
            font-size: 1.2rem !important;
        }
        
        .table-responsive-mobile tfoot td:before {
            width: 20% !important;
            font-size: 1rem;
        }
    }
    
    /* Mobile-optimized alerts */
    .alert {
        border-radius: 10px;
        border: none;
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile-optimized badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-weight: 500;
    }
    
    /* Sticky elements for mobile */
    .sticky-search {
        position: sticky;
        top: 76px; /* Below navbar */
        z-index: 100;
        background: white;
        padding: 1rem;
        margin: -1rem -15px 1rem -15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    [data-bs-theme="dark"] .sticky-search {
        background: #212529;
    }
    
    /* Footer adjustments for mobile */
    .footer {
        background-color: var(--bs-light);
        border-top: 1px solid rgba(0,0,0,0.1);
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        padding: 1rem;
    }
    
    .bg-dark.footer, [data-bs-theme="dark"] .footer {
        background-color: #212529 !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        color: #e1e1e1;
    }
    
    /* Dark mode card overrides */
    [data-bs-theme="dark"] .mobile-card {
        background-color: #2c3034;
        border-color: rgba(255,255,255,0.1);
    }
    
    [data-bs-theme="dark"] .mobile-card-header {
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    [data-bs-theme="dark"] .table {
        color: #e1e1e1;
    }
    
    [data-bs-theme="dark"] .table-light {
        color: #212529;
    }
    
    [data-bs-theme="dark"] .alert-success {
        color: #d1e7dd;
        background-color: rgba(25, 135, 84, 0.3);
        border-color: rgba(25, 135, 84, 0.4);
    }
    
    [data-bs-theme="dark"] .alert-info {
        color: #cff4fc;
        background-color: rgba(13, 202, 240, 0.3);
        border-color: rgba(13, 202, 240, 0.4);
    }
    
    [data-bs-theme="dark"] .text-primary {
        color: #8bb9fe !important;
    }
    
    [data-bs-theme="dark"] .text-muted {
        color: #adb5bd !important;
    }
    
    /* Tablet and Desktop adjustments */
    @media (min-width: 768px) {
        .container {
            padding-left: 30px;
            padding-right: 30px;
        }
        
        .search-section {
            margin: -2rem -30px 3rem -30px;
            padding: 3rem 0;
        }
        
        body {
            padding-bottom: 60px;
        }
    }
      @media (min-width: 992px) {
        .mobile-card {
            margin-bottom: 2rem;
        }
        
        .mobile-card-body {
            padding: 2rem;
        }
        
        .mobile-card-header {
            padding: 1.5rem 2rem;
        }        /* Desktop layout: Four sections - Student Info + Contact Info on top, Outstanding Fees + Payment History on bottom */
        .desktop-two-column {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .desktop-two-column .mobile-card {
            min-width: 0; /* Prevent flex items from overflowing */
        }
        
        /* Top row: Student info and Contact info side by side */
        .desktop-two-column .student-contact-row {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            width: 100%;
        }
        
        .desktop-two-column .student-contact-row .mobile-card {
            flex: 1;
        }
        
        /* Bottom row: Outstanding fees and payment history side by side */
        .desktop-two-column .fees-payment-row {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            width: 100%;
        }
        
        .desktop-two-column .fees-payment-row .mobile-card {
            flex: 1;
        }
    }
    
    /* Tablet responsive adjustments */
    @media (max-width: 1199.98px) and (min-width: 768px) {
        .desktop-two-column .student-contact-row,
        .desktop-two-column .fees-payment-row {
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .desktop-two-column .student-contact-row .mobile-card,
        .desktop-two-column .fees-payment-row .mobile-card {
            flex: none;
        }
    }
    
    
    /* Animation and loading states */
    .fade-in {
        animation: fadeIn 0.5s ease-in;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Loading spinner for mobile */
    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
    }
      @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Quick Tips and Help Section Styles */
    .help-section {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border-radius: 15px;
        padding: 2rem;
        margin: 2rem 0;
        position: relative;
        overflow: hidden;
    }
    
    .help-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--bs-primary), var(--bs-info), var(--bs-success));
    }
    
    [data-bs-theme="dark"] .help-section {
        background: linear-gradient(135deg, #2c3034, #212529);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .help-tips-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .help-tip-item {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        padding: 1rem;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .help-tip-item:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    [data-bs-theme="dark"] .help-tip-item {
        background: rgba(44, 48, 52, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e1e1e1;
    }
    
    [data-bs-theme="dark"] .help-tip-item:hover {
        background: rgba(44, 48, 52, 0.95);
    }
    
    .help-tip-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--bs-primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.5rem;
        font-size: 1.2rem;
    }
    
    .help-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-top: 1.5rem;
    }
      .help-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: var(--bs-white);
        color: var(--bs-primary);
        text-decoration: none;
        border-radius: 25px;
        border: 2px solid var(--bs-primary);
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    /* Override Bootstrap button styles for help-link buttons */
    button.help-link {
        background: var(--bs-white) !important;
        color: var(--bs-primary) !important;
        border: 2px solid var(--bs-primary) !important;
        border-radius: 25px !important;
        font-family: inherit !important;
        font-size: inherit !important;
        line-height: inherit !important;
        text-align: left !important;
        white-space: nowrap !important;
    }
      .help-link:hover,
    button.help-link:hover {
        background: var(--bs-primary) !important;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
    }
    
    [data-bs-theme="dark"] .help-link,
    [data-bs-theme="dark"] button.help-link {
        background: #2c3034 !important;
        color: var(--bs-info) !important;
        border-color: var(--bs-info) !important;
    }
    
    [data-bs-theme="dark"] .help-link:hover,
    [data-bs-theme="dark"] button.help-link:hover {
        background: var(--bs-info) !important;
        color: #212529 !important;
    }
    
    .contact-info-section {
        background: rgba(var(--bs-success-rgb), 0.1);
        border-radius: 10px;
        padding: 1.5rem;
        margin-top: 1.5rem;
        border: 1px solid rgba(var(--bs-success-rgb), 0.2);
    }
    
    [data-bs-theme="dark"] .contact-info-section {
        background: rgba(var(--bs-success-rgb), 0.15);
        border-color: rgba(var(--bs-success-rgb), 0.3);
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-bottom: 0.5rem;
    }
    
    .contact-item:hover {
        background: rgba(var(--bs-success-rgb), 0.1);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bs-success);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .contact-details h6 {
        margin-bottom: 0.25rem;
        color: var(--bs-success);
        font-weight: 600;
    }
    
    .contact-details small {
        color: var(--bs-gray-600);
    }
    
    [data-bs-theme="dark"] .contact-details small {
        color: #adb5bd;
    }
    
    /* Mobile optimizations for help section */
    @media (max-width: 767.98px) {
        .help-section {
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .help-tips-grid {
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }
        
        .help-links {
            flex-direction: column;
            align-items: stretch;
        }
        
        .help-link {
            text-align: center;
            justify-content: center;
        }
        
        .contact-info-section {
            padding: 1rem;
        }
        
        .contact-item {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
        }
    }
    
    /* ===== ENHANCED NAVIGATION LINK STYLING ===== */
    /* This section provides comprehensive styling for navigation links with proper hover and active states */
    
    /* Base navigation link styling */
    .navbar-nav .nav-link {
        position: relative;
        transition: all 0.3s ease;
        font-weight: 500;
        text-decoration: none;
        display: flex;
        align-items: center;
        border-radius: 8px;
        margin: 0.25rem;
        padding: 0.5rem 1rem;
    }
    
    /* Desktop navigation link styling */
    @media (min-width: 992px) {
        .navbar-nav .nav-link {
            color: rgba(255, 255, 255, 0.9) !important;
            margin: 0 0.5rem;
        }
        
        .navbar-nav .nav-link:hover {
            color: white !important;
            background: rgba(255, 255, 255, 0.15) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .navbar-nav .nav-link.active {
            color: var(--bs-warning) !important;
            background: rgba(255, 255, 255, 0.2) !important;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
        
        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 3px;
            background: var(--bs-warning);
            border-radius: 2px;
        }
    }
    
    /* Mobile navigation styling */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            background: rgba(var(--bs-primary-rgb), 0.95);
            margin-top: 1rem;
            border-radius: 10px;
            padding: 1rem;
            backdrop-filter: blur(10px);
        }
        
        .navbar-nav .nav-link {
            color: white !important;
            background: rgba(255, 255, 255, 0.1);
            margin: 0.5rem 0;
            padding: 1rem;
            border-radius: 10px;
            border-left: 4px solid transparent;
        }
        
        .navbar-nav .nav-link:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            transform: translateX(8px);
            border-left-color: var(--bs-warning);
        }
        
        .navbar-nav .nav-link.active {
            background: var(--bs-warning) !important;
            color: var(--bs-dark) !important;
            border-left-color: var(--bs-warning);
            font-weight: 700;
            transform: translateX(10px);
            box-shadow: 0 4px 15px rgba(var(--bs-warning-rgb), 0.4);
        }
        
        .navbar-nav .nav-link.active i {
            color: var(--bs-dark) !important;
        }
    }
    
    /* Dark theme adjustments for navigation */
    [data-bs-theme="dark"] .navbar-collapse {
        background: rgba(33, 37, 41, 0.95) !important;
    }
    
    [data-bs-theme="dark"] .navbar-nav .nav-link {
        color: #e1e1e1 !important;
    }
    
    [data-bs-theme="dark"] .navbar-nav .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    [data-bs-theme="dark"] .navbar-nav .nav-link.active {
        background: var(--bs-warning) !important;
        color: var(--bs-dark) !important;
    }
    
    /* Icon styling within navigation links */
    .navbar-nav .nav-link i {
        margin-right: 0.5rem;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link:hover i {
        transform: scale(1.1);
    }
    
    /* Animation for navigation state changes */
    .nav-link {
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s ease;
    }
    
    .nav-link:hover::before {
        left: 100%;
    }
    
    /* Focus states for accessibility */
    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--bs-warning);
        outline-offset: 2px;
    }
    
    /* ===== END ENHANCED NAVIGATION STYLING ===== */
    /* ===== ENHANCED LOGIN FORM STYLING ===== */
    /* Enhanced login page design with modern aesthetics */    .login-card {
        border-radius: 20px !important;
        overflow: hidden;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    [data-bs-theme="dark"] .login-card {
        background: rgba(44, 48, 52, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Enhanced form styling */
    .login-form .form-label {
        font-weight: 600;
        color: var(--bs-gray-700);
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
    
    [data-bs-theme="dark"] .login-form .form-label {
        color: #e1e1e1;
    }
      /* Input group enhancements */
    .login-form .input-group-lg .form-control {
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        background: rgba(255, 255, 255, 0.8);
    }
    
    .login-form .input-group-lg .form-control:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
        background: white;
    }
    
    [data-bs-theme="dark"] .login-form .input-group-lg .form-control {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
        color: #e1e1e1;
    }
    
    [data-bs-theme="dark"] .login-form .input-group-lg .form-control:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--bs-primary);
    }
    
    /* Input group text styling */
    .login-form .input-group-text {
        background: transparent;
        border-color: #e9ecef;
        border-radius: 12px 0 0 12px;
        border-right: none;
        padding: 1rem 1.25rem;
    }
    
    [data-bs-theme="dark"] .login-form .input-group-text {
        border-color: rgba(255, 255, 255, 0.2);
        color: #adb5bd;
    }
      /* Password toggle button */
    .login-form #togglePassword {
        border-radius: 0 12px 12px 0;
        border-left: none;
        background: transparent;
        border-color: #e9ecef;
        padding: 1rem 1.25rem;
    }
    
    [data-bs-theme="dark"] .login-form #togglePassword {
        border-color: rgba(255, 255, 255, 0.2);
        color: #adb5bd;
    }
      /* Enhanced form check styling */
    .login-form .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 6px;
        border: 2px solid #dee2e6;
    }
    
    .login-form .form-check-input:checked {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }
    
    .login-form .form-check-label {
        font-size: 0.95rem;
        margin-left: 0.5rem;
    }
      /* Enhanced button styling */
    .login-form .btn-primary {
        background: linear-gradient(135deg, var(--bs-primary), #0056b3);
        border: none;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }
    
    .login-form .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
    
    .login-form .btn-primary:active {
        transform: translateY(0);
    }
      /* Quick action buttons */
    .login-form .btn-outline-primary,
    .login-form .btn-outline-success {
        border-radius: 10px;
        font-weight: 500;
        padding: 0.75rem 1rem;
        border-width: 2px;
    }
    
    /* Divider styling */
    .login-form hr {
        border: none;
        height: 1px;
        background: linear-gradient(to right, transparent, #dee2e6, transparent);
        position: relative;
    }
    
    [data-bs-theme="dark"] .login-form hr {
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
      /* Welcome section styling */
    .login-card img {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }
    
    /* Card footer enhancements */
    .login-card .card-footer {
        background: linear-gradient(135deg, #f8f9fa, #ffffff);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    [data-bs-theme="dark"] .login-card .card-footer {
        background: linear-gradient(135deg, #2c3034, #343a40);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Alert enhancements */
    .login-card .alert {
        border-radius: 12px;
        border: none;
        backdrop-filter: blur(10px);
    }
    
    .login-card .alert-danger {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
        color: #842029;
        border-left: 4px solid var(--bs-danger);
    }
    
    [data-bs-theme="dark"] .login-card .alert-danger {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
        color: #f1aeb5;
    }
    
    /* Mobile responsiveness */
    @media (max-width: 767.98px) {
        .login-card {
            margin: 1rem;
            border-radius: 16px !important;
        }
        
        .login-form .input-group-lg .form-control,
        .login-form .input-group-text,
        .login-form #togglePassword {
            padding: 0.875rem 1rem;
            font-size: 1rem;
        }
        
        .login-form .btn-primary {
            padding: 1rem;
            font-size: 1.1rem;
        }
        
        .login-form .row.g-3 {
            margin-top: 0.5rem;
        }
        
        .login-form .row.g-3 .col-sm-6 {
            margin-bottom: 0.75rem;
        }
    }
    
    /* Loading state for login button */
    .login-form .btn-primary.loading {
        position: relative;
        color: transparent;
    }
    
    .login-form .btn-primary.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top-color: white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Focus improvements for accessibility */
    .login-form .btn:focus,
    .login-form .form-control:focus,
    .login-form .form-check-input:focus {
        outline: 2px solid var(--bs-primary);
        outline-offset: 2px;
    }
    
    /* Smooth transitions for theme switching */
    .login-card,
    .login-form .form-control,
    .login-form .input-group-text,
    .login-form .btn {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
      /* Enhanced link styling in login form */
    .login-form .btn-link {
        font-size: 0.875rem;
        text-decoration: none;
        color: var(--bs-primary);
    }
    
    .login-form .btn-link:hover {
        color: var(--bs-primary);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
