:root {
    --bg-dark: #090d16;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-nav: rgba(9, 13, 22, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.15);
    
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --danger: #ef4444;
    --success: #10b981;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation Header (Standard Pages) */
.header {
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0.4;
    left: -0.5rem;
    pointer-events: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link-highlight {
    color: var(--primary);
}

.nav-link-highlight:hover {
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Main Content area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

/* Footer (Standard Pages) */
.footer {
    background-color: rgba(9, 13, 22, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link:hover {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-gradient);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.5);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Glassmorphism Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), var(--border-glow);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.1);
}

/* Form layouts */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* Dashboard styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-title span {
    font-weight: 300;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* User management table */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.01);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.user-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.user-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.user-table tr:last-child td {
    border-bottom: none;
}

.user-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.role-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-tag-admin {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.role-tag-user {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

.animated-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ==========================================================================
   Saint Laurent Aesthetic (Homepage Landing Overrides)
   ========================================================================== */

/* Target landing page container */
body.landing-body {
    background-color: #fff;
    color: #000;
    min-height: 100vh;
    overflow: hidden; /* Hide normal scrollbars */
    background-image: none;
}

/* Landing full viewport container with snapping */
.landing-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Single Landing Slide Section */
.landing-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 5.5rem; /* Space at bottom for text */
}

.landing-section-content {
    text-align: center;
    color: #000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* subtle glow to ensure text is legible */
    z-index: 10;
}

.landing-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.landing-section-link {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    color: #000;
}

.landing-section-link:hover {
    opacity: 0.7;
}

/* Landing Page Header Overrides */
body.landing-body .header {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* Elegant Saint Laurent Minimal Logo */
body.landing-body .logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    letter-spacing: 0.22em;
    font-weight: 400;
    text-transform: uppercase;
    color: #000;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
    text-shadow: none;
    margin: 0 auto; /* Center logo */
}

body.landing-body .logo-glow {
    display: none; /* No glow on landing */
}

/* Minimal Header Layout alignment */
body.landing-body .header-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
}

/* Left controls (hamburger and admin portal access) */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 24px;
}

.menu-burger span {
    width: 24px;
    height: 1.2px;
    background-color: #000;
    display: block;
}

/* Hide normal links on landing, show dynamic overlay instead if needed, or simple direct links */
body.landing-body .nav {
    display: none; /* Normal menu hidden */
}

@media (min-width: 1024px) {
    body.landing-body .nav-landing-links {
        display: flex;
        gap: 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

.nav-landing-link {
    color: #000;
    font-weight: 500;
}

.nav-landing-link:hover {
    opacity: 0.7;
}

/* Right controls (Search and Bag) */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
    color: #000;
}

.header-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-icon:hover {
    opacity: 0.7;
}

/* Empty footer override since landing page doesn't show standard footer */
body.landing-body .footer {
    display: none;
}

body.landing-body .main-content {
    padding: 0;
    flex-grow: 1;
}

/* ==========================================================================
   Admin Sidebar Layout
   ========================================================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

.admin-sidebar {
    width: 260px;
    background-color: rgba(9, 13, 22, 0.95);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    padding: 2rem 1.5rem;
}

.admin-sidebar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.admin-nav-item.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.nav-icon {
    font-size: 1.1rem;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 4.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2.5rem;
    background-color: rgba(9, 13, 22, 0.5);
    backdrop-filter: blur(8px);
}

.admin-user-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-content-inner {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Responsiveness for Admin Panel */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 70px;
        padding: 2rem 0.5rem;
        align-items: center;
    }
    .admin-sidebar-logo {
        font-size: 0;
        margin-bottom: 2rem;
    }
    .admin-nav-item {
        justify-content: center;
        padding: 0.75rem;
    }
    .admin-nav-item span:not(.nav-icon) {
        display: none;
    }
    .nav-divider {
        margin: 1rem 0;
        width: 100%;
    }
    .admin-main {
        margin-left: 70px;
    }
}

