/* Modern Design System - World-Class UX/UI Standards */
:root {
    /* Primary Color Palette - Modern & Professional */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-900: #1e3a8a;
    
    /* Secondary Colors */
    --secondary: #64748b;
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    
    /* Accent Colors */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --success-bg: #d1fae5;
    
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --warning-bg: #fef3c7;
    
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --danger-bg: #fee2e2;
    
    --info: #06b6d4;
    --info-light: #22d3ee;
    --info-dark: #0891b2;
    --info-bg: #cffafe;
    
    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.6);
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    --text-disabled: #cbd5e1;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    --border-focus: #3b82f6;
    
    /* Shadows - Modern Depth System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Border Radius - Consistent Scale */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing System - 8px Grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Typography Scale */
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.875rem;    /* 14px */
    --font-base: 1rem;      /* 16px */
    --font-lg: 1.125rem;    /* 18px */
    --font-xl: 1.25rem;     /* 20px */
    --font-2xl: 1.5rem;     /* 24px */
    --font-3xl: 1.875rem;   /* 30px */
    --font-4xl: 2.25rem;    /* 36px */
    --font-5xl: 3rem;       /* 48px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Legacy Support (Backward Compatibility) */
    --beige: var(--neutral-100);
    --beige-dark: var(--neutral-200);
    
    /* Removed unused pastel color variables */
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: var(--leading-normal);
    font-size: var(--font-base);
    font-weight: var(--font-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.container.split-layout {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
}

.container::before {
    display: none;
}

/* Split Layout */
.split-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: var(--bg-primary);
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
    min-height: 100vh;
    margin: 0;
}

.left-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.left-panel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.ad-panel {
    width: 100%;
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--beige);
    min-height: 100vh;
    backdrop-filter: var(--blur-sm);
}

.ad-content {
    text-align: center;
    width: 100%;
}

.ad-content h2 {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.ad-content p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 0.9375rem;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 500;
    backdrop-filter: var(--blur-md);
}

.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-16);
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
}

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

.split-layout .welcome-card,
.split-layout .auth-card {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 100%;
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-small {
    max-width: 240px;
    max-height: 80px;
}

.logo-header {
    max-width: 140px;
    max-height: 40px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.sidebar-logo .logo {
    max-width: 280px;
    max-height: 90px;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

/* Welcome Card */
.welcome-card {
    background: var(--bg-elevated);
    padding: var(--space-12);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    text-align: center;
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.98);
}

.welcome-card .logo-container .logo {
    max-width: 300px;
    max-height: 100px;
}

.welcome-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    font-weight: 400;
}

.button-group {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Auth Cards */
.auth-card {
    background: var(--bg-elevated);
    padding: var(--space-10);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.98);
}

.auth-card .logo-container {
    margin-bottom: 24px;
}

.auth-card h1 {
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    transition: all var(--transition-base);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--border-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    background: var(--bg-primary);
}

.form-group input:disabled,
.form-group select:disabled {
    background: var(--bg-tertiary);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: var(--text-light);
}


.auth-link {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: var(--primary-dark);
}

/* Buttons - Modern Design System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    /* pointer-events: none; kaldırıldı - event listener'ların çalışması için */
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button - Pastel Beige */
.btn-primary {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd4 100%);
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md);
    border: 1px solid #e8ddd4;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e8ddd4 0%, #f5f0e8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #d4c9c0;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button - Pastel Beige */
.btn-secondary {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd4 100%);
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8ddd4;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e8ddd4 0%, #f5f0e8 100%);
    border-color: #d4c9c0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary) !important;
}

/* Danger Button - Removed (use btn-red instead) */
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #ee5a5a;
}

/* Removed unused button styles (btn-success, btn-pink) */

/* Pastel Orange Button - Uyarı/Dikkat Gerektiren Aksiyonlar (Temizle) */
.btn-orange {
    background: linear-gradient(135deg, var(--pastel-orange) 0%, var(--pastel-orange-dark) 100%);
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--pastel-orange-dark);
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--pastel-orange-dark) 0%, var(--pastel-orange) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #ffc88a;
}

.btn-orange:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Pastel Red Button - Silme Aksiyonları */
.btn-red {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd4 100%);
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md);
    border: 1px solid #e8ddd4;
}

.btn-red:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #ee5a5a;
}

