* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Soft, eye-friendly color palette */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #7c3aed;
    --primary-600: #6d28d9;
    --primary-700: #5b21b6;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Soft accent colors */
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-amber: #f59e0b;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Decorative background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(124, 58, 237, 0.01) 2px,
            rgba(124, 58, 237, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    z-index: 1;
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Sidebar Styles - RTL with soft colors and Arabic patterns */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #5b21b6 0%, #6d28d9 50%, #7c3aed 100%);
    background-image: 
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(91, 33, 182, 0.95) 0%, rgba(109, 40, 217, 0.95) 50%, rgba(124, 58, 237, 0.95) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    right: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 30px rgba(91, 33, 182, 0.25), -8px 0 60px rgba(91, 33, 182, 0.1);
    will-change: transform, opacity, visibility;
}

/* Arabic geometric pattern overlay */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Top decorative border - geometric pattern */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.03) 8px,
            rgba(255, 255, 255, 0.03) 10px
        ),
        /* Diagonal arabesque pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.02) 20px,
            rgba(255, 255, 255, 0.02) 22px
        ),
        /* Reverse diagonal pattern */
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.02) 20px,
            rgba(255, 255, 255, 0.02) 22px
        ),
        /* Circular decorative elements */
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Bottom decorative pattern */
.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: 
        /* Geometric border pattern */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 15px,
            rgba(255, 255, 255, 0.04) 15px,
            rgba(255, 255, 255, 0.04) 17px
        ),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Additional Arabic pattern decoration */
.sidebar-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.2) 10px,
        rgba(255, 255, 255, 0.2) 12px
    );
    z-index: 1;
}

/* Arabic geometric pattern in menu area */
.sidebar-menu {
    position: relative;
}

.sidebar-menu::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Star pattern */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.015) 30px,
            rgba(255, 255, 255, 0.015) 32px
        ),
        /* Hexagonal pattern */
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 25px,
            rgba(255, 255, 255, 0.01) 25px,
            rgba(255, 255, 255, 0.01) 27px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 25px,
            rgba(255, 255, 255, 0.01) 25px,
            rgba(255, 255, 255, 0.01) 27px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.sidebar.closed {
    transform: translateX(100%);
}

@media (min-width: 769px) {
    .sidebar.closed {
        transform: translateX(100%);
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.98) 0%, rgba(109, 40, 217, 0.98) 50%, rgba(124, 58, 237, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 10;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.sidebar-menu {
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.menu-item {
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    margin: 0.25rem 0.5rem;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.menu-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #fbbf24;
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateX(-3px);
}

.menu-item:hover::before {
    height: 60%;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.18);
    border-right-color: #fbbf24;
    color: white;
    font-weight: 600;
}

.menu-item.active::before {
    height: 70%;
}

.menu-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Topbar Styles - Soft and modern */
.topbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.topbar-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 25%, #ec4899 50%, #f59e0b 75%, #7c3aed 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
    animation: gradientShift 4s ease infinite;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.topbar-title:hover {
    transform: scale(1.05);
    animation-duration: 2s;
}

.title-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.2));
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Additional decorative effects */
.topbar-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.topbar-title:hover::before {
    opacity: 1;
}

.topbar-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.topbar-title:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateX(100%);
        opacity: 0;
    }
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-700);
}


.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.topbar-icon-wrapper {
    position: relative;
}

.topbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-100);
    position: relative;
    flex-shrink: 0;
}

.topbar-icon:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.topbar-icon:active {
    transform: translateY(0);
}

.topbar-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-700);
    stroke-width: 2;
}

.topbar-icon .badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* Dropdown Menu - Fixed for mobile RTL */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid var(--gray-200);
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--gray-500);
    flex-shrink: 0;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.user-profile:hover {
    background: var(--gray-50);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content - RTL */
.main-content {
    flex: 1;
    margin-right: 280px;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background: transparent;
    width: 100%;
    min-width: 0;
    position: relative;
}

.main-content.expanded {
    margin-right: 0;
    width: 100%;
}

.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

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

/* Cards - Soft and modern with decorative elements */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.2);
}

.card:hover::before {
    opacity: 1;
}

/* Stats Cards - Softer gradients */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(109, 40, 217, 0.85) 50%, rgba(91, 33, 182, 0.9) 100%);
    color: white;
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25), 0 2px 8px rgba(124, 58, 237, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9) 0%, rgba(219, 39, 119, 0.85) 50%, rgba(190, 24, 93, 0.9) 100%);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25), 0 2px 8px rgba(236, 72, 153, 0.15);
}

.stat-card.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.85) 50%, rgba(29, 78, 216, 0.9) 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25), 0 2px 8px rgba(59, 130, 246, 0.15);
}

.stat-card.green {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9) 0%, rgba(15, 118, 110, 0.85) 50%, rgba(13, 148, 136, 0.9) 100%);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25), 0 2px 8px rgba(20, 184, 166, 0.15);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(124, 58, 237, 0.2);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    line-height: 1;
    word-break: break-word;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.95;
    font-weight: 500;
    word-break: break-word;
}

/* Chart Cards */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.2);
}

