:root {
    --primary: #094898;
    --primary-hover: #073b7c;
    --secondary: #64748b;
    --accent: #FECF21;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #FECF21;
    --info: #0ea5e9;

    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 16px;

    /* Premium Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.6);
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

/* Background Utility - Softer & More Modern */
.bg-primary-soft {
    background-color: rgba(9, 72, 152, 0.08) !important;
    color: var(--primary) !important;
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: var(--success) !important;
}

.bg-info-soft {
    background-color: rgba(14, 165, 233, 0.08) !important;
    color: var(--info) !important;
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: var(--danger) !important;
}

.bg-warning-soft {
    background-color: rgba(254, 207, 33, 0.14) !important;
    color: #7a5100 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    color: #334155;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1010;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.sidebar.collapsed {
    width: 80px;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-main);
}

.main-content.expanded {
    margin-left: 80px;
}

/* Sidebar Styling */
.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sidebar-logo {
    font-weight: 800;
    font-size: 1.35rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 160%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar.collapsed .sidebar-logo {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 2rem 0;
}

.nav-links {
    padding: 0 0.85rem;
    flex: 1;
    overflow-x: hidden;
}

.nav-links label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin: 1.75rem 0 0.75rem 1.25rem;
    display: block;
    font-weight: 800;
}

.sidebar.collapsed .nav-links label {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    text-decoration: none !important;
    border-radius: 14px;
    margin-bottom: 0.25rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.85rem 0;
    margin: 0.25rem 0.5rem;
}

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

.nav-link i,
.nav-link svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    opacity: 0.7;
}

.nav-link:hover {
    background: #f8fafc;
    color: var(--primary);
}

.nav-link.active {
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    border-radius: 0 14px 14px 0;
}

.nav-link.active i,
.nav-link.active svg {
    opacity: 1;
}

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

.user-profile-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.user-profile-widget:hover {
    border-color: #cbd5e1;
}

.user-profile-widget .text-white {
    color: #1e293b !important;
}

.user-profile-widget .text-muted {
    color: #64748b !important;
}

.sidebar.collapsed .sidebar-footer {
    padding: 1rem 0.5rem;
}

/* Header/Navbar - New Premium Design */
.top-navbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 15px;
    margin: 0 1.5rem 1.5rem 1.5rem;
    z-index: 900;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    /* Slightly darker background to make the header pop */
    padding-bottom: 2rem;
}

.main-content.expanded {
    margin-left: 70px;
}

.header-action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 72, 152, 0.2);
}

/* Stats Cards Dashboard */
.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bg-primary-soft {
    background: rgba(9, 72, 152, 0.1);
    color: var(--primary);
}

.bg-success-soft {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.bg-warning-soft {
    background: rgba(254, 207, 33, 0.14);
    color: var(--warning);
}

.bg-danger-soft {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.bg-info-soft {
    background: rgba(14, 165, 233, 0.1);
    color: var(--info);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(9, 72, 152, 0.1);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

/* Premium Enhancements */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.avatar-sm {
    font-size: 0.85rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
}

.avatar-md {
    font-size: 1.1rem;
    font-weight: 700;
    width: 45px;
    height: 45px;
}

.bg-primary-soft {
    background-color: rgba(9, 72, 152, 0.1) !important;
    color: var(--primary);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--success);
}

.bg-warning-soft {
    background-color: rgba(254, 207, 33, 0.14) !important;
    color: var(--warning);
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger);
}

.bg-info-soft {
    background-color: rgba(14, 165, 233, 0.1) !important;
    color: #0ea5e9;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.card-dashboard {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

body.auth-login {
    background: radial-gradient(circle at top right, rgba(254, 207, 33, 0.22) 0%, var(--primary) 55%, #041b3a 100%);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.auth-login .bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

body.auth-login .blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(254, 207, 33, 0.22) 0%, var(--primary) 100%);
    filter: blur(80px);
    border-radius: 50%;
    animation: authFloat 20s infinite alternate;
}

@keyframes authFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

body.auth-login .login-container {
    width: 100%;
    max-width: 480px;
    perspective: 1000px;
}

body.auth-login .login-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: authSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.auth-login .brand-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

body.auth-login .brand-logo:hover {
    transform: scale(1.1);
}

body.auth-login .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.auth-login .input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

body.auth-login .input-wrapper i,
body.auth-login .input-wrapper svg {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

body.auth-login .form-control {
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid transparent;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.auth-login .form-control.is-password {
    padding-right: 3.75rem;
}

body.auth-login .form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(9, 72, 152, 0.12);
    outline: none;
}

body.auth-login .input-wrapper:focus-within i,
body.auth-login .input-wrapper:focus-within svg {
    color: var(--primary);
}

body.auth-login .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.65);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

body.auth-login .password-toggle svg {
    display: block;
}

body.auth-login .password-toggle:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: rgba(9, 72, 152, 0.25);
}

body.auth-login .btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    padding: 1.1rem;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(9, 72, 152, 0.28);
    transition: all 0.3s ease;
}

body.auth-login .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(9, 72, 152, 0.35);
    filter: brightness(1.1);
}

body.auth-login .btn-login[disabled] {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

body.auth-login .login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
}

body.auth-login .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

body.auth-login .badge-accent {
    background: rgba(254, 207, 33, 0.25);
    color: #7a5100;
    border: 1px solid rgba(254, 207, 33, 0.45);
    font-weight: 800;
}

body.auth-login .login-meta {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

body.auth-login .login-meta a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

body.auth-login .login-meta a:hover {
    text-decoration: underline;
}

body.auth-login .footer-text {
    margin-top: 2.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

body.auth-login .footer-text b {
    color: var(--primary);
}