.btn-red:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-xs);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-base);
    border-radius: var(--radius-lg);
}

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

/* Messages - Modern Alert System */
.error-message {
    background: var(--danger-bg);
    color: var(--danger-dark);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
    display: none;
    border: 1px solid var(--danger-light);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-left: var(--space-10);
}

.error-message::before {
    content: '⚠️';
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-lg);
}

.error-message.show {
    display: block;
    animation: slideInDown var(--transition-base);
}

.success-message {
    background: var(--success-bg);
    color: var(--success-dark);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
    display: none;
    border: 1px solid var(--success-light);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-left: var(--space-10);
}

.success-message::before {
    content: '✓';
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-lg);
    color: var(--success);
}

.success-message.show {
    display: block;
    animation: slideInDown var(--transition-base);
}

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

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
}

/* Sidebar - Modern Design */
.sidebar {
    width: 280px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: var(--z-fixed);
    transition: transform var(--transition-base), width var(--transition-base);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.98);
}

.sidebar.collapsed {
    width: 60px;
    overflow: visible;
    border-right: 1px solid var(--border);
}

.sidebar.collapsed .sidebar-header {
    padding: 28px 12px;
    width: 100%;
    justify-content: center;
}

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

.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    display: flex;
}

.dashboard-container.sidebar-collapsed .main-content {
    margin-left: 60px;
}

.dashboard-container.sidebar-collapsed .main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

.sidebar-header {
    padding: var(--space-6) var(--space-5);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-primary);
}

.sidebar-header h2 {
    display: none;
}

.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    margin: var(--space-1) var(--space-2);
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
    font-size: var(--font-sm);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: height var(--transition-base);
}

.nav-item:hover {
    background: var(--primary-50);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary);
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-sm);
}

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

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: var(--font-semibold);
    font-size: var(--font-sm);
    flex-shrink: 0;
    border: 2px solid var(--primary-100);
    box-shadow: var(--shadow-sm);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 280px);
    transition: margin-left 0.3s ease;
}

.dashboard-container.sidebar-collapsed .main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

.dashboard-header {
    background: var(--bg-elevated);
    padding: var(--space-5) var(--space-8);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.dashboard-content {
    padding: var(--space-6);
    width: 100%;
    background: var(--bg-secondary);
    box-sizing: border-box;
    min-height: calc(100vh - 80px);
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn var(--transition-base);
}

.page-content.active {
    display: block;
    animation: fadeInSlide var(--transition-base);
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.page-header h2 {
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
}

.page-header .btn {
    box-shadow: var(--shadow-sm);
}

/* List Container */
.list-container {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
}

.items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .items-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .list-container {
        padding: 12px;
    }
}

.item-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    transform-origin: bottom;
}

.item-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: var(--bg-primary);
}

.item-card:hover::before {
    transform: scaleY(1);
}

.item-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
    flex-shrink: 0;
    margin-bottom: var(--space-2);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-200);
}

.item-title {
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

.item-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-normal);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: var(--font-normal);
}

.item-subtitle:not(:last-child) {
    margin-bottom: 4px;
}

.item-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--beige);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 6px;
    align-self: flex-start;
}

.item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.btn-icon:hover::before {
    opacity: 1;
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-icon span {
    position: relative;
    z-index: 1;
}

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-5);
    color: var(--text-tertiary);
    grid-column: 1 / -1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--border);
}

.empty-state-icon {
    font-size: var(--font-5xl);
    margin-bottom: var(--space-4);
    opacity: 0.4;
    color: var(--text-light);
}

.empty-state p {
    font-size: var(--font-base);
    margin: 0;
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.schedule-filter {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.schedule-controls {
    margin-bottom: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.btn-minimal {
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 36px !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    gap: 8px !important;
}

.btn-minimal .btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    min-width: 20px !important;
}

.btn-minimal .btn-text {
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease 0.1s !important;
    white-space: nowrap !important;
}

.btn-minimal:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    width: auto !important;
    padding-right: 16px !important;
}

.btn-minimal:hover .btn-text {
    display: inline-block !important;
    opacity: 1 !important;
}

.class-selector {
    padding: 10px 16px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: -0.01em;
}

.class-selector:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.class-selector:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 2px 8px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 1);
}

.schedules-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.schedule-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
}

.schedule-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-200);
}