.chart-card:hover::before {
    opacity: 1;
}

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

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.chart-placeholder {
    height: 280px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-300);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(124, 58, 237, 0.02) 10px,
        rgba(124, 58, 237, 0.02) 20px
    );
}

.chart-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: var(--gray-400);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

/* Activity List */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem;
    background: var(--gray-50);
    border-radius: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    width: 100%;
}

.activity-item:hover {
    background: white;
    border-color: var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
    font-size: 0.9375rem;
    word-break: break-word;
}

.activity-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    word-break: break-word;
}

.activity-time {
    font-size: 0.8125rem;
    color: var(--gray-400);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        width: 280px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    
    .sidebar.closed {
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .main-content {
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .dashboard-container {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .topbar {
        padding: 0 1rem;
        height: 64px;
    }
    
    .topbar-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .topbar-title {
        font-size: 1.5rem;
    }
    
    .topbar-left {
        gap: 0.75rem;
    }
    
    .topbar-right {
        gap: 0.25rem;
    }
    
    .topbar-icon {
        width: 36px;
        height: 36px;
    }
    
    .topbar-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .user-profile {
        padding: 0.25rem;
        gap: 0.5rem;
    }
    
    .user-info {
        display: none;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    /* Dropdown Menu - Mobile RTL Fix */
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 240px;
        max-width: calc(100vw - 2rem);
        position: fixed;
        top: auto;
        bottom: auto;
        transform: translateY(-10px) translateX(0);
    }
    
    .dropdown-menu.show {
        transform: translateY(0) translateX(0);
    }
    
    /* Ensure dropdowns don't go off screen on mobile */
    .topbar-icon-wrapper:last-child .dropdown-menu,
    .topbar-icon-wrapper:nth-last-child(2) .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 85%;
        max-width: 320px;
    }
    
    .content-wrapper {
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .chart-card {
        padding: 1.25rem;
    }
    
    .chart-placeholder {
        height: 220px;
    }
    
    .activity-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
    }
    
    .topbar {
        padding: 0 0.75rem;
    }
    
    .topbar-title {
        font-size: 1.25rem;
    }
    
    .dropdown-menu {
        min-width: 200px;
        max-width: calc(100vw - 1.5rem);
        right: 0.5rem;
        left: auto;
    }
    
    .main-content {
        width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 360px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .content-wrapper {
        padding: 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .main-content {
        width: 100%;
        overflow-x: hidden;
    }
    
    .dropdown-menu {
        min-width: 180px;
        max-width: calc(100vw - 1rem);
        right: 0.5rem;
    }
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

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

/* ============================================
   Admin Dashboard Styles
   ============================================ */

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.stat-icon-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.stat-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-info h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-link {
    color: var(--primary-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--primary-700);
}

.card-content {
    padding: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 0.75rem;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.contact-item.unread {
    background: #fef3c7;
    border-color: #f59e0b;
}

.contact-item:hover {
    background: var(--gray-50);
}

.contact-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.contact-message {
    font-size: 0.875rem;
    color: var(--gray-700);
    display: block;
    margin-top: 0.5rem;
}

.contact-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

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

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.empty-state p {
    font-size: 0.9375rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #86efac;
    color: #065f46;
}

.alert-success svg {
    flex-shrink: 0;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-600);
}

input[type="checkbox"] + label {
    margin-right: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
}

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

.dashboard-header > div:first-child {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.current-image {
    margin-bottom: 1rem;
}

.current-image img {
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-item {
    margin-bottom: 1.5rem;
}

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

.detail-item p {
    color: var(--gray-900);
    font-size: 1rem;
    line-height: 1.6;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.link {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

.message-content {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-image-preview,
.work-image-preview {
    text-align: center;
}

.project-image-preview img,
.work-image-preview img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        overflow-x: scroll;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Authentication Pages Styles
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.auth-background-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.6s ease-out;
}

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

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
    }
}

.auth-logo-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2.5;
}

.auth-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 25%, #ec4899 50%, #f59e0b 75%, #7c3aed 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    letter-spacing: -0.5px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-alert div {
    flex: 1;
}

.auth-alert p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.auth-label svg {
    width: 18px;
    height: 18px;
    stroke: var(--gray-500);
    flex-shrink: 0;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 2.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--gray-900);
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.auth-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

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

.auth-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--gray-400);
    pointer-events: none;
    z-index: 1;
    transition: stroke 0.2s ease;
}

.auth-input:focus ~ .auth-input-icon {
    stroke: var(--primary-500);
}

.auth-password-toggle {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: color 0.2s ease;
    z-index: 2;
}

.auth-password-toggle:hover {
    color: var(--primary-600);
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.auth-checkbox-input:checked {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.auth-checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.auth-link {
    font-size: 0.875rem;
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    background-position: 100% 50%;
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.auth-footer-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.25rem;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .auth-logo-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .auth-logo-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .auth-logo-text {
        font-size: 1.75rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9375rem;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
    
    .auth-logo {
        margin-bottom: 2rem;
    }
    
    .auth-logo-icon {
        width: 56px;
        height: 56px;
    }
    
    .auth-logo-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .auth-logo-text {
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.375rem;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 1.25rem 1rem;
    }
    
    .auth-logo-text {
        font-size: 1.25rem;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
}
