:root {
    --primary: rgb(106, 219, 217);
    --primary-dark: rgb(76, 189, 187);
    --primary-darker: rgb(56, 169, 167);
    --secondary: rgb(126, 239, 237);
    --secondary-light: rgb(146, 255, 253);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f59e0b;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --gold: #f59e0b;

    --bg-primary: #0a0f1e;
    --bg-secondary: #151b2e;
    --bg-tertiary: #1f2937;
    --bg-card: linear-gradient(135deg, #151b2e 0%, #1a2233 100%);
    --bg-hover: #253041;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --border: rgba(106, 219, 217, 0.15);
    --border-hover: rgba(106, 219, 217, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(106, 219, 217, 0.1);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(106, 219, 217, 0.15);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(106, 219, 217, 0.2);
    --shadow-glow: 0 0 24px rgba(106, 219, 217, 0.3), 0 0 48px rgba(106, 219, 217, 0.1);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0a0f1e 0%, #151b2e 50%, #0f1525 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 219, 217, 0.08) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(21, 27, 46, 0.95) 0%, rgba(15, 21, 37, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 2px solid var(--border);
    padding: 2rem 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5), 0 0 48px rgba(106, 219, 217, 0.05);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(circle at top, rgba(106, 219, 217, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.logo {
    padding: 0 1.5rem 2rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--secondary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(106, 219, 217, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 16px rgba(106, 219, 217, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.logo h2 {
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(106, 219, 217, 0.3));
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-3px);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(106, 219, 217, 0.08), rgba(126, 239, 237, 0.05));
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover::before {
    transform: translateX(0);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(106, 219, 217, 0.2) 0%, rgba(126, 239, 237, 0.15) 50%, rgba(146, 255, 253, 0.1) 100%);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(106, 219, 217, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(106, 219, 217, 0.3);
    transform: translateX(4px);
}

.nav-item.active::before {
    transform: translateX(0);
    box-shadow: 0 0 12px rgba(106, 219, 217, 0.6);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.nav-item.active svg {
    filter: drop-shadow(0 0 8px rgba(106, 219, 217, 0.5));
}

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

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(241, 245, 249, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(106, 219, 217, 0.5);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.current-month {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

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

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

.btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.btn:hover svg {
    transform: scale(1.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(106, 219, 217, 0.3);
    border: 1px solid rgba(106, 219, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(106, 219, 217, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.8), rgba(31, 41, 55, 0.8));
    color: var(--text-primary);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(37, 48, 65, 0.9));
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(106, 219, 217, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 219, 217, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

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

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 48px rgba(106, 219, 217, 0.2);
    border-color: var(--border-hover);
}

.stat-card.wide {
    grid-column: span 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s ease;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius);
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon svg {
    transform: scale(1.1);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-icon.blue::before {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-icon.green::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-icon.orange::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-icon.purple::before {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-icon.pink::before {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.stat-icon.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #ca8a04 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-icon.gold::before {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(241, 245, 249, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 24px rgba(106, 219, 217, 0.1);
}

.stat-change {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    display: inline-block;
}

.stat-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.stat-change.neutral {
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.1);
}

.stat-change.warning {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

/* Revenue Toggle */
.revenue-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-value.revenue-hidden {
    letter-spacing: 0.25rem;
}

.toggle-revenue {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-revenue:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.toggle-revenue svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* Recent Activity */
.dashboard-bottom {
    display: grid;
    gap: 1.5rem;
}

.recent-activity {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.recent-activity::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 219, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.recent-activity h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.4), rgba(31, 41, 55, 0.4));
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(106, 219, 217, 0.15);
}

.activity-item:hover::before {
    transform: translateX(0);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Planning Page */
.planning-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    max-height: calc(100vh - 180px);
    width: 100%;
    max-width: 100%;
}

.calendar-grid {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.calendar-grid::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 219, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    flex: 1;
    align-content: start;
    width: 100%;
    max-width: 100%;
}

.calendar-day {
    min-height: 120px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
    min-width: 0;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.calendar-day:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.drop-target {
    border-color: var(--primary);
    background: rgba(106, 219, 217, 0.1);
}

.calendar-day.drop-before::before,
.calendar-day.drop-after::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(106, 219, 217, 0.6);
    z-index: 10;
    animation: pulse 1s ease-in-out infinite;
}

.calendar-day.drop-before::before {
    top: 2.5rem;
}

.calendar-day.drop-after::after {
    bottom: 0.5rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleX(0.98);
    }
}

.day-number {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.appointments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.appointment {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.8125rem;
    cursor: move;
    transition: all 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.appointment:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.appointment.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.appointment.pending {
    border-color: var(--orange);
    background: rgba(245, 158, 11, 0.1);
}

.appointment.confirmed {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.appointment.completed {
    border-color: var(--text-tertiary);
    background: rgba(100, 116, 139, 0.1);
    opacity: 0.6;
}

.appointment-client {
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-car {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Unscheduled Panel */
.unscheduled-panel {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.unscheduled-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 219, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.unscheduled-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.95) 0%, rgba(26, 34, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    position: sticky;
    top: 0;
    z-index: 10;
    background-clip: padding-box;
    color: var(--primary);
}

.unscheduled-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.unscheduled-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: move;
    transition: all 0.2s ease;
}

.unscheduled-item:hover {
    border-color: var(--primary);
    transform: translateX(-4px);
}

.unscheduled-client {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.unscheduled-car {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.unscheduled-subscription {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.subscription-basic {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

.subscription-premium {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.subscription-exclusive {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
}

/* Clients Page */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6), rgba(31, 41, 55, 0.6));
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 280px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 4px rgba(106, 219, 217, 0.15), 0 4px 16px rgba(106, 219, 217, 0.2);
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.8), rgba(31, 41, 55, 0.8));
}

.filter-select {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6), rgba(31, 41, 55, 0.6));
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 4px rgba(106, 219, 217, 0.15);
}

.clients-table-container {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.clients-table-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 219, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Column widths for 7 columns */
.clients-table th:nth-child(1),
.clients-table td:nth-child(1) { width: 18%; } /* Klant */
.clients-table th:nth-child(2),
.clients-table td:nth-child(2) { width: 18%; } /* Auto's */
.clients-table th:nth-child(3),
.clients-table td:nth-child(3) { width: 14%; } /* Abonnement */
.clients-table th:nth-child(4),
.clients-table td:nth-child(4) { width: 14%; } /* Beschikbaarheid */
.clients-table th:nth-child(5),
.clients-table td:nth-child(5) { width: 14%; } /* Contact */
.clients-table th:nth-child(6),
.clients-table td:nth-child(6) { width: 10%; } /* Status */
.clients-table th:nth-child(7),
.clients-table td:nth-child(7) { width: 12%; } /* Acties */

.clients-table thead {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.clients-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clients-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

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

.clients-table tbody tr {
    transition: all 0.3s ease;
}

.clients-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(106, 219, 217, 0.05), rgba(126, 239, 237, 0.03));
}

/* Hover indicator on first cell instead of tr (for table compatibility) */
.clients-table tbody td:first-child {
    position: relative;
}

.clients-table tbody td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clients-table tbody tr:hover td:first-child::before {
    opacity: 1;
}

.client-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.client-email {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.car-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.car-item {
    font-size: 0.875rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-tertiary);
}

/* Subscription badges */
.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.subscription-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.subscription-none {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
}

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

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

.action-btn {
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.action-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.95) 0%, rgba(26, 34, 51, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-hover);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 64px rgba(106, 219, 217, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(106, 219, 217, 0.1) 0%, transparent 60%);
    pointer-events: none;
    border-radius: var(--radius-xl);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--border);
    position: relative;
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.close-modal svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.schedule-config h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.days-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.day-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.day-checkbox input {
    display: none;
}

.day-checkbox span {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.day-checkbox input:checked + span {
    background: rgba(106, 219, 217, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.time-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.time-input-group input {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.time-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 2rem;
    border-top: 2px solid var(--border);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.5) 0%, rgba(26, 34, 51, 0.5) 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(21, 27, 46, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(106, 219, 217, 0.5), rgba(76, 189, 187, 0.5));
    border-radius: 5px;
    border: 2px solid rgba(21, 27, 46, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(106, 219, 217, 0.7), rgba(76, 189, 187, 0.7));
    box-shadow: 0 0 12px rgba(106, 219, 217, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }

    .planning-container {
        grid-template-columns: 1fr;
        height: auto;
        padding-bottom: 1rem;
    }

    .calendar-grid {
        height: 500px;
    }

    .unscheduled-panel {
        height: 400px;
    }
}

/* ============================================
   SUBSCRIPTIONS PAGE STYLES
   ============================================ */

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

.subscriptions-section {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    flex: 1 0 100%;
}

.subscriptions-table-container {
    overflow-x: auto;
}

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

.subscriptions-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.subscriptions-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.subscriptions-table tbody tr:hover {
    background: rgba(106, 219, 217, 0.05);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(106, 219, 217, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 2rem;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

/* Form styles for modals */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 219, 217, 0.1);
}

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

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PLANNING TIMELINE STYLES
   ============================================ */

/* Calendar day cell updates */
.calendar-day-enhanced {
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day-enhanced:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.day-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.day-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
}

.day-stat svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.day-stat.employees {
    color: var(--primary);
}

.day-stat.cars {
    color: var(--secondary);
}

.day-times {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Capacity indicator classes */
.calendar-day.capacity-available {
    border-left: 3px solid var(--success);
}

.calendar-day.capacity-busy {
    border-left: 3px solid var(--warning);
}

.calendar-day.capacity-full {
    border-left: 3px solid var(--danger);
}

.calendar-day.capacity-empty {
    border-left: 3px solid var(--text-tertiary);
}

/* Capacity bar */
.day-capacity-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.day-capacity-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    background: var(--success);
}

/* Change bar color based on percentage via parent class */
.calendar-day.capacity-busy .day-capacity-fill {
    background: var(--warning);
}

.calendar-day.capacity-full .day-capacity-fill {
    background: var(--danger);
}

/* Modal large size */
.modal-content.modal-large {
    max-width: 95vw;
    width: 1400px;
    max-height: 90vh;
}

.modal-content.modal-small {
    max-width: 400px;
}

/* Day employees selector */
.day-employees-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.selector-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.employee-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.employee-btn:hover {
    border-color: var(--primary);
}

.employee-btn .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.employee-btn .remove-employee {
    margin-left: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.employee-btn:hover .remove-employee {
    opacity: 1;
}

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

/* Timeline container */
.timeline-container {
    padding: 1rem;
    overflow-x: auto;
    min-height: 300px;
}

.timeline-header {
    display: flex;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.timeline-label {
    width: 120px;
    min-width: 120px;
    padding: 0.5rem;
}

.timeline-hours {
    display: flex;
    flex: 1;
    position: relative;
}

.timeline-hour {
    width: 60px;
    min-width: 60px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-left: 1px solid var(--border);
}

.timeline-hour:first-child {
    border-left: none;
}

/* Employee timeline rows */
.employee-timeline {
    display: flex;
    margin-bottom: 0.5rem;
    min-height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

.employee-timeline-label {
    width: 120px;
    min-width: 120px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border);
}

.employee-timeline-label .color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.employee-timeline-label .name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-timeline-track {
    flex: 1;
    position: relative;
    height: 60px;
}

/* Appointment blocks on timeline */
.timeline-appointment {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 70px;
    background: var(--primary);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    color: var(--bg-primary);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(106, 219, 217, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.timeline-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 219, 217, 0.4);
    background: var(--primary-dark);
}

.timeline-appointment .car-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.timeline-appointment .time-range {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 500;
}

/* When appointment is very narrow, hide time and show only car name */
.timeline-appointment.narrow .time-range {
    display: none;
}

.timeline-appointment.narrow .car-name {
    font-size: 0.7rem;
}

/* Appointment tooltip */
.appointment-tooltip {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    min-width: 220px;
    max-width: 300px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.appointment-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.appointment-tooltip .tooltip-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.appointment-tooltip .tooltip-plate {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(106, 219, 217, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.appointment-tooltip .tooltip-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.appointment-tooltip .tooltip-row svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.appointment-tooltip .tooltip-row strong {
    color: var(--text-primary);
}

.appointment-tooltip .tooltip-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.appointment-tooltip .tooltip-notes {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.appointment-tooltip .tooltip-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.appointment-tooltip .tooltip-status.concept {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.appointment-tooltip .tooltip-status.pending {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}

.appointment-tooltip .tooltip-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* Drop zone for drag & drop */
.timeline-drop-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.timeline-drop-zone.drag-over {
    background: rgba(106, 219, 217, 0.1);
    pointer-events: auto;
}

/* Drag time preview - floating label */
.drag-time-preview {
    position: fixed;
    background: var(--primary);
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.1s ease, transform 0.1s ease;
    white-space: nowrap;
}

.drag-time-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline highlight during drag */
.timeline-drop-highlight {
    position: absolute;
    top: 2px;
    bottom: 2px;
    background: rgba(106, 219, 217, 0.25);
    border: 2px dashed var(--primary);
    border-radius: 6px;
    pointer-events: none;
    z-index: 5;
}

/* Timeline track drag-over state */
.timeline-track.drag-over {
    background: rgba(106, 219, 217, 0.08);
}

/* 15-minute snap lines */
.timeline-snap-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(106, 219, 217, 0.15);
    pointer-events: none;
}

/* Unscheduled panel updates */
.unscheduled-item-enhanced {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.8) 0%, rgba(26, 34, 51, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.2s ease;
}

.unscheduled-item-enhanced:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.unscheduled-item-enhanced:active {
    cursor: grabbing;
}

.unscheduled-item-enhanced.dragging {
    opacity: 0.5;
}

.unscheduled-car-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.unscheduled-license {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.unscheduled-owner {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

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

.unscheduled-subscription-badge {
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    background: rgba(106, 219, 217, 0.15);
    color: var(--primary);
    border-radius: 9999px;
}

.unscheduled-needed {
    font-size: 0.7rem;
    color: var(--warning);
}

.unscheduled-availability {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Loading state for unscheduled panel */
.unscheduled-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Empty state */
.unscheduled-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.unscheduled-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Timeline hour markers */
.timeline-hour-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    opacity: 0.5;
}

/* ============================================
   EMPLOYEES PAGE STYLES
   ============================================ */

.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.employee-card {
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.6) 0%, rgba(26, 34, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--employee-color, var(--primary));
}

.employee-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(106, 219, 217, 0.15);
}

.employee-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.employee-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--employee-color, var(--primary));
}

.employee-info {
    flex: 1;
}

.employee-info h3 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem 0;
}

.employee-info .employee-id {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.employee-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.employee-stat {
    flex: 1;
    text-align: center;
}

.employee-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.employee-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.employee-card-actions {
    display: flex;
    gap: 0.5rem;
}

.employee-card-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Color picker row */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-input {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background: transparent;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.color-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.15);
    border-color: var(--text-primary);
}

.color-preset.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-primary);
}

/* Empty state for employees */
.employees-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.employees-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.employees-empty h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.employees-empty p {
    margin-bottom: 1.5rem;
}

/* Day Detail Modal - Unscheduled Section */
.day-unscheduled-section {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
}

.day-unscheduled-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.day-unscheduled-section h4 svg {
    color: var(--primary);
}

.day-unscheduled-count {
    background: var(--primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
}

.day-unscheduled-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.day-unscheduled-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: grab;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.day-unscheduled-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(106, 219, 217, 0.15);
    transform: translateY(-1px);
}

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

.day-unscheduled-car-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-unscheduled-car-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.day-unscheduled-license {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.day-unscheduled-owner {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.day-unscheduled-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.day-unscheduled-time svg {
    opacity: 0.8;
}

.day-unscheduled-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.day-unscheduled-meta .subscription-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(106, 219, 217, 0.15);
    color: var(--primary);
}

.day-unscheduled-meta .needed-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.day-unscheduled-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.day-unscheduled-empty svg {
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.day-unscheduled-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Two sections layout */
.day-unscheduled-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.day-unscheduled-sections .day-unscheduled-section {
    border-top: none;
}

.day-unscheduled-count.no-pref {
    background: var(--text-secondary);
}

.day-unscheduled-count.other-pref {
    background: var(--warning);
}

/* Three sections layout (update from two) */
.day-unscheduled-sections {
    grid-template-columns: repeat(3, 1fr);
}

/* Search bar for unscheduled cars */
.day-unscheduled-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.day-unscheduled-search svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.day-unscheduled-search .search-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.day-unscheduled-search .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(106, 219, 217, 0.1);
}

.day-unscheduled-search .search-input::placeholder {
    color: var(--text-tertiary);
}

/* Warning badge for other preference */
.day-unscheduled-warning {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.day-unscheduled-warning svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.day-unscheduled-item.has-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.day-unscheduled-item.has-warning:hover {
    border-color: var(--warning);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Urgency badge */
.urgency-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
    white-space: nowrap;
}

.urgency-badge.urgent-low {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.urgency-badge.urgent-medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.urgency-badge.urgent-high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Modal footer with left/right sections */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer-right {
    display: flex;
    gap: 0.5rem;
}

.concept-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

/* Concept appointment styling */
.timeline-appointment.is-concept {
    border: 2px dashed var(--primary);
    background: rgba(106, 219, 217, 0.1);
}

.timeline-appointment.is-concept::before {
    content: 'concept';
    position: absolute;
    top: -8px;
    left: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--bg-primary);
    padding: 0 4px;
    border-radius: 3px;
}

/* Appointment with delete button - additional styles */
.timeline-appointment {
    cursor: grab;
}

.timeline-appointment:active {
    cursor: grabbing;
}

.timeline-appointment.dragging {
    opacity: 0.5;
}

.timeline-appointment .appointment-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.timeline-appointment .appointment-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.timeline-appointment:hover .appointment-delete {
    display: flex;
}

.timeline-appointment .appointment-delete:hover {
    background: #ff4444;
    transform: scale(1.1);
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Responsive: stack sections on smaller screens */
@media (max-width: 1200px) {
    .day-unscheduled-sections {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Third section spans full width */
    .day-unscheduled-sections .day-unscheduled-section:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .day-unscheduled-sections {
        grid-template-columns: 1fr;
    }

    .day-unscheduled-sections .day-unscheduled-section:nth-child(3) {
        grid-column: auto;
    }
}