/* ============================================
   Calendar & Attendance System - Glassmorphism
   ============================================ */

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

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

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --glass-active: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.38);
    --accent: #38bdf8;
    --accent-light: #7dd3fc;
    --accent-bg: rgba(56, 189, 248, 0.1);
    --accent-glow: rgba(56, 189, 248, 0.2);
    --present: #10b981;
    --present-bg: rgba(16, 185, 129, 0.15);
    --absent: #ef4444;
    --absent-bg: rgba(239, 68, 68, 0.15);
    --half-day: #f59e0b;
    --half-day-bg: rgba(245, 158, 11, 0.15);
    --leave: #a78bfa;
    --leave-bg: rgba(167, 139, 250, 0.15);
    --holiday: #38bdf8;
    --holiday-bg: rgba(56, 189, 248, 0.15);
    --weekend: rgba(255, 255, 255, 0.2);
    --weekend-bg: rgba(255, 255, 255, 0.05);
    --meeting: #fb7185;
    --task: #60a5fa;
    --reminder: #fbbf24;
    --deadline: #f87171;
    --personal: #34d399;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.25s ease;
}

html, body {
    height: 100%; width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a1a 0%, #12102a 50%, #1a0f2e 100%);
    background-attachment: fixed;
}

/* ===== HEADER ===== */
.header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    z-index: 100;
}

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

.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 800;
    color: var(--text-primary);
    user-select: none;
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--accent), var(--leave));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: white;
}

.month-nav {
    display: flex; align-items: center; gap: 6px;
}

.month-nav h2 {
    font-size: 1rem; font-weight: 600;
    min-width: 170px; text-align: center;
    color: var(--text-primary);
}

.nav-btn {
    width: 30px; height: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    font-size: 0.7rem;
    backdrop-filter: blur(8px);
}

.nav-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== VIEW TOGGLE ===== */
.view-toggle {
    display: flex;
    background: var(--glass-strong);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 1px;
    backdrop-filter: blur(8px);
}

.view-btn {
    padding: 5px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.view-btn:hover { color: var(--text-secondary); }

.view-btn.active {
    background: var(--glass-bg);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header-right { display: flex; align-items: center; gap: 8px; }

.btn {
    padding: 7px 14px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn:hover { border-color: var(--glass-border-hover); color: var(--text-primary); background: var(--glass-hover); }

.btn-primary {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.25));
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--accent-light);
    backdrop-filter: blur(8px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(167, 139, 250, 0.35));
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.today-btn { font-weight: 600; }

/* ===== MAIN LAYOUT ===== */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===== CALENDAR SECTION ===== */
.calendar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    overflow: hidden;
}

.weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.weekday-header span {
    text-align: center;
    padding: 6px 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    flex: 1;
}

.day-cell {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 0;
    backdrop-filter: blur(8px);
}

.day-cell:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-hover);
    box-shadow: var(--shadow);
}

.day-cell.other-month { opacity: 0.2; pointer-events: none; }

.day-cell.today {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 12px var(--accent-glow);
}

.day-cell.today .day-number {
    color: var(--accent);
    font-weight: 700;
}

.day-cell.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.day-cell.status-present { border-left: 3px solid var(--present); }
.day-cell.status-absent { border-left: 3px solid var(--absent); }
.day-cell.status-half_day { border-left: 3px solid var(--half-day); }
.day-cell.status-leave { border-left: 3px solid var(--leave); }
.day-cell.status-holiday { border-left: 3px solid var(--holiday); }
.day-cell.status-weekend { border-left: 3px solid var(--weekend); }

.day-number {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex; align-items: center; gap: 5px;
}

.attendance-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.attendance-dot.present { background: var(--present); box-shadow: 0 0 6px var(--present); }
.attendance-dot.absent { background: var(--absent); box-shadow: 0 0 6px var(--absent); }
.attendance-dot.half_day { background: var(--half-day); box-shadow: 0 0 6px var(--half-day); }
.attendance-dot.leave { background: var(--leave); box-shadow: 0 0 6px var(--leave); }
.attendance-dot.holiday { background: var(--holiday); box-shadow: 0 0 6px var(--holiday); }

.day-events {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1; overflow: hidden;
}

.event-chip {
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 3px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-more {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 330px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.sidebar-date {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 2px;
    color: var(--accent-light);
}

.sidebar-day {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 9px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    font-family: inherit;
}

.sidebar-tab.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.sidebar-tab:hover { color: var(--text-secondary); }

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-track { background: transparent; }
.sidebar-content::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* Attendance Panel */
.attendance-panel { display: flex; flex-direction: column; gap: 12px; }

.status-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.status-option {
    padding: 9px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-family: inherit;
    backdrop-filter: blur(8px);
}

.status-option:hover { border-color: var(--glass-border-hover); color: var(--text-primary); background: var(--glass-hover); }

.status-option.active { color: white; border-color: transparent; }
.status-option.active.present { background: var(--present); box-shadow: 0 0 12px rgba(16,185,129,0.3); }
.status-option.active.absent { background: var(--absent); }
.status-option.active.half_day { background: var(--half-day); color: #1a0f0a; }
.status-option.active.leave { background: var(--leave); }
.status-option.active.holiday { background: var(--holiday); }

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 7px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-strong);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Schedule Panel */
.schedule-panel { display: flex; flex-direction: column; gap: 10px; }

.schedule-item {
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.schedule-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-hover);
    box-shadow: var(--shadow);
}

.schedule-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.schedule-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-title.completed {
    text-decoration: line-through;
    opacity: 0.4;
}

.schedule-meta {
    display: flex; align-items: center; gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.schedule-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.schedule-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.schedule-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.schedule-actions {
    display: flex; gap: 4px; flex-shrink: 0;
}

.action-btn {
    width: 24px; height: 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition);
}

.action-btn:hover { color: var(--text-primary); background: var(--glass-bg); }
.action-btn.delete:hover { color: var(--absent); }
.action-btn.complete:hover { color: var(--present); }

.empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 1.8rem; margin-bottom: 6px; }
.empty-state-text { font-size: 0.78rem; }

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    overflow-x: auto;
}

