/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-primary: #6366f1;
    /* Indigo 600 */
    --bs-primary-rgb: 99, 102, 241;
    --bs-secondary: #64748b;
    --bs-success: #10b981;
    --bs-danger: #ef4444;
    --bs-warning: #f59e0b;
    --bs-body-bg: #f8fafc;
    --bs-body-color: #1e293b;
    --bs-border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --sidebar-width: 280px;
    --sidebar-bg: #1e293b;
    --sidebar-color: #94a3b8;
    --sidebar-active-bg: rgba(99, 102, 241, 0.1);
    --sidebar-active-color: #6366f1;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.admin-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-color);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 0.5rem;
    margin: 0.125rem 1rem;
    font-weight: 500;
}

.sidebar-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-link.active {
    color: var(--sidebar-active-color);
    background: var(--sidebar-active-bg);
}

.sidebar-nav-link i {
    font-size: 1.25rem;
    opacity: 0.7;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.sidebar-section-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.admin-top-bar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -100%;
        height: 100vh;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-main {
        width: 100%;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1.5rem;
}

.premium-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

@keyframes entrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entrance {
    animation: entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes brandReveal {
    from {
        opacity: 0;
        letter-spacing: -0.05em;
        filter: blur(5px);
    }

    to {
        opacity: 1;
        letter-spacing: normal;
        filter: blur(0);
    }
}

.animate-brand {
    animation: brandReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a;
    /* Slate 900 */
}

/* Card Enhancements */
.card {
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Enhancements */
.form-control,
.form-select {
    border-color: var(--bs-border-color);
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Navbar */
.navbar {
    background-color: #ffffff !important;
    /* Force white bg for modern look */
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: var(--shadow-sm);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--bs-primary) !important;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    /* Slate 600 */
    transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Tables */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    color: #334155;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

/* Login Page Specifics */
.login-visual {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #2563eb 100%);
}

/* Utilities */
.text-muted {
    color: #64748b !important;
}

.shadow-soft {
    box-shadow: var(--shadow-lg) !important;
}

/* Navbar Adaptations */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
}

.navbar-nav .dropdown-item {
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--bs-primary);
    transform: translateX(4px);
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(99, 102, 241, 0.15);
}  
/* --- Page Loader --- */  
#page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 99999; }  
#page-loader.fade-out { opacity: 0; visibility: hidden; transition: opacity 0.5s ease-out, visibility 0.5s ease-out; }  
.loader-spinner { width: 48px; height: 48px; border: 4px solid rgba(99, 102, 241, 0.1); border-radius: 50%; border-top-color: #6366f1; animation: loader-spin 1s linear infinite; }  
@keyframes loader-spin { to { transform: rotate(360deg); } } 