.schedule-card-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary-200);
}

.schedule-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-card-clear {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.schedule-card-clear:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.schedule-zoom-container {
    position: relative;
    width: 100%;
    margin-top: var(--space-4);
}

.fit-to-screen-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #2563eb;
    border: 0.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fit-to-screen-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: #1d4ed8;
}

.fit-to-screen-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 6px rgba(59, 130, 246, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.schedule-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-btn {
    padding: 8px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 0.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    letter-spacing: -0.01em;
}

.zoom-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.05);
    color: #1d4ed8;
}

.zoom-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.zoom-level {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    letter-spacing: -0.01em;
}

.schedule-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: auto;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 200px);
    height: calc(100vh - 200px);
    min-height: calc(100vh - 200px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    margin: 0;
    table-layout: auto;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    min-width: fit-content;
}

.schedule-table th {
    background: #f9fafb;
    color: #111827;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-bottom: 2px solid #d1d5db;
    position: sticky;
    top: 0;
    z-index: 3;
    vertical-align: middle;
}

.schedule-table th:first-child,
.schedule-table th[rowspan="2"] {
    position: relative;
    z-index: 3;
    margin-left: 0;
}

.schedule-table th:first-child {
    border-radius: 0;
}

.schedule-table th:last-child {
    border-radius: 0;
}

.schedule-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    height: 80px;
    min-height: 80px;
    position: relative;
    background: #ffffff;
    width: auto;
    min-width: 120px;
    transition: background-color 0.15s ease;
}

.schedule-table td:hover {
    background: #f9fafb;
}

.schedule-table .teacher-cell {
    font-weight: 600;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    width: auto;
    min-width: 160px;
    max-width: 220px;
    vertical-align: middle;
    text-align: left;
    font-size: 14px;
    color: #111827;
    transition: background-color 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.5;
    white-space: nowrap;
}

.schedule-table .teacher-cell:hover {
    background: #f3f4f6;
}

.schedule-table .teacher-name-cell {
    width: auto;
    min-width: 160px;
    max-width: 220px;
    vertical-align: middle;
    text-align: left;
}

.schedule-table .time-header-row {
    background: var(--bg-tertiary);
}

.schedule-table #timeSlotsRow th {
    background: #f3f4f6 !important;
    border-bottom: 2px solid #d1d5db;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    width: auto;
    min-width: 120px;
    color: #374151;
}

/* timeSlotsRow'da öğretmen başlığının altında görünen boş hücreyi gizle */
/* rowspan=2 olan öğretmen başlığı zaten 2 satırı kaplıyor, bu yüzden timeSlotsRow'da o sütunda hücre olmamalı */
.schedule-table #timeSlotsRow th:empty,
.schedule-table #timeSlotsRow th[rowspan],
.schedule-table #timeSlotsRow th[style*="width: 180px"],
.schedule-table #timeSlotsRow th[style*="min-width: 180px"] {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.schedule-table .day-header {
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    min-width: 120px;
    width: auto;
    color: #111827;
}

.schedule-table .teacher-header-row {
    background: var(--primary-50);
}

.schedule-table tbody tr:first-child td {
    font-weight: 500;
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    padding: 6px 8px;
}

.time-slots-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.time-slot {
    min-height: 70px;
    padding: 10px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.time-slot:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.time-slot:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.time-slot.empty {
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    cursor: default;
    border-radius: 4px;
}

.time-slot.empty:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.schedule-table td.schedule-cell {
    padding: 8px;
    vertical-align: middle;
    text-align: center;
    width: auto;
    height: 80px;
    min-height: 80px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    position: relative;
    transition: background-color 0.15s ease;
}

.schedule-table td.schedule-cell:hover {
    background: #f9fafb;
}

/* Compact View - İçeriği sıkıştırarak daha fazla içerik göster */
.schedule-wrapper.compact-view .schedule-table {
    font-size: 11px;
}

.schedule-wrapper.compact-view .schedule-table th {
    padding: 6px 8px;
    font-size: 10px;
}

.schedule-wrapper.compact-view .schedule-table td {
    padding: 4px 6px;
    height: 50px;
    min-height: 50px;
    font-size: 10px;
}

.schedule-wrapper.compact-view .schedule-table .teacher-cell {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 120px;
    max-width: 160px;
}

.schedule-wrapper.compact-view .schedule-table .day-header {
    padding: 6px 8px;
    font-size: 10px;
}

.schedule-wrapper.compact-view .schedule-table #timeSlotsRow th {
    padding: 4px 6px;
    font-size: 9px;
}

