/* ===================================================
   UnhasFast - Design System for Beauty Salon
   Premium, Modern, Elegant with Glass & Gradients
   =================================================== */

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

:root {
    /* 🎨 Primary Palette - Elegant Pink & Rose */
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;

    /* 💅 Secondary - Blush Pink */
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;

    /* 💜 Purple Accent */
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;

    /* ✨ Accent - Gold/Champagne */
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;

    /* 🌸 Soft Palette */
    --nude-50: #faf9f7;
    --nude-100: #f5f3f0;
    --nude-200: #e8e4de;
    --nude-300: #d6cfc5;

    /* Sidebar - Elegant Dark */
    --sidebar-bg: linear-gradient(180deg, #1e1333 0%, #130e20 100%);
    --sidebar-dark: #130e20;
    --sidebar-hover: rgba(168, 85, 247, 0.12);

    /* 🖤 Neutral Palette */
    --gray-50: #faf9fb;
    --gray-100: #f4f3f6;
    --gray-200: #e8e6ed;
    --gray-300: #d6d3dc;
    --gray-400: #a8a3b3;
    --gray-500: #7a7486;
    --gray-600: #5a5566;
    --gray-700: #443f4d;
    --gray-800: #2d2935;
    --gray-900: #1a1720;

    /* Status Colors */
    --success-50: #ecfdf5;
    --success-500: #10b981;
    --success-600: #059669;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;

    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    --shadow-glow-pink: 0 0 25px rgba(236, 72, 153, 0.2), 0 0 50px rgba(236, 72, 153, 0.1);
    --shadow-glow-purple: 0 0 25px rgba(168, 85, 247, 0.2), 0 0 50px rgba(168, 85, 247, 0.1);
    --shadow-glow-gold: 0 0 20px rgba(251, 191, 36, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Animation */
    --transition-fast: 150ms ease;
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* App Background */
    --app-bg: #f8f7fc;
    --app-bg-gradient: linear-gradient(135deg, #f8f7fc 0%, #f3f0fa 50%, #fdf2f8 100%);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--app-bg);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Layout with Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ================================================
   SIDEBAR - Premium Dark Design with Glassmorphism
   ================================================ */
.sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Subtle shimmer overlay on sidebar */
.sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, transparent 30%, transparent 70%, rgba(236, 72, 153, 0.03) 100%);
    pointer-events: none;
}

.sidebar-logo {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.sidebar-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0 0.75rem;
}

.sidebar-nav li {
    margin: 0.2rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Ripple effect on click */
.sidebar-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 600ms ease-out, opacity 600ms ease-out;
    opacity: 0;
    pointer-events: none;
}

.sidebar-nav a:active::after {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 1;
    transition: transform 0ms, opacity 0ms;
}

.sidebar-nav a:hover {
    background: var(--sidebar-hover);
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.15);
}

.sidebar-nav a svg {
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-nav a:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.9));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateX(6px);
}

.sidebar-nav a.active svg {
    animation: pulse-icon 2s ease-in-out infinite;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: white;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sidebar-nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-divider {
    margin: 1.25rem 1rem 0.5rem;
    padding-top: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 1rem;
    list-style: none;
}

/* ================================================
   MAIN CONTENT AREA - Clean & Airy
   ================================================ */
.main-content {
    margin-left: 270px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-bg-gradient);
}

.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ================================================
   CONTENT AREA
   ================================================ */
.content {
    flex: 1;
    padding: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ================================================
   BUTTONS - Premium Glass Style
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 600ms ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.97);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--purple-200);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline-pink {
    background: transparent;
    color: var(--pink-500);
    border: 2px solid var(--pink-200);
}

.btn-outline-pink:hover {
    background: var(--pink-50);
    border-color: var(--pink-500);
    transform: translateY(-2px) scale(1.02);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
}

.btn-icon-pink {
    color: var(--pink-500);
}

.btn-icon-pink:hover {
    background: var(--pink-50);
    color: var(--pink-600);
    transform: scale(1.15) rotate(5deg);
}

.btn-icon-gray {
    color: var(--gray-400);
}

.btn-icon-gray:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-icon-red {
    color: var(--error-500);
}

.btn-icon-red:hover {
    background: var(--error-50);
    color: var(--error-600);
}

/* ================================================
   CARDS - Soft Glass Design
   ================================================ */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.05), transparent);
    transition: left 600ms ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(168, 85, 247, 0.2);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* ================================================
   STATS GRID - Premium Cards with Gradient Tops
   ================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-400), var(--pink-400), var(--gold-400));
    opacity: 0.8;
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.03), rgba(236, 72, 153, 0.03));
    opacity: 0;
    transition: opacity 400ms ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(168, 85, 247, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
    height: 6px;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
    color: var(--pink-500);
}

.stat-icon-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    color: var(--gold-600);
}

.stat-icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--success-600);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 0.5rem;
}

.stat-link {
    font-size: 0.875rem;
    color: var(--purple-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition-fast);
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-link:hover {
    color: var(--purple-600);
    gap: 0.5rem;
}

/* ================================================
   LIST ITEMS - Clean and Interactive
   ================================================ */
.list-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.list-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--purple-100);
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.95);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-item-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    gap: 1rem;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ================================================
   BADGES - Gradient & Elegant
   ================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success-600);
}

.badge-inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-pink {
    background: linear-gradient(135deg, var(--pink-100), var(--pink-50));
    color: var(--pink-600);
}

.badge-gold {
    background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
    color: var(--gold-600);
}

.badge-purple {
    background: linear-gradient(135deg, var(--purple-100), var(--purple-50));
    color: var(--purple-600);
}