.stat-item {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.stat-item .stat-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-item.present { background: var(--present-bg); color: #34d399; }
.stat-item.present .stat-dot { background: var(--present); box-shadow: 0 0 6px var(--present); }
.stat-item.absent { background: var(--absent-bg); color: #f87171; }
.stat-item.absent .stat-dot { background: var(--absent); }
.stat-item.half_day { background: var(--half-day-bg); color: #fbbf24; }
.stat-item.half_day .stat-dot { background: var(--half-day); }
.stat-item.leave { background: var(--leave-bg); color: #c4b5fd; }
.stat-item.leave .stat-dot { background: var(--leave); }
.stat-item.holiday { background: var(--holiday-bg); color: var(--accent-light); }
.stat-item.holiday .stat-dot { background: var(--holiday); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(10px) scale(0.98);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 0.95rem; font-weight: 700;
}

.modal-close {
    width: 28px; height: 28px;
    border: none; background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

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

.modal-body {
    padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
}

.modal-footer {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid var(--glass-border);
}

.color-options {
    display: flex; gap: 6px; flex-wrap: wrap;
}

.color-option {
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option:hover { transform: scale(1.15); }
.color-option.active { border-color: white; box-shadow: 0 0 0 2px rgba(0,0,0,0.3), 0 0 12px rgba(255,255,255,0.2); }

/* ===== TOAST ===== */
.toast-container {
    position: fixed; bottom: 20px; right: 20px;
    z-index: 2000;
    display: flex; flex-direction: column; gap: 6px;
}

.toast {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.25s ease, fadeOut 0.25s ease 2.7s forwards;
    display: flex; align-items: center; gap: 8px;
    backdrop-filter: blur(16px);
}

.toast.success { background: rgba(16, 185, 129, 0.85); }
.toast.error { background: rgba(239, 68, 68, 0.85); }
.toast.info { background: rgba(56, 189, 248, 0.85); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Priority badges */
.priority-low { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.priority-medium { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.priority-high { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.priority-urgent { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }

/* Category badges */
.cat-meeting { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.cat-task { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.cat-reminder { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.cat-deadline { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.cat-personal { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.cat-other { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* Day checkboxes for settings */
.day-checkbox {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--glass-bg);
    transition: var(--transition);
    user-select: none;
    backdrop-filter: blur(8px);
}

.day-checkbox:hover { border-color: var(--glass-border-hover); }

.day-checkbox input { display: none; }

.day-checkbox.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Pulse animation for today */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

.day-cell.today { animation: pulse 3s infinite; }

/* ===== WEEK VIEW ===== */
.calendar-grid.week-view {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
}

.week-column {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.week-column:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-hover);
    box-shadow: var(--shadow);
}

.week-column.today {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 12px var(--accent-glow);
}

.week-column.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.week-column.status-present { border-top: 3px solid var(--present); }
.week-column.status-absent { border-top: 3px solid var(--absent); }
.week-column.status-half_day { border-top: 3px solid var(--half-day); }
.week-column.status-leave { border-top: 3px solid var(--leave); }
.week-column.status-holiday { border-top: 3px solid var(--holiday); }
.week-column.status-weekend { border-top: 3px solid var(--weekend); }

.week-column-header {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.week-column-dayname {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.week-column-daynum {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.week-column.today .week-column-daynum { color: var(--accent); }

.week-column-events {
    flex: 1;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
}

/* ===== DAY VIEW ===== */
.calendar-grid.day-view {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.day-view-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.day-view-header .dv-date {
    font-size: 1.1rem;
    font-weight: 700;
}

.day-view-header .dv-dayname {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.day-view-header .dv-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.day-view-timeline {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding-right: 4px;
}

.day-view-timeline::-webkit-scrollbar { width: 4px; }
.day-view-timeline::-webkit-scrollbar-track { background: transparent; }
.day-view-timeline::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

.timeline-hour {
    display: flex;
    min-height: 48px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.timeline-hour:last-child { border-bottom: none; }

.timeline-label {
    width: 56px;
    padding: 4px 8px;
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    text-align: right;
    border-right: 1px solid var(--glass-border);
    padding-top: 4px;
}

.timeline-slot {
    flex: 1;
    position: relative;
    min-height: 48px;
}

.timeline-event {
    position: absolute;
    left: 4px;
    right: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
    transition: var(--transition);
    min-height: 22px;
}

.timeline-event:hover {
    opacity: 0.9;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.timeline-event .te-time {
    font-size: 0.58rem;
    opacity: 0.85;
}

.day-view-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-direction: column;
    gap: 8px;
}

/* Select option styling for glass theme */
.form-group select option {
    background: #1a1a3a;
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--glass-border-hover); }