.schedule-wrapper.compact-view .schedule-table tbody tr:first-child td {
    padding: 3px 4px;
    font-size: 9px;
}

.schedule-wrapper.compact-view .time-slot {
    min-height: 45px;
    padding: 6px 4px;
    font-size: 10px;
    gap: 2px;
}

.schedule-wrapper.compact-view .time-slot div {
    font-size: 9px !important;
    line-height: 1.3 !important;
}

.schedule-wrapper.compact-view .time-slot div:first-child {
    font-size: 10px !important;
    font-weight: 600 !important;
}

.schedule-wrapper.compact-view .time-slots-container {
    gap: 2px;
}

.class-item {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary-dark);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    margin: var(--space-1) 0;
    cursor: move;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-200);
    user-select: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    font-weight: var(--font-medium);
}

.class-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    border-color: var(--primary-300);
}

.class-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-zone {
    min-height: 70px;
    position: relative;
    transition: background-color 0.15s ease;
    cursor: pointer;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
}

.drop-zone:hover:not(.drag-over):not(:has(.class-item)) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.drop-zone.drag-over {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 4px;
}

.class-item .class-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.class-item .class-details {
    font-size: 0.6875rem;
    opacity: 1;
}

/* Drag and Drop Stilleri - Apple Style */
.draggable-slot {
    cursor: move !important;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-drag: element;
    -khtml-user-drag: element;
    -moz-user-drag: element;
    -o-user-drag: element;
    user-drag: element;
}

/* Child elementlerin drag işlemini engellemesini önle */
.draggable-slot > * {
    pointer-events: none;
}

.draggable-slot:active {
    cursor: grabbing !important;
    opacity: 0.7;
}

.schedule-cell.drag-over {
    background-color: #ecfdf5 !important;
    border-color: #10b981 !important;
    border-width: 2px !important;
}

.schedule-cell.drag-over .drop-zone {
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    border-style: solid !important;
    border-width: 2px !important;
}

.drop-zone.drag-over {
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    border-style: solid !important;
    border-width: 2px !important;
    opacity: 1 !important;
}

/* Drag sırasında geçersiz drop zone */
.schedule-cell:has(.drop-zone) {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Time Slot İçerik Stilleri - Apple Style */
.time-slot-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    letter-spacing: -0.02em;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    text-shadow: none;
}

.time-slot-time {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    letter-spacing: -0.01em;
    opacity: 0.9;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.time-slot-room {
    font-size: 0.6875rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    letter-spacing: -0.01em;
    opacity: 0.85;
    font-weight: 600;
}
    margin-top: 2px;
    line-height: 1.3;
    display: block;
    color: var(--text-secondary);
}

.class-item .class-details:last-child {
    margin-bottom: 0;
}

.class-item-with-school {
    /* Sınıf etiketli kutular için özel stil - şu an için boş */
    display: block;
}

.class-school-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border);
    line-height: 1.2;
}

/* Modal - Modern Design */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(8px);
    overflow: auto;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-elevated);
    padding: 0;
    border-radius: var(--radius-3xl);
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2xl);
    overflow: visible;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.98);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp var(--transition-slow);
}

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

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content.modern-form {
    padding: 0;
}

.modal-header {
    background: var(--bg-tertiary);
    padding: var(--space-6) var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-header .close {
    position: static;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: var(--blur-sm);
    border-radius: var(--radius-sm);
}

.modal-header .close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: none;
    background: none;
}

.close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Modern Form Content */
.modern-form-content {
    padding: 40px;
    overflow-y: auto;
    overflow-x: visible;
    flex: 1;
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Form Group */
.modern-input {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
}

/* Input and Select Base Styles */
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 20px 16px 8px 16px;
    margin: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    min-height: 60px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-wrapper input:hover,
.input-wrapper select:hover {
    border-color: var(--text-light);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.08);
    background: var(--bg-primary);
}

.input-wrapper input::placeholder {
    color: transparent;
    opacity: 0;
}

.input-wrapper input:focus::placeholder {
    color: var(--text-light);
    opacity: 1;
}

