            :root {
                --primary-color: #1e3a8a;
                --secondary-color: #1e40af;
                --accent-color: #0891b2;
                --sidebar-width: 260px;
                --header-height: 65px;
                --background-color: #f8fafc;
                --card-background: #ffffff;
                --text-primary: #0f172a;
                --text-secondary: #475569;
                --border-color: #cbd5e1;
                --success-color: #059669;
                --warning-color: #d97706;
                --danger-color: #dc2626;
                --info-color: #0369a1;
                --library-blue: #1e3a8a;
                --library-gold: #d97706;
            }

            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            body {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
                overflow-x: hidden;
                color: var(--text-primary);
                /* min-height: 100vh; */
                min-height: 92vh;
                position: relative;
            }

            body::before {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background:
                    radial-gradient(circle at 20% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 40% 40%, rgba(5, 150, 105, 0.02) 0%, transparent 50%);
                pointer-events: none;
                z-index: 0;
            }

            /* Header Styles */
            .app-header {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: var(--header-height);
                /* background: var(--library-blue); */
                background: #0f172a;
                color: white;
                z-index: 1000;
                display: flex;
                align-items: center;
                padding: 0 25px;
                box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
                border-bottom: 2px solid var(--library-gold);
            }

            .navbar-brand {
                display: flex;
                align-items: center;
                font-size: 1.5rem;
                font-weight: 700;
                text-decoration: none;
                color: white;
                margin-right: auto;
                letter-spacing: 1px;
                text-transform: uppercase;
                position: relative;
                transition: all 0.3s ease;
            }

            .brand-logo {
                height: 40px;
                margin-right: 12px;
                border-radius: 6px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
                transition: all 0.3s ease;
            }

            .brand-logo:hover {
                transform: scale(1.05);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            }

            .brand-text {
                color: #eef1f6;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
                transition: all 0.3s ease;
            }

            .navbar-brand::before {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                right: 0;
                height: 2px;
                background: linear-gradient(90deg, transparent 0%, var(--library-gold) 50%, transparent 100%);
                transform: scaleX(0);
                transition: transform 0.3s ease;
            }

            .navbar-brand:hover::before {
                transform: scaleX(1);
            }

            .navbar-brand:hover {
                transform: translateY(-2px);
                text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
            }

            .navbar-brand i {
                margin-right: 15px;
                font-size: 2rem;
                color: var(--library-gold);
                text-shadow: 0 0 20px rgba(217, 119, 6, 0.5);
                animation: iconGlow 2s ease-in-out infinite alternate;
            }

            @keyframes iconGlow {
                from {
                    filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.3));
                }

                to {
                    filter: drop-shadow(0 0 20px rgba(217, 119, 6, 0.6));
                }
            }

            .navbar-nav {
                display: contents;
                align-items: center;
                gap: 20px;
            }

            .navbar-item {
                position: relative;
            }

            .navbar-link {
                color: rgba(255, 255, 255, 0.9);
                text-decoration: none;
                padding: 8px 12px;
                border-radius: 6px;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                gap: 6px;
                font-weight: 500;
                font-size: 0.9rem;
            }

            .navbar-link:hover {
                background: rgba(255, 255, 255, 0.1);
                color: white;
            }

            .badge {
                position: absolute;
                top: -6px;
                right: -6px;
                background: linear-gradient(135deg, var(--danger-color), #dc2626);
                color: white;
                border-radius: 50%;
                width: 20px;
                height: 20px;
                font-size: 11px;
                font-weight: 600;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
            }

            .search-form {
                position: relative;
            }

            .search-input {
                background: rgba(255, 255, 255, 0.15);
                border: 1px solid rgba(255, 255, 255, 0.2);
                color: white;
                padding: 8px 35px 8px 15px;
                border-radius: 6px;
                width: 220px;
                transition: all 0.2s ease;
                font-size: 14px;
            }

            .search-input::placeholder {
                color: rgba(255, 255, 255, 0.7);
            }

            .search-input:focus {
                outline: none;
                background: rgba(255, 255, 255, 0.2);
                border-color: rgba(255, 255, 255, 0.4);
                width: 250px;
            }

            .search-btn {
                position: absolute;
                right: 12px;
                top: 50%;
                transform: translateY(-50%);
                background: none;
                border: none;
                color: rgba(255, 255, 255, 0.7);
                padding: 6px 8px;
                cursor: pointer;
                transition: all 0.2s ease;
            }

            .search-btn:hover {
                color: white;
            }

            /* Header Profile Styles */
            .header-profile-image {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                border: 2px solid var(--library-gold);
                margin-right: 12px;
            }

            .user-profile-link {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 8px 16px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.1);
                transition: all 0.2s ease;
            }

            .user-profile-link:hover {
                background: rgba(255, 255, 255, 0.2);
            }

            .user-info {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
            }

            .user-name {
                font-weight: 600;
                font-size: 0.9rem;
                line-height: 1.2;
            }

            .user-role {
                font-size: 0.75rem;
                opacity: 0.8;
                line-height: 1;
            }

            /* User Dropdown Menu */
            .user-dropdown-menu {
                position: absolute;
                top: 100%;
                right: 0;
                background: white;
                border-radius: 6px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
                min-width: 180px;
                padding: 6px 0;
                margin-top: 5px;
                display: none;
                z-index: 1000;
                border: 1px solid #e0e0e0;
            }

            .user-dropdown-menu.show {
                display: block;
            }

            .dropdown-item {
                display: flex;
                align-items: center;
                padding: 8px 16px;
                color: #333;
                text-decoration: none;
                transition: background 0.2s ease;
                font-size: 0.9rem;
                gap: 10px;
            }

            .dropdown-item:hover {
                background: #f5f5f5;
                color: #333;
            }

            .dropdown-item i {
                width: 16px;
                text-align: center;
                font-size: 0.9rem;
            }

            .logout-item {
                color: #dc3545;
            }

            .logout-item:hover {
                background: #f8d7da;
                color: #dc3545;
            }

            /* Sidebar Styles */
            .app-sidebar {
                position: fixed;
                left: 0;
                top: var(--header-height);
                bottom: 0;
                width: var(--sidebar-width);
                background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
                color: var(--text-primary);
                overflow-y: auto;
                z-index: 999;
                transition: transform 0.3s ease;
                box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
                border-right: 1px solid var(--border-color);
            }

            .sidebar-profile {
                padding: 20px;
                text-align: center;
                border-bottom: 1px solid var(--border-color);
                background: linear-gradient(135deg, var(--library-blue) 0%, #1e40af 100%);
                color: white;
                position: relative;
                overflow: hidden;
            }

            .sidebar-profile::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background:
                    url('https://picsum.photos/seed/books-library/400/400') center/cover,
                    radial-gradient(circle at 30% 30%, rgba(217, 119, 6, 0.1) 0%, transparent 70%),
                    radial-gradient(circle at 70% 70%, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
                pointer-events: none;
            }

            .profile-image {
                width: 50px;
                height: 50px;
                border-radius: 50%;
                margin-bottom: 10px;
                border: 2px solid var(--library-gold);
                position: relative;
                z-index: 10;
            }

            .profile-name {
                font-weight: 600;
                margin-bottom: 3px;
                font-size: 0.95rem;
                color: white;
                position: relative;
                z-index: 10;
            }

            .profile-role {
                font-size: 0.8rem;
                opacity: 0.8;
                color: rgba(255, 255, 255, 0.8);
                position: relative;
                z-index: 10;
            }

            .sidebar-menu {
                padding: 15px 0;
            }

            .menu-item {
                position: relative;
                margin: 2px 10px;
                border-radius: 8px;
                overflow: hidden;
            }

            .menu-link {
                display: flex;
                align-items: center;
                padding: 12px 20px;
                color: var(--text-primary);
                text-decoration: none;
                border-left: 3px solid transparent;
                transition: all 0.2s ease;
                font-weight: 500;
                font-size: 0.9rem;
                margin: 1px 0;
            }

            .menu-link:hover,
            .menu-link.active {
                background: rgba(30, 58, 138, 0.08);
                border-left-color: var(--library-blue);
                color: var(--library-blue);
            }

            .menu-icon {
                width: 20px;
                margin-right: 12px;
                text-align: center;
            }

            .menu-text {
                flex: 1;
            }

            .menu-caret {
                transition: transform 0.3s;
            }

            .menu-item.open .menu-caret {
                transform: rotate(90deg);
            }

            .submenu {
                display: none;
                background: rgba(0, 0, 0, 0.2);
            }

            .menu-item.open .submenu {
                display: block;
            }

            .submenu .menu-link {
                padding-left: 50px;
                font-size: 0.9rem;
            }

            /* Main Content */
            .app-content {
                margin-left: var(--sidebar-width);
                margin-top: var(--header-height);
                padding: 30px;
                min-height: calc(100vh - var(--header-height));
                position: relative;
                z-index: 1;
            }

            /* Statistics Cards */
            .stat-card {
                background: var(--card-background);
                border-radius: 8px;
                padding: 20px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
                transition: all 0.2s ease;
                border: 1px solid var(--border-color);
                position: relative;
            }

            .stat-card:hover {
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                border-color: var(--library-blue);
            }

            .stat-card.books {
                border-left: 4px solid var(--info-color);
            }

            .stat-card.members {
                border-left: 4px solid var(--success-color);
            }

            .stat-card.borrowed {
                border-left: 4px solid var(--warning-color);
            }

            .stat-card.overdue {
                border-left: 4px solid var(--danger-color);
            }

            .stat-icon {
                width: 48px;
                height: 48px;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.4rem;
                margin-bottom: 15px;
            }

            .stat-card.books .stat-icon {
                background: rgba(3, 105, 161, 0.1);
                color: var(--info-color);
            }

            .stat-card.members .stat-icon {
                background: rgba(5, 150, 105, 0.1);
                color: var(--success-color);
            }

            .stat-card.borrowed .stat-icon {
                background: rgba(217, 119, 6, 0.1);
                color: var(--warning-color);
            }

            .stat-card.overdue .stat-icon {
                background: rgba(220, 38, 38, 0.1);
                color: var(--danger-color);
            }

            .stat-value {
                font-size: 1.8rem;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 5px;
            }

            .stat-label {
                color: var(--text-secondary);
                font-size: 0.85rem;
                margin-bottom: 8px;
                font-weight: 500;
                text-transform: uppercase;
                letter-spacing: 0.3px;
            }

            .stat-change {
                font-size: 0.85rem;
                display: flex;
                align-items: center;
                gap: 5px;
            }

            .stat-change.positive {
                color: var(--success-color);
            }

            .stat-change.negative {
                color: var(--danger-color);
            }

            /* Panel Styles */
            .panel {
                background: var(--card-background);
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
                margin-bottom: 20px;
                border: 1px solid var(--border-color);
                transition: all 0.2s ease;
            }

            .panel:hover {
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            }

            .panel-header {
                padding: 18px 20px;
                border-bottom: 1px solid var(--border-color);
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: rgba(30, 58, 138, 0.02);
            }

            .panel-title {
                font-size: 1.1rem;
                font-weight: 600;
                color: var(--text-primary);
                margin: 0;
            }

            .panel-body {
                padding: 20px;
            }

            /* Mobile Menu Toggle */
            .mobile-menu-toggle {
                display: none;
                background: none;
                border: none;
                color: white;
                font-size: 1.3rem;
                cursor: pointer;
                padding: 8px 12px;
                border-radius: 6px;
                transition: all 0.2s ease;
            }

            .mobile-menu-toggle:hover {
                background: rgba(255, 255, 255, 0.1);
            }

            /* Responsive Design */
            @media (max-width: 1200px) {
                .app-sidebar {
                    width: 240px;
                }

                .app-content {
                    margin-left: 240px;
                }
            }

            @media (max-width: 1024px) {
                .app-sidebar {
                    width: 220px;
                }

                .app-content {
                    margin-left: 220px;
                }

                .row {
                    margin: 0 -10px;
                }

                .col-xl-3 {
                    flex: 0 0 100%;
                    max-width: 100%;
                }
            }

            @media (max-width: 768px) {
                .app-header {
                    padding: 0 15px;
                    height: 60px;
                }

                .navbar-brand {
                    font-size: 1.2rem;
                }

                .app-sidebar {
                    position: fixed;
                    left: -280px;
                    top: 0;
                    transform: translateX(0%);
                    width: 280px;
                    height: 100vh;
                    z-index: 9999;
                    transition: left 0.3s ease;
                    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
                }

                .app-sidebar.open {
                    left: 0;
                    transform: translateX(0);
                }

                .sidebar-overlay {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: rgba(0, 0, 0, 0.5);
                    z-index: 9998;
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }

                .sidebar-overlay.active {
                    display: block;
                    opacity: 1;
                }

                .sidebar-close {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: absolute;
                    top: 15px;
                    right: 15px;
                    width: 30px;
                    height: 30px;
                    background: rgba(255, 255, 255, 0.1);
                    border: none;
                    border-radius: 50%;
                    color: white;
                    font-size: 1rem;
                    cursor: pointer;
                    z-index: 10;
                    transition: all 0.3s ease;
                }

                .sidebar-close:hover {
                    background: rgba(255, 255, 255, 0.2);
                    transform: scale(1.1);
                }

                .app-content {
                    margin-left: 0;
                    padding: 0px;
                    width: 100%;
                    min-height: 100vh;
                }

                .mobile-menu-toggle {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 40px;
                    height: 40px;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 8px;
                }

                .search-form {
                    display: none;
                }

                .navbar-nav .navbar-item:not(.dropdown) {
                    display: none;
                }

                .row {
                    margin: 0 -5px;
                }

                .col-xl-3,
                .col-xl-8,
                .col-xl-4,
                .col-xl-6 {
                    margin-bottom: 10px;
                }

                .stat-card {
                    padding: 12px;
                    margin-bottom: 10px;
                }

                .stat-value {
                    font-size: 1.4rem;
                }

                .stat-label {
                    font-size: 0.8rem;
                }

                .panel {
                    margin-bottom: 10px;
                }

                .panel-header {
                    padding: 12px 15px;
                }

                .panel-title {
                    font-size: 0.95rem;
                }

                .panel-body {
                    padding: 12px 15px;
                }

                .menu-link {
                    padding: 8px 15px;
                    font-size: 0.85rem;
                }

                .sidebar-profile {
                    padding: 15px 20px;
                }

                .profile-image {
                    width: 35px;
                    height: 35px;
                }
            }

            @media (max-width: 576px) {
                .app-header {
                    padding: 0 10px;
                    height: 55px;
                }

                .navbar-brand {
                    font-size: 1rem;
                }

                .sidebar-profile {
                    padding: 10px 15px;
                }

                .profile-name {
                    font-size: 0.9rem;
                }

                .profile-role {
                    font-size: 0.75rem;
                }

                .menu-link {
                    padding: 6px 12px;
                    font-size: 0.8rem;
                }

                .menu-icon {
                    width: 16px;
                    font-size: 0.9rem;
                }

                .stat-card {
                    padding: 10px;
                    margin-bottom: 8px;
                }

                .stat-value {
                    font-size: 1.2rem;
                }

                .stat-label {
                    font-size: 0.7rem;
                }

                .stat-change {
                    font-size: 0.75rem;
                }

                .panel {
                    margin-bottom: 8px;
                }

                .panel-header {
                    padding: 10px 12px;
                }

                .panel-title {
                    font-size: 0.85rem;
                }

                .panel-body {
                    padding: 10px 12px;
                }

                .row {
                    margin: 0 -3px;
                }
            }

            @media (max-width: 400px) {
                .app-header {
                    padding: 0 8px;
                    height: 50px;
                }

                .navbar-brand {
                    font-size: 0.9rem;
                }

                .sidebar-profile {
                    padding: 8px 12px;
                }

                .profile-name {
                    font-size: 0.8rem;
                }

                .profile-role {
                    font-size: 0.7rem;
                }

                .menu-link {
                    padding: 5px 10px;
                    font-size: 0.75rem;
                }

                .stat-card {
                    padding: 8px;
                    margin-bottom: 6px;
                }

                .stat-value {
                    font-size: 1.1rem;
                }

                .stat-label {
                    font-size: 0.65rem;
                }

                .panel {
                    margin-bottom: 6px;
                }

                .panel-header {
                    padding: 8px 10px;
                }

                .panel-title {
                    font-size: 0.8rem;
                }

                .panel-body {
                    padding: 8px 10px;
                }
            }

            /* Loading Animation */
            .app-loader {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(255, 255, 255, 0.9);
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 9999;
            }

            .spinner {
                width: 40px;
                height: 40px;
                border: 4px solid #f3f3f3;
                border-top: 4px solid var(--accent-color);
                border-radius: 50%;
                animation: spin 1s linear infinite;
            }

            @keyframes spin {
                0% {
                    transform: rotate(0deg);
                }

                100% {
                    transform: rotate(360deg);
                }
            }

            /* Fixed Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;

    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border-color);
    padding: 12px 30px;
    font-size: 13px;
    color: var(--text-secondary);
    z-index: 998;
}

/* Footer text */
.footer-text strong,
.footer-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive handling */
@media (max-width: 1200px) {
    .app-footer {
        left: 240px;
    }
}

@media (max-width: 1024px) {
    .app-footer {
        left: 220px;
    }
}

@media (max-width: 768px) {
    .app-footer {
        left: 0;
        padding: 10px 15px;
        text-align: center;
    }
}
