/* 
   Skoola - Sistem Pembayaran Administrasi Sekolah
   Premium Design System Stylesheet
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Outfit', sans-serif;
    
    /* Light Theme (Navy-Blue-Cyan — Skoola Brand) */
    --bg-app: #f0f4f8;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    
    --primary-gradient: linear-gradient(135deg, #1b3a6b 0%, #22d3ee 100%);
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --info-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(27, 58, 107, 0.08), 0 10px 10px -5px rgba(27, 58, 107, 0.03);
    
    --sidebar-width: 200px;
    --navbar-height: 70px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Glassmorphism & General Cards */
.card, .glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.02), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover, .glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

.glass-card-sm {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.glass-card-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04) !important;
}

/* Global Nav Pills (Tabs) Styling */
.nav-pills .nav-link {
    color: #64748b !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.nav-pills .nav-link:hover:not(.active) {
    color: #0f172a !important;
    background-color: #f8fafc !important;
}

.nav-pills .nav-link.active {
    color: #ffffff !important;
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 16px rgba(75, 123, 236, 0.2) !important;
}

/* Typography Helpers */
.text-gradient-primary {
    color: #1b3a6b !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}
.text-gradient-accent {
    color: #a855f7 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Layout System */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Sidebar Styling (Desktop) */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff !important;
    color: #475569 !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-right: 1px solid #e2e8f0 !important;
}

.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 1rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.sidebar-brand .fw-bold {
    font-size: 0.85rem !important;
}

.sidebar-brand .text-white-50 {
    font-size: 0.65rem !important;
    color: #64748b !important;
}

.sidebar-brand .bg-gradient-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(27, 58, 107, 0.15);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.menu-section-title {
    font-size: 0.7rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1b3a6b !important;
    margin-bottom: 0.4rem !important;
    margin-top: 1rem !important;
    padding-left: 0.5rem;
}

.menu-section-title:first-of-type {
    margin-top: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem !important;
    color: #475569 !important;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    margin-bottom: 0.35rem !important;
    font-weight: 500;
    font-size: 0.85rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-link i, .sidebar-link svg {
    margin-right: 0.65rem !important;
    width: 30px !important;
    height: 30px !important;
    padding: 6px !important;
    border-radius: 6px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
    transform: translateX(4px);
}

.sidebar-link:hover i, .sidebar-link:hover svg {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.sidebar-link.active {
    color: #1b3a6b !important;
    background: #eff6ff !important;
    box-shadow: none !important;
    font-weight: 600;
    transform: translateX(4px);
}

.sidebar-link.active i, .sidebar-link.active svg {
    background: #1b3a6b !important;
    color: #ffffff !important;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Main Content Area */
.main-container {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Navbar */
.top-navbar {
    height: var(--navbar-height);
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.content-wrapper {
    flex: 1;
    padding: 1.25rem !important;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    z-index: 1030;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
}

.mobile-nav-link i, .mobile-nav-link svg {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
}

.mobile-nav-link.active {
    color: #2563eb !important;
}

/* Custom Components & Utilities */
/* Custom Components & Utilities */
.btn {
    border-radius: 8px !important;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gradient-primary {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.btn-gradient-primary:hover {
    background: var(--primary-gradient) !important;
    filter: brightness(0.95) !important;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
}

.btn-gradient-accent {
    background-color: #a855f7 !important;
    border-color: #a855f7 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn-gradient-accent:hover {
    background-color: #9333ea !important;
    border-color: #9333ea !important;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}

/* Card KPI Styles */
.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.02), 0 4px 10px -2px rgba(0,0,0,0.02) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(75, 123, 236, 0.12), 0 10px 15px -5px rgba(75, 123, 236, 0.05) !important;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(75, 123, 236, 0.03);
    pointer-events: none;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform 0.25s ease;
}

.kpi-icon.bg-gradient-primary {
    background: #eff6ff !important;
    color: #1b3a6b !important;
    border: 1px solid rgba(27, 58, 107, 0.1);
}

.kpi-icon.bg-info-gradient {
    background: #ecfeff !important;
    color: #06b6d4 !important;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.kpi-icon[style*="--success-gradient"], .kpi-icon.bg-success-gradient {
    background: #f0fdf4 !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.kpi-icon.bg-danger-gradient {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.1);
}

/* Beautiful Inputs */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.search-box .search-input {
    padding-left: 2.75rem !important;
}



/* Custom Table Styles */
.custom-table-container {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: #ffffff;
}

.table {
    color: var(--text-main);
    margin-bottom: 0;
}

.table th {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1.1rem 1.5rem !important;
    color: #475569 !important;
    background-color: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.table td {
    padding: 1.1rem 1.5rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 0.9rem !important;
}

.table tbody tr {
    transition: background-color 0.2s ease !important;
}

.table tbody tr:hover {
    background-color: rgba(75, 123, 236, 0.02) !important;
}

/* Status Badges */
.badge-status {
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status-lunas {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-status-belum {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-status-cicil {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
}

/* Responsive Rules */
@media (max-width: 991.98px) {
    .sidebar {
        display: none !important;
    }
    .sidebar-backdrop {
        display: none !important;
    }
    .main-container {
        margin-left: 0;
        padding-bottom: 65px; /* space for bottom nav */
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .top-navbar {
        padding: 0 1.25rem;
    }
    .content-wrapper {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .mobile-nav {
        display: flex;
    }
}

/* Split-Pane Login Page Styling */
.login-split-container {
    min-height: 100vh;
    display: flex;
    background-color: #f8fafc;
    position: relative;
    overflow-y: auto;
}

.login-left-pane {
    flex: 0 0 65%;
    width: 65%;
    background-color: #ffffff;
    position: relative;
    padding: 3rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    overflow: hidden;
    min-height: 100vh;
}

.login-left-pane::before {
    display: none;
}

.login-left-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-logo-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.login-header-logo {
    height: 60px;
    width: auto;
}

.login-header-brand-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.login-header-divider {
    width: 1.5px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.35);
}

.login-header-subtitle-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.35;
}

.login-header-subtitle-line1 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.login-header-subtitle-line2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

.login-left-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 2rem;
    max-width: 520px;
}

.login-left-body h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.login-left-body p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.login-right-pane {
    flex: 0 0 35%;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, #4b7bec 0%, #2bcbba 100%);
    position: relative;
    min-height: 100vh;
}

.login-form-card {
    width: 100%;
    max-width: 440px;
    background: transparent;
    border: none;
}

.login-brand-logo {
    display: none;
}

.login-welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.login-welcome-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Eye visibility toggle icon overlay */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper .form-control {
    padding-right: 2.75rem !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #475569;
}

.login-forgot-link {
    display: block;
    text-align: right;
    font-size: 0.825rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.15s ease;
}

.login-forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Custom Outlined Inputs */
.login-form-card .form-control {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    padding: 0.7rem 1rem !important;
    padding-left: 2.75rem !important; /* Space for prepended icon */
    font-size: 0.9rem;
    border-radius: 8px;
    height: 46px;
}

.login-form-card .form-control:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.login-input-icon-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Custom outline label styles */
.login-form-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.4rem;
}

/* Solid Masuk Button */
.btn-gradient-submit {
    background-color: #ffffff;
    color: #4b7bec !important;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    height: 46px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.btn-gradient-submit:hover {
    background-color: #f8fafc;
    color: #3867d6 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Bottom Features bar */
.login-split-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.login-footer-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b;
}

.login-footer-feature svg {
    color: #10b981;
}

@media (max-width: 991.98px) {
    .login-left-pane {
        display: none !important;
    }
    .login-right-pane {
        flex: 1;
        padding: 2.5rem 1.5rem;
        background: #ffffff !important;
        min-height: 100vh;
        overflow-y: auto;
    }
    .login-brand-logo {
        display: block !important;
        max-width: 220px !important;
        height: auto;
        margin: 0 auto 2rem auto !important;
    }
    .login-split-footer {
        display: none !important; /* Hide features footer on mobile */
    }
    
    /* Text and element color adjustments for white background on mobile */
    .login-welcome-title {
        color: #0f172a !important;
        text-shadow: none !important;
    }
    .login-welcome-sub {
        color: #64748b !important;
    }
    .login-form-card .form-label {
        color: #334155 !important;
    }
    .login-forgot-link {
        color: #4b7bec !important;
    }
    .login-forgot-link:hover {
        color: #3867d6 !important;
    }
    .btn-gradient-submit {
        background-color: #4b7bec !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(75, 123, 236, 0.2) !important;
    }
    .btn-gradient-submit:hover {
        background-color: #3867d6 !important;
        color: #ffffff !important;
        box-shadow: 0 6px 18px rgba(75, 123, 236, 0.3) !important;
    }
    .text-center.mt-4 {
        color: #64748b !important;
    }
    .text-center.mt-4 a#btn-register-redirect {
        color: #4b7bec !important;
    }
    .text-center.mt-4 span {
        color: #0f172a !important;
    }
}

/* Compact mobile styles to prevent vertical scrolling */
@media (max-width: 575.98px) {
    .login-right-pane {
        padding: 2rem 1rem !important;
    }
    .login-brand-logo {
        max-width: 180px !important;
        margin: 0 auto 1.5rem auto !important;
    }
    .login-welcome-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    .login-welcome-sub {
        font-size: 0.8rem !important;
        margin-bottom: 1.25rem !important;
    }
    .login-form-card .form-control {
        padding: 0.6rem 0.75rem !important;
        padding-left: 2.5rem !important;
        font-size: 0.85rem !important;
    }
    .login-form-card .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.35rem !important;
    }
    .btn-gradient-submit {
        padding: 0.6rem 1.25rem !important;
        margin-top: 1rem !important;
        font-size: 0.9rem !important;
    }
    .password-toggle-btn {
        right: 10px !important;
    }
    .login-input-icon {
        left: 10px !important;
    }
    .text-center.mt-4 {
        margin-top: 1rem !important;
    }
}

/* Print Invoice Stylesheet */
@media print {
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        overflow: visible !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.modal-open {
        overflow: visible !important;
    }

    /* Hide the entire application UI wrappers, modals, backdrops completely on print */
    .app-wrapper, #app-loader, .toast-container, .btn, .no-print, 
    .modal, .modal-backdrop, .modal-backdrop.show, .login-split-container {
        display: none !important;
    }
    
    .print-receipt-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 10px !important;
        border: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }
    
    .table th, .table td {
        border-bottom: 1px solid #ddd !important;
        color: #000 !important;
        padding: 8px !important;
    }
}

.print-receipt-container {
    display: none;
}

/* Collapsed Sidebar State for Desktop */
@media (min-width: 992px) {
    .app-wrapper.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }
    .app-wrapper.sidebar-collapsed .main-container {
        margin-left: 0;
    }
}

/* Sidebar Backdrop Overlay for Mobile */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1025;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* Mobile-specific Responsive Enhancements */

/* Maximize container space on tablet screens */
@media (max-width: 767.98px) {
    .table th, .table td {
        padding: 0.75rem 0.75rem !important; /* Tighter padding for tables */
        font-size: 0.85rem;
    }
    .table th {
        font-size: 0.75rem;
    }
}

/* Maximize container space on small mobile screens */
@media (max-width: 575.98px) {
    /* Main wrappers padding */
    .content-wrapper {
        padding: 0.75rem !important;
    }
    .top-navbar {
        padding: 0 0.75rem !important;
        height: 60px !important;
    }
    .top-navbar h4 {
        font-size: 1.15rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px; /* Prevent overflow on small viewport titles */
    }
    
    /* General card padding reduction */
    .glass-card, .card {
        padding: 1rem !important;
    }
    
    /* Statistical KPI Cards layout improvements */
    .kpi-card {
        padding: 0.85rem !important;
        min-height: 100px;
    }
    .kpi-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }
    .kpi-icon svg, .kpi-icon i {
        width: 18px !important;
        height: 18px !important;
    }
    .kpi-card h2 {
        font-size: 1.2rem !important;
        margin-top: 0.25rem !important;
    }
    .kpi-card .text-muted.mt-2 {
        display: none !important; /* Hide description footer to keep cards compact */
    }
    
    /* Tighter padding for tables on very small screens */
    .table th, .table td {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.8rem;
    }
    .table th {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }
    .table .btn-sm {
        padding: 0.2rem 0.35rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Form fields and selectors styling inside cards */
    .form-control, .form-select {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Fix potential badge wrapping on tables */
    .badge-status {
        padding: 0.3em 0.6em !important;
        font-size: 0.7rem !important;
    }
    
    /* Toast spacing */
    .toast-container {
        left: 20px !important;
        right: 20px !important;
        top: 10px !important;
    }
}

/* Custom styling for tabs */
.nav-pills {
    gap: 0.5rem;
}

/* Checkout Bulk Payment Action Bar */
#bulk-payment-bar {
    background-color: rgba(75, 123, 236, 0.05) !important;
    border-color: rgba(75, 123, 236, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

/* Custom Checkbox Design matching theme */
.form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

/* Sidebar Toggle Button styling matching reference image */
#sidebar-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

#sidebar-toggle-btn:hover {
    background: #f0f4f8 !important;
    color: #2563eb !important;
    transform: scale(1.05) !important;
}

/* Table Column Wrapping Prevention */
.table th, .table td {
    white-space: nowrap;
}

/* Mobile responsive enhancements */
@media (max-width: 575.98px) {
    .card, .glass-card {
        padding: 1rem !important;
    }
    .search-box {
        min-width: unset !important;
    }
    .table th, .table td {
        padding: 0.85rem 1rem !important;
    }
}