/* Labels */
.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 20px;
    transform: translateY(0);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    z-index: 2;
    line-height: 1;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper select:focus + label,
.input-wrapper select:not([value=""]) + label {
    transform: translateY(-10px) translateX(0) scale(0.85);
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0 8px;
    left: 8px;
    font-weight: 500;
    top: 0;
}

/* Time Input Group */
.time-wrapper {
    position: relative;
    width: 100%;
    min-height: 60px;
}

.time-wrapper .time-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    width: 100%;
    padding-top: 12px;
}

.time-wrapper .time-input-group select {
    padding: 20px 12px 8px 12px;
    margin: 0;
    flex: 1;
    min-height: 60px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.time-wrapper .time-input-group select:hover {
    border-color: var(--text-light);
}

.time-wrapper .time-input-group select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.08);
}

.time-wrapper label {
    position: absolute;
    left: 16px;
    top: 0;
    transform: translateY(-10px) translateX(0) scale(0.85);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    padding: 0 8px;
    z-index: 2;
}

.time-wrapper select:focus + label,
.time-wrapper select:not([value=""]) + label {
    transform: translateY(-10px) translateX(0) scale(0.85);
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0 8px;
    left: 8px;
    font-weight: 500;
    top: 0;
}

.time-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    line-height: 60px;
    display: flex;
    align-items: center;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    flex: 1;
}

/* Repeat Days Wrapper */
.repeat-days-wrapper {
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding-top: 28px;
    padding-bottom: 12px;
}

.repeat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    position: absolute;
    top: -8px;
    left: 8px;
    background: var(--bg-primary);
    padding: 0 8px;
    z-index: 3;
    line-height: 1;
}

.repeat-days-checkboxes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 14px;
    margin: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    min-width: 50px;
}

.checkbox-label:hover {
    background: var(--beige);
    border-color: var(--beige-dark);
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-right: 6px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--text-primary);
}

.checkbox-label span {
    display: inline-block;
    line-height: 1;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--text-primary);
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    background: var(--beige);
    border-color: var(--beige-dark);
    color: var(--text-primary);
}

/* Available Days Container */
.available-days-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    min-height: 60px;
    align-items: center;
}

/* Haftalık tekrar alanı için özel input-wrapper stili */
.form-group:has(.repeat-days-wrapper) .input-wrapper {
    min-height: 60px;
    align-items: flex-start;
    padding: 28px 16px 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
    height: auto;
    background: var(--bg-primary);
}

.form-group:has(.repeat-days-wrapper) .input-wrapper:hover {
    border-color: var(--text-light);
}

.form-group:has(.repeat-days-wrapper) .input-wrapper:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.08);
}

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modern-form-content {
        padding: 24px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
}

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

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

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

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    .split-layout {
        flex-direction: column;
        min-height: 100vh;
    }

    .left-panel::after {
        display: none;
    }

    .left-panel::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border);
    }

    .ad-panel {
        min-height: 50vh;
        padding: 60px 40px;
    }

    .right-panel {
        padding: 60px 40px;
        min-height: 50vh;
    }

    .ad-placeholder {
        min-height: 150px;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-logo .logo-header {
        max-width: 120px;
        max-height: 35px;
    }

    .sidebar-logo .logo {
        max-width: 220px;
        max-height: 70px;
    }

    .dashboard-content {
        padding: 16px;
    }
    
    .items-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .schedule-table {
        font-size: 13px;
        min-width: 100%;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 8px;
    }
    
    .schedule-table .teacher-cell {
        min-width: 120px !important;
        max-width: 160px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .schedule-table .teacher-name-cell {
        min-width: 120px !important;
        max-width: 160px !important;
    }
    
    .schedule-table td {
        min-width: 100px !important;
        padding: 6px !important;
        height: 70px !important;
        min-height: 70px !important;
    }
    
    .schedule-table #timeSlotsRow th {
        min-width: 100px !important;
        padding: 6px !important;
        font-size: 11px !important;
    }
    
    .schedule-table .day-header {
        min-width: 100px !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    .schedule-wrapper {
        padding: 16px !important;
        border-radius: 6px !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }
    
    .time-slot {
        min-height: 60px !important;
        padding: 8px 6px !important;
    }

    .welcome-card,
    .auth-card {
        padding: 32px 24px;
    }

    .welcome-card h1 {
        font-size: 1.875rem;
    }

    .sidebar {
        width: 100%;
        max-width: 320px;
    }
}

/* Organization Type Selector */
.organization-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.org-type-btn {
    padding: var(--space-5);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    box-shadow: var(--shadow-sm);
}

.org-type-btn strong {
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    display: block;
    letter-spacing: -0.01em;
}

.org-type-btn small {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: var(--font-normal);
    display: block;
    line-height: var(--leading-relaxed);
}

.org-type-btn:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.org-type-btn.active {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.org-type-btn.active strong {
    color: var(--primary-dark);
}

/* Yardım Butonu (Floating) */
.help-button {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: 2px solid var(--primary-100);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    color: var(--text-inverse);
    font-size: var(--font-xl);
}

.help-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

.help-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .help-button {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Admin Panel - Paket İstatistikleri */
#planStatsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    #planStatsContainer {
        grid-template-columns: 1fr;
    }
    
    #planDistributionChart {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .welcome-card h1 {
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .organization-type-selector {
        grid-template-columns: 1fr;
    }
}

/* Setup Wizard Modal Styles - Modern Design */
.setup-modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    animation: fadeIn var(--transition-base);
}

.setup-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    z-index: 1;
}

.setup-modal-content {
    position: relative;
    z-index: 2;
    background: var(--bg-elevated);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: var(--space-5);
    animation: slideUpModal var(--transition-slow);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.98);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.setup-modal-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--neutral-100);
    border: 1px solid var(--border);
    font-size: var(--font-xl);
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.setup-modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-light);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.setup-modal-body {
    padding: 0;
}

.setup-modal-body .setup-wrapper {
    padding: 60px 50px;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Setup Wizard Styles */
.setup-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    padding: 60px 50px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

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

.setup-logo {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

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

.setup-logo .logo {
    max-width: 300px;
    max-height: 100px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.setup-logo .logo:hover {
    transform: scale(1.05);
}

/* Progress Bar */
.setup-progress {
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-8);
    position: relative;
    box-shadow: var(--shadow-inner);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
    animation: progressGradient 3s ease infinite;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

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

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-tertiary);
    z-index: 0;
    border-radius: 2px;
}

.step-indicator {
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    cursor: default;
}

.step-indicator:hover:not(.active):not(.completed) {
    transform: translateY(-2px);
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-100);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0;
}

.step-indicator.active::after {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--border);
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
}

.step-indicator.completed .step-number {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: var(--text-inverse);
    border-color: var(--success);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.step-indicator.completed .step-number::before {
    content: '✓';
    font-size: 1.25rem;
    animation: checkmark 0.4s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.step-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-indicator.active .step-label {
    color: var(--text-primary);
    font-weight: 700;
    transform: translateY(0);
}

.step-indicator.completed .step-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Setup Steps */
.setup-step {
    display: none;
    animation: fadeInSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.setup-step.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.setup-step-content {
    margin-bottom: 40px;
    animation: contentFadeIn 0.6s ease-out 0.2s both;
}

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

.setup-step-content h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 0.6s ease-out;
}

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

.setup-step-content h2 {
    color: var(--text-primary);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.01em;
    animation: titleSlide 0.6s ease-out;
}

.setup-description {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: descriptionFade 0.6s ease-out 0.3s both;
}

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

.setup-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: featuresSlide 0.6s ease-out 0.4s both;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 240, 232, 0.5), rgba(255, 255, 255, 0.8));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--beige-dark);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--beige-dark);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--beige-dark), var(--beige));
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.feature-item:hover span:last-child {
    color: var(--text-primary);
}

.setup-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    animation: actionsFade 0.6s ease-out 0.5s both;
}

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

.setup-actions .btn {
    min-width: 140px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.setup-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.setup-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.setup-actions .btn-primary {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd4 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--text-primary) !important;
    border: 1px solid #e8ddd4;
}

.setup-actions .btn-primary:hover {
    background: linear-gradient(135deg, #e8ddd4 0%, #f5f0e8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #d4c9c0;
}

.setup-actions .btn-pink {
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-pink-dark) 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--text-primary) !important;
    border: 1px solid var(--pastel-pink-dark);
}

.setup-actions .btn-pink:hover {
    background: linear-gradient(135deg, var(--pastel-pink-dark) 0%, var(--pastel-pink) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #f5b8d6;
}

.setup-actions .btn-pink:hover span:last-child {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.setup-actions .btn-orange {
    background: linear-gradient(135deg, var(--pastel-orange) 0%, var(--pastel-orange-dark) 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--text-primary) !important;
    border: 1px solid var(--pastel-orange-dark);
}

.setup-actions .btn-orange:hover {
    background: linear-gradient(135deg, var(--pastel-orange-dark) 0%, var(--pastel-orange) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #ffc88a;
}

.setup-actions .btn-red {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd4 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--text-primary) !important;
    border: 1px solid #e8ddd4;
}

.setup-actions .btn-red:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #ee5a5a;
}

.setup-actions .btn-primary:hover span:last-child {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.setup-actions .btn-primary:active {
    transform: translateY(0);
}

.setup-actions .btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.setup-actions .btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.setup-actions .btn-secondary {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd4 100%);
    border: 1.5px solid #e8ddd4;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.setup-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #e8ddd4 0%, #f5f0e8 100%);
    border-color: #d4c9c0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.setup-actions .btn-secondary:hover span:first-child {
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.setup-actions .btn-secondary:active {
    transform: translateY(0);
}

/* Setup Complete */
.setup-complete {
    text-align: center;
    padding: 40px 20px;
    animation: completeFadeIn 0.8s ease-out;
}

@keyframes completeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.complete-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-5xl);
    font-weight: var(--font-bold);
    margin: 0 auto var(--space-8);
    border: 4px solid var(--success-light);
    box-shadow: var(--shadow-2xl);
    animation: completeIconAnimation 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    position: relative;
}

.complete-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--beige-dark);
    opacity: 0;
    animation: ripple 1.5s ease-out 0.8s infinite;
}

@keyframes completeIconAnimation {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.setup-summary {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 50%, var(--bg-elevated) 100%);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--primary-200);
    text-align: left;
    box-shadow: var(--shadow-lg);
    animation: summarySlide 0.6s ease-out 0.4s both;
}

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

.summary-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 32px;
}

.summary-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item:hover {
    transform: translateX(4px);
    padding-left: 36px;
}

.summary-item strong {
    color: var(--text-primary);
    font-weight: 700;
    margin-right: 8px;
    min-width: 120px;
}

/* Setup Error Message */
#setupErrorMessage {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: errorSlide 0.4s ease-out;
}

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

/* Setup Form Improvements */
.setup-step .form-group {
    margin-bottom: 24px;
    animation: formFieldFade 0.5s ease-out both;
}

.setup-step .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.setup-step .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.setup-step .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.setup-step .form-group:nth-child(4) {
    animation-delay: 0.4s;
}

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

.setup-step .form-group input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.setup-step .form-group input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.setup-step .form-group label {
    transition: color 0.3s ease;
}

.setup-step .form-group input:focus + label,
.setup-step .form-group:focus-within label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .setup-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .setup-modal-body .setup-wrapper {
        padding: 32px 24px;
    }

    .setup-wrapper {
        padding: 32px 24px;
        border-radius: var(--radius-lg);
    }

    .setup-logo .logo {
        max-width: 240px;
        max-height: 80px;
    }

    .setup-step-content h1 {
        font-size: 2rem;
    }

    .setup-step-content h2 {
        font-size: 1.5rem;
    }

    .setup-description {
        font-size: 0.9375rem;
    }

    .progress-steps {
        gap: 8px;
    }

    .progress-steps::before {
        display: none;
    }

    .step-indicator {
        min-width: 70px;
        padding: 12px 8px;
    }

    .step-label {
        font-size: 0.6875rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .setup-actions {
        flex-direction: column;
        gap: 12px;
    }

    .setup-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .feature-item {
        padding: 16px 20px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .setup-summary {
        padding: 24px;
    }

    .summary-item {
        font-size: 0.875rem;
        padding: 12px 0;
        padding-left: 28px;
    }

    .summary-item strong {
        min-width: 100px;
        font-size: 0.875rem;
    }

    .complete-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .setup-wrapper {
        padding: 24px 20px;
    }

    .setup-step-content h1 {
        font-size: 1.75rem;
    }

    .setup-step-content h2 {
        font-size: 1.25rem;
    }

    .step-indicator {
        min-width: 50px;
        padding: 8px 4px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .feature-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