/* ================================================
   FORMS - Elegant Glass Input Styling
   ================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: 'Outfit', sans-serif;
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--purple-400);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.08), 0 0 20px rgba(168, 85, 247, 0.06);
    background: white;
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
    border-color: var(--gray-300);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Toggle Checkbox */
.toggle-checkbox {
    width: 52px;
    height: 28px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);
    outline: none;
}

.toggle-checkbox::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-checkbox:checked {
    background: linear-gradient(135deg, var(--purple-400), var(--pink-500));
}

.toggle-checkbox:checked::before {
    transform: translateX(24px);
}

/* ================================================
   LOGIN PAGE - Luxurious Design (fallback)
   ================================================ */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0533 0%, #0f0a1e 50%, #1e0a3a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

.login-logo-text {
    font-size: 1.875rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9375rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.45);
}

.login-footer a {
    color: var(--purple-400);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.login-footer a:hover {
    color: var(--purple-300);
}

.login-copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--purple-100), var(--pink-50));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
}

.empty-state-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ================================================
   BACK LINK
   ================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple-500);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--purple-600);
    gap: 0.75rem;
}

/* ================================================
   MESSAGES / ALERTS - with Glow
   ================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-50), #d1fae5);
    color: var(--success-600);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: linear-gradient(135deg, var(--error-50), #fee2e2);
    color: var(--error-600);
    border: 1px solid #fecaca;
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-50), #fef3c7);
    color: var(--gold-600);
    border: 1px solid var(--gold-200);
}

.alert-info {
    background: linear-gradient(135deg, var(--purple-50), var(--pink-50));
    color: var(--purple-600);
    border: 1px solid var(--purple-200);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gray-400);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
    }

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

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 1.25rem;
    }
}

/* ================================================
   SCROLLBAR STYLING
   ================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ================================================
   UTILITIES
   ================================================ */
.text-pink {
    color: var(--pink-500);
}

.text-purple {
    color: var(--purple-500);
}

.text-gold {
    color: var(--gold-500);
}

.text-success {
    color: var(--success-500);
}

.text-error {
    color: var(--error-500);
}

.text-gray {
    color: var(--gray-500);
}

.bg-pink-50 {
    background: var(--pink-50);
}

.bg-purple-50 {
    background: var(--purple-50);
}

.bg-gold-50 {
    background: var(--gold-50);
}

.gradient-pink {
    background: linear-gradient(135deg, var(--pink-400), var(--rose-500));
}

.gradient-purple {
    background: linear-gradient(135deg, var(--purple-400), var(--pink-500));
}

.gradient-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-slideUp {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(248, 247, 252, 0.5);
}

table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

table tr {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

table tr:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.08);
}

table tr:hover td {
    background: rgba(168, 85, 247, 0.04);
    color: var(--gray-900);
}

table tr:hover td:first-child {
    border-left: 3px solid var(--purple-400);
}

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

/* ================================================
   ANIMATIONS - Smooth Page Transitions
   ================================================ */

/* Content fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Apply animations to content */
.content {
    animation: fadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.main-header {
    animation: slideInRight 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Stagger animation for sidebar items */
.sidebar-nav li {
    animation: slideInRight 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sidebar-nav li:nth-child(1) { animation-delay: 50ms; }
.sidebar-nav li:nth-child(2) { animation-delay: 100ms; }
.sidebar-nav li:nth-child(3) { animation-delay: 150ms; }
.sidebar-nav li:nth-child(4) { animation-delay: 200ms; }
.sidebar-nav li:nth-child(5) { animation-delay: 250ms; }
.sidebar-nav li:nth-child(6) { animation-delay: 300ms; }
.sidebar-nav li:nth-child(7) { animation-delay: 350ms; }
.sidebar-nav li:nth-child(8) { animation-delay: 400ms; }
.sidebar-nav li:nth-child(9) { animation-delay: 450ms; }
.sidebar-nav li:nth-child(10) { animation-delay: 500ms; }

/* Smooth page transition class */
.page-transition {
    animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Card entrance animations */
.card, .glass-card, .stat-card {
    animation: scaleIn 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.stat-card:nth-child(1) { animation-delay: 100ms; }
.stat-card:nth-child(2) { animation-delay: 200ms; }
.stat-card:nth-child(3) { animation-delay: 300ms; }
.stat-card:nth-child(4) { animation-delay: 400ms; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced button hover animations */
.btn {
    transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.btn:active {
    transform: translateY(0);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

/* ================================================
   ADDITIONAL SMOOTH ANIMATIONS
   ================================================ */

/* Bounce animation for icons */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 30px rgba(236, 72, 153, 0.6);
    }
}

/* Smooth fade for modals and overlays */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide from bottom */
@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wiggle animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

/* Pulse scale */
@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* SVG icon animations on hover */
.stat-icon {
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulseScale 2s ease-in-out infinite;
}

/* Glass card enhanced transitions */
.glass-card {
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 600ms ease;
    opacity: 0;
}

.glass-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

/* Link underline animation */
a:not(.btn):not(.sidebar-nav a) {
    position: relative;
    transition: color 300ms ease;
}

a:not(.btn):not(.sidebar-nav a)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-500), var(--pink-500));
    transition: width 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

a:not(.btn):not(.sidebar-nav a):hover::after {
    width: 100%;
}

/* Form inputs smooth focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--purple-400);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Badge animations */
.badge {
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge:hover {
    transform: scale(1.1);
}

/* Tooltip fade effect */
[title]:hover::after {
    animation: fadeInModal 300ms ease both;
}

/* Prevent animation on page load for certain elements */
.no-animate {
    animation: none !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}