/**
 * Glass Calendar — Vision OS Premium Design
 * Glassmorphism 2.0 · Micro-animations · Premium typography
 */

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

/* ==========================================
   CSS CUSTOM PROPERTIES
========================================== */
:root {
    /* Glass layers — polished light mode translucency */
    --glass-1: rgba(255, 255, 255, 0.65);
    --glass-2: rgba(255, 255, 255, 0.40);
    --glass-3: rgba(255, 255, 255, 0.20);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-subtle: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 6px rgba(0, 0, 0, 0.03);
    --glass-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04);
    --blur: 24px;
    --blur-heavy: 48px;

    /* Accent palette */
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.10);
    --accent-glow: rgba(99, 102, 241, 0.25);

    /* Semantic */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --text-on-accent: #ffffff;
    --surface-hover: rgba(0, 0, 0, 0.04);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;

    /* Group colours */
    --c-indigo: #6366f1;
    --c-violet: #8b5cf6;
    --c-pink: #ec4899;
    --c-orange: #f97316;
    --c-emerald: #10b981;
    --c-blue: #3b82f6;
    --c-amber: #f59e0b;
    --c-teal: #14b8a6;
    --c-gray: #64748b;

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 0.15s;
    --dur-base: 0.25s;
    --dur-slow: 0.4s;

}

/* ==========================================
   DARK MODE
========================================== */
[data-theme="dark"] {
    --glass-1: rgba(10, 10, 25, 0.78);
    --glass-2: rgba(15, 15, 35, 0.55);
    --glass-3: rgba(20, 20, 45, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-subtle: rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    --glass-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --surface-hover: rgba(255, 255, 255, 0.06);

    --accent: #818cf8;
    --accent-soft: rgba(129, 140, 248, 0.12);
    --accent-glow: rgba(129, 140, 248, 0.3);
}

/* ==========================================
   RESET & FOUNDATION
========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================
   FULL-SCREEN BACKGROUND
========================================== */
.calendar-background {
    position: fixed;
    inset: 0;
    background:
        url('../images/calendar-bg.jpg') center / cover no-repeat,
        linear-gradient(145deg,
            #f0f4ff 0%,
            #e8ecf8 25%,
            #eee8f5 50%,
            #f5f0fa 75%,
            #faf5f9 100%);
    z-index: -2;
    transition: filter 0.6s ease;
}

/* Dark mode — deep dimming */
[data-theme="dark"] .calendar-background {
    filter: brightness(0.2) saturate(1.4) contrast(1.1);
}

.calendar-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    z-index: -1;
    transition: background 0.6s ease;
}

[data-theme="dark"] .calendar-background::after {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 100%);
}

/* ==========================================
   GLASS CARD (universal)
========================================== */
.glass-card {
    background: var(--glass-1);
    backdrop-filter: blur(var(--blur)) saturate(1.6);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    box-shadow: var(--glass-shadow);
    transition: background var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        transform var(--dur-base) var(--ease-out);
}

.glass-card:hover {
    background: var(--surface-hover);
}

/* ==========================================
   LOGIN PAGE
========================================== */
.calendar-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--sp-6);
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: floatIn 0.8s var(--ease-out) both;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

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

.login-card {
    padding: var(--sp-10) var(--sp-8);
    background: var(--glass-1);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-radius: var(--r-xl);
    box-shadow: var(--glass-shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--sp-5);
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 8px 24px var(--accent-glow);
    }

    50% {
        box-shadow: 0 12px 36px rgba(99, 102, 241, 0.5);
    }
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--sp-2);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Form fields */
.login-form .form-group {
    margin-bottom: var(--sp-5);
}

.login-form label {
    display: block;
    margin-bottom: var(--sp-2);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.glass-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--glass-border-subtle);
    border-radius: var(--r-md);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: all var(--dur-base) var(--ease-out);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px var(--accent-soft), var(--glass-shadow);
}

/* Primary button */
.glass-button {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    transition: all var(--dur-base) var(--ease-out);
    box-shadow: 0 4px 16px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--dur-base);
}

.glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.glass-button:hover::before {
    opacity: 1;
}

.glass-button:active {
    transform: translateY(0) scale(0.98);
}

/* Error toast */
.error-message {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--r-md);
    color: #dc2626;
    margin-bottom: var(--sp-5);
    font-size: 0.875rem;
    font-weight: 500;
    animation: shakeIn 0.4s var(--ease-spring);
}

@keyframes shakeIn {
    0% {
        transform: translateX(-8px);
        opacity: 0;
    }

    50% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-footer {
    margin-top: var(--sp-8);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ==========================================
   DASHBOARD LAYOUT
========================================== */
.calendar-dashboard {
    min-height: 100vh;
    padding: var(--sp-5);
}

/* Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-6);
    margin-bottom: var(--sp-5);
    border-radius: var(--r-xl);
    animation: slideDown 0.5s var(--ease-out) both;
    position: relative;
    z-index: 50;
}

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

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

.header-left {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.header-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.dashboard-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.dashboard-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.2rem 0.65rem;
    background: var(--accent-soft);
    border-radius: var(--r-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================
   USER MENU
========================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.user-menu {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    background: var(--glass-3);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--r-full);
    transition: all var(--dur-base) var(--ease-out);
}

.user-avatar-btn:hover {
    background: var(--glass-2);
    box-shadow: var(--glass-shadow);
}

.user-avatar-btn img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.avatar-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: var(--sp-2);
    z-index: 999;
    border-radius: var(--r-lg);
    animation: dropIn 0.25s var(--ease-out) both;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--r-sm);
    transition: all var(--dur-fast);
}

.dropdown-item:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dropdown-divider {
    margin: var(--sp-1) 0;
    border: none;
    border-top: 1px solid var(--glass-border-subtle);
}

/* ==========================================
   BENTO GRID
========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: 1fr auto;
    gap: var(--sp-5);
    animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

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

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

.calendar-main {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: var(--sp-6);
    border-radius: var(--r-xl);
}

/* Alternative views — same grid position as calendar-main */
.agenda-section {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: var(--sp-6);
    border-radius: var(--r-xl);
}

.week-section,
.year-section {
    grid-row: 1 / 3;
    grid-column: 1 / -1;
    padding: var(--sp-6);
    border-radius: var(--r-xl);
}

.upcoming-events {
    padding: var(--sp-6);
    border-radius: var(--r-xl);
}

.groups-filter {
    padding: var(--sp-6);
    border-radius: var(--r-xl);
}

/* ==========================================
   EVENT COLOR UTILITIES
========================================== */
/* Color utilities for event chips (border via currentColor) */
.event-indigo {
    color: var(--c-indigo);
}

.event-violet {
    color: var(--c-violet);
}

.event-pink {
    color: var(--c-pink);
}

.event-orange {
    color: var(--c-orange);
}

.event-emerald {
    color: var(--c-emerald);
}

.event-blue {
    color: var(--c-blue);
}

.event-amber {
    color: var(--c-amber);
}

.event-teal {
    color: var(--c-teal);
}

.event-gray {
    color: var(--c-gray);
}

/* Agenda color bars and badge dots use background */
.agenda-color.event-indigo,
.badge-dot.event-indigo {
    background-color: var(--c-indigo);
}

.agenda-color.event-violet,
.badge-dot.event-violet {
    background-color: var(--c-violet);
}

.agenda-color.event-pink,
.badge-dot.event-pink {
    background-color: var(--c-pink);
}

.agenda-color.event-orange,
.badge-dot.event-orange {
    background-color: var(--c-orange);
}

.agenda-color.event-emerald,
.badge-dot.event-emerald {
    background-color: var(--c-emerald);
}

.agenda-color.event-blue,
.badge-dot.event-blue {
    background-color: var(--c-blue);
}

.agenda-color.event-amber,
.badge-dot.event-amber {
    background-color: var(--c-amber);
}

.agenda-color.event-teal,
.badge-dot.event-teal {
    background-color: var(--c-teal);
}

.agenda-color.event-gray,
.badge-dot.event-gray {
    background-color: var(--c-gray);
}

/* Event dot on calendar grid */
/* Event chips on calendar grid */
.event-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.65rem;
    line-height: 1.3;
    cursor: pointer;
    border-left: 3px solid currentColor;
    background: rgba(255, 255, 255, 0.45);
    transition: all var(--dur-fast);
    overflow: hidden;
    white-space: nowrap;
}

[data-theme="dark"] .event-chip {
    background: rgba(255, 255, 255, 0.06);
}

.event-chip:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.02);
}

[data-theme="dark"] .event-chip:hover {
    background: rgba(255, 255, 255, 0.1);
}

.event-chip[draggable="true"] {
    cursor: grab;
}

.event-chip[draggable="true"]:active {
    cursor: grabbing;
    opacity: 0.6;
}

.chip-time {
    font-weight: 700;
    color: inherit;
    flex-shrink: 0;
    opacity: 0.7;
}

.chip-title {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: var(--text-primary);
}

.event-more {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    font-weight: 600;
    padding: 1px 6px;
    cursor: pointer;
}

/* Badge dot */
.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Upcoming event icon */
.upcoming-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

/* ==========================================
   CALENDAR NAVIGATION BAR (always visible)
========================================== */
.calendar-nav-bar {
    max-width: var(--calendar-max-w, 1400px);
    margin: 0 auto var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-month {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.calendar-nav {
    display: flex;
    gap: var(--sp-2);
}

.nav-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-3);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all var(--dur-base) var(--ease-out);
}

.nav-btn:hover {
    background: var(--glass-2);
    transform: scale(1.1);
    box-shadow: var(--glass-shadow);
}

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

/* ==========================================
   CALENDAR GRID
========================================== */
.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: var(--sp-3);
}

.weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--sp-2);
}

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

.calendar-day {
    min-height: 90px;
    background: var(--glass-3);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    padding: var(--sp-2);
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--glass-2);
    border-color: var(--glass-border-subtle);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
    pointer-events: none;
    min-height: auto;
}

.calendar-day.today {
    border: 2px solid var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06);
}

.calendar-day.today .day-number {
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--sp-1);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 2px;
}


/* ==========================================
   SIDEBAR — UPCOMING EVENTS
========================================== */
.sidebar-title {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--sp-5);
    letter-spacing: -0.01em;
}

.sidebar-title svg {
    color: var(--text-tertiary);
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.upcoming-item {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--glass-3);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
    align-items: center;
}

.upcoming-item:hover {
    background: var(--glass-2);
    border-color: var(--glass-border);
    transform: translateX(4px);
}

.upcoming-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

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

.upcoming-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.empty-state {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    padding: var(--sp-8) 0;
    font-weight: 400;
}

/* ==========================================
   GROUPS FILTER
========================================== */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
}

.group-badge {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.6rem 0.85rem;
    background: var(--glass-3);
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all var(--dur-base) var(--ease-out);
}

.group-badge:hover {
    background: var(--glass-2);
    border-color: var(--glass-border);
}

.group-badge.active {
    background: var(--accent-soft);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--accent);
    font-weight: 600;
}

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

/* Secondary button (create group) */
.btn-secondary {
    background: var(--glass-3) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    border: 1px solid var(--glass-border-subtle) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.6rem 1rem !important;
}

.btn-secondary:hover {
    background: var(--glass-2) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--glass-shadow) !important;
}

/* ==========================================
   FAB (Floating Action Button)
========================================== */
.fab {
    position: fixed;
    bottom: var(--sp-8);
    right: var(--sp-8);
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--accent), #8b5cf6) !important;
    color: white !important;
    box-shadow: 0 8px 28px var(--accent-glow) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 0 !important;
    width: 56px !important;
    transition: all var(--dur-base) var(--ease-spring) !important;
}

.fab:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.5) !important;
}

.fab:active {
    transform: scale(0.95) !important;
}

/* ==========================================
   MINI DATE WIDGET (header)
========================================== */
.today-widget {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.4rem 0.85rem;
    background: var(--glass-3);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.today-widget .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-emerald);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .calendar-main {
        grid-row: 1;
    }

    .upcoming-events {
        grid-row: 2;
    }

    .groups-filter {
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .calendar-dashboard {
        padding: var(--sp-3);
    }

    .dashboard-header {
        flex-direction: column;
        gap: var(--sp-3);
        padding: var(--sp-4);
    }

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

    .calendar-main {
        padding: var(--sp-4);
    }

    .calendar-days {
        gap: 3px;
    }

    .calendar-day {
        padding: var(--sp-1);
    }

    .day-number {
        font-size: 0.75rem;
    }

    .user-name {
        display: none;
    }

    .calendar-month {
        font-size: 1.25rem;
    }

    .fab {
        bottom: var(--sp-5) !important;
        right: var(--sp-5) !important;
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    .calendar-weekdays {
        gap: 2px;
    }

    .calendar-days {
        gap: 2px;
    }

    .weekday {
        font-size: 0.65rem;
        padding: var(--sp-1);
    }

    .calendar-day {
        border-radius: var(--r-sm);
    }
}

/* ==========================================
   MODAL SYSTEM
========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--sp-5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-xl) !important;
    box-shadow: var(--glass-shadow-lg) !important;
    transform: translateY(20px) scale(0.96);
    transition: transform var(--dur-slow) var(--ease-spring);
    overflow: hidden;
}

/* Le form doit aussi être flex pour que modal-body puisse scroller */
.modal-card form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

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

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

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-tertiary);
    transition: all var(--dur-fast);
}

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

.modal-body {
    padding: var(--sp-5) var(--sp-6);
    overflow-y: auto;
    flex: 1;
}

.modal-body .form-group {
    margin-bottom: var(--sp-4);
}

.modal-body label {
    display: block;
    margin-bottom: var(--sp-2);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-body textarea.glass-input {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: var(--sp-4);
}

.form-row .form-group {
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--glass-border-subtle);
}

.modal-footer-right {
    display: flex;
    gap: var(--sp-3);
    margin-left: auto;
}

.modal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--dur-base) var(--ease-out);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.modal-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.55rem 1.1rem;
    background: var(--glass-3);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--dur-base);
}

.modal-btn-secondary:hover {
    background: var(--glass-2);
}

.modal-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.55rem 1.1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--danger);
    transition: all var(--dur-base);
}

.modal-btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ==========================================
   TOAST NOTIFICATION
========================================== */
.toast {
    position: fixed;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.75rem 1.25rem;
    background: var(--glass-1);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    box-shadow: var(--glass-shadow-lg);
    z-index: 2000;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: toastIn 0.4s var(--ease-spring) both;
}

.toast-success svg {
    color: var(--c-emerald);
}

.toast-error svg {
    color: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.toast-out {
    animation: toastOut 0.3s var(--ease-out) forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
}

/* ==========================================
   GROUP MANAGEMENT (inside modal)
========================================== */
.group-create-form {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
}

.group-create-form .glass-input {
    flex: 1;
}

.group-manage-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm);
    transition: background var(--dur-fast);
}

.group-manage-item:hover {
    background: var(--glass-3);
}

.group-manage-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.group-manage-count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-right: var(--sp-2);
}

.group-manage-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    color: var(--text-tertiary);
    transition: all var(--dur-fast);
}

.group-manage-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.group-manage-btn.danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.group-manage-btn.success:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--c-emerald);
}

/* ==========================================
   MEMBER LIST (inside modal)
========================================== */
.members-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.6rem;
    border-radius: var(--r-sm);
    transition: background var(--dur-fast);
}

.member-item:hover {
    background: var(--glass-3);
}

.member-info {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE — Modals
========================================== */
@media (max-width: 600px) {
    .modal-card {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--r-lg) !important;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: var(--sp-4);
        padding-right: var(--sp-4);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .group-create-form {
        flex-direction: column;
    }

    .group-create-form .glass-input {
        width: 100%;
    }
}

/* ==========================================
   ADMIN PAGE
========================================== */
.admin-page-title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-5);
    animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.member-card {
    padding: var(--sp-6);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    transition: all var(--dur-base) var(--ease-out);
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-lg);
}

.member-card-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    position: relative;
}

.avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dur-fast);
    color: white;
}

.avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

.admin-badge {
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
}

.member-card-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.info-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.info-field label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

.info-field .glass-input {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.member-card-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-top: auto;
}

/* Add User Card */
.add-user-card {
    min-height: 200px;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--glass-border);
    background: transparent !important;
    backdrop-filter: none !important;
}

.add-user-card:hover {
    border-color: var(--accent);
    background: var(--glass-3) !important;
}

.add-user-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--dur-fast);
    padding: var(--sp-6);
}

.add-user-icon:hover {
    color: var(--accent);
}

.add-user-icon span {
    font-weight: 500;
    font-size: 0.9rem;
}

.add-user-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* ─── ADMIN RESPONSIVE ─── */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .member-card-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-center {
        display: none;
    }
}

/* ==========================================
   SEARCH BOX
========================================== */
.search-box {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--glass-3);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--r-full);
    padding: 0.4rem 0.75rem;
    transition: all var(--dur-base);
}

.search-box:focus-within {
    background: var(--glass-2);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box svg {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 120px;
    transition: width var(--dur-base);
}

.search-input:focus {
    width: 180px;
}

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

/* ==========================================
   ICON BUTTON (dark mode, etc.)
========================================== */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--r-full);
    background: var(--glass-3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
}

.icon-btn:hover {
    background: var(--glass-2);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* ==========================================
   NAV SEPARATOR & TODAY BUTTON
========================================== */
.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
    margin: 0 var(--sp-1);
}

.today-btn {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.75rem !important;
    color: var(--accent) !important;
}

.today-btn:hover {
    background: var(--accent-soft) !important;
}

/* ==========================================
   AGENDA VIEW
========================================== */
.agenda-section {
    margin: var(--sp-5) auto;
    max-width: 800px;
    padding: var(--sp-6);
    border-radius: var(--r-xl);
    animation: fadeUp 0.5s var(--ease-out) both;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

.agenda-date-header {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    padding: var(--sp-3) 0 var(--sp-1);
    border-bottom: 1px solid var(--glass-border-subtle);
    margin-top: var(--sp-3);
}

.agenda-date-header:first-child {
    margin-top: 0;
}

.agenda-day-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.agenda-day-num {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--dur-fast);
}

.agenda-item:hover {
    background: var(--glass-3);
}

.agenda-color {
    width: 4px;
    height: 32px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}

.agenda-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.agenda-meta {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* ==========================================
   DRAG & DROP
========================================== */
.calendar-day.drag-over {
    background: var(--accent-soft) !important;
    box-shadow: inset 0 0 0 2px var(--accent);
    transform: scale(1.02);
}

.event-dot.dragging {
    opacity: 0.4;
    transform: scale(1.3);
}

.event-dot[draggable="true"] {
    cursor: grab;
}

.event-dot[draggable="true"]:active {
    cursor: grabbing;
}

/* ==========================================
   NOTIFICATION BADGE
========================================== */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--r-full);
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: var(--sp-2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ==========================================
   STATS BADGE (event counter in header)
========================================== */
.stats-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--r-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: var(--sp-3);
    vertical-align: middle;
}

/* ==========================================
   CURRENT WEEK HIGHLIGHT
========================================== */
.calendar-day.current-week {
    background: var(--glass-2);
    border-color: var(--glass-border-subtle);
}

/* ==========================================
   DRAG OVER
========================================== */
.calendar-day.drag-over {
    background: var(--accent-soft) !important;
    box-shadow: inset 0 0 0 2px var(--accent);
    transform: scale(1.02);
}

/* ==========================================
   V2: ACTIVE VIEW BUTTON
========================================== */
.nav-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* View toggle buttons with labels */
#viewMonthBtn,
#viewWeekBtn,
#viewAgendaBtn,
#viewYearBtn {
    width: auto;
    border-radius: 20px;
    padding: 0 14px;
    gap: 5px;
    font-size: 0.78rem;
}

.view-label {
    font-weight: 600;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .view-label {
        display: none;
    }

    #viewMonthBtn,
    #viewWeekBtn,
    #viewAgendaBtn,
    #viewYearBtn {
        width: 38px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Cours group toggle */
.timetable-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid var(--glass-border-subtle);
    margin-top: var(--sp-2);
}

/* ==========================================
   V2: MULTIDAY / RECURRING CHIP INDICATORS
========================================== */
.event-chip.multiday {
    border-left-style: double;
    border-left-width: 4px;
}

.event-chip.recurring::after {
    content: '🔄';
    font-size: 0.55rem;
    margin-left: 2px;
}

.event-chip.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

/* ==========================================
   V2: GROUP FILTER (checkbox style)
========================================== */
.group-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.group-filter-item:hover {
    background: var(--glass-2);
}

.group-filter-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--glass-border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.group-filter-item input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.group-filter-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 1px;
    font-size: 10px;
    color: white;
    font-weight: 700;
}

/* ==========================================
   V2: MINI CALENDAR (sidebar widget)
========================================== */
.mini-calendar-widget {
    grid-column: span 1;
}

.mini-cal-month {
    margin-bottom: 12px;
}

.mini-cal-month.current .mini-cal-title {
    color: var(--accent);
    font-weight: 700;
}

.mini-cal-title {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.mini-cal-title:hover {
    color: var(--accent);
}

.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.mini-cal-grid span {
    padding: 2px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.mini-cal-grid span:hover {
    background: var(--glass-2);
}

.mini-cal-grid span.mini-today {
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: var(--r-full);
}

/* ==========================================
   V2: WEEK VIEW
========================================== */
.week-section {
    max-width: 100%;
    padding: var(--sp-5);
    overflow-x: auto;
}

.week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-left: 56px;
    margin-bottom: 4px;
}

.week-day-header {
    text-align: center;
    padding: 8px 4px;
    border-radius: var(--r-md);
    background: var(--glass-1);
}

.week-day-header.today {
    background: var(--accent-soft);
}

.week-day-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.week-day-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.week-day-header.today .week-day-num {
    color: var(--accent);
}

.week-body-cols {
    display: flex;
    max-height: 65vh;
    overflow-y: auto;
    border-radius: var(--r-md);
}

.week-hours-col {
    flex-shrink: 0;
    width: 56px;
}

.week-hours-col .week-hour-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    padding: 0 8px 0 0;
    text-align: right;
    font-weight: 500;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.week-day-col {
    flex: 1;
    position: relative;
    border-left: 1px solid var(--glass-border-subtle);
    min-width: 0;
}

.week-day-col.today {
    background: var(--accent-soft);
}

.week-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border-subtle);
    pointer-events: none;
    z-index: 0;
}

/* Event / Timetable blocks (absolute positioned) */
.week-block {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 6px;
    padding: 4px 6px;
    overflow: hidden;
    z-index: 2;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.week-block:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.event-block {
    cursor: pointer;
    border-left: 3px solid currentColor;
    background: var(--glass-1);
}

.tt-block {
    cursor: default;
    border-left: 3px solid var(--c-blue);
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(4px);
}

.wb-title {
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-time {
    font-size: 0.65rem;
    opacity: 0.7;
    line-height: 1.2;
    margin-top: 1px;
}

/* Timetable block color variants */
.tt-block.tt-blue {
    border-left-color: var(--c-blue);
    background: rgba(59, 130, 246, 0.12);
}

.tt-block.tt-indigo {
    border-left-color: var(--c-indigo);
    background: rgba(99, 102, 241, 0.12);
}

.tt-block.tt-violet {
    border-left-color: var(--c-violet);
    background: rgba(139, 92, 246, 0.12);
}

.tt-block.tt-pink {
    border-left-color: var(--c-pink);
    background: rgba(236, 72, 153, 0.12);
}

.tt-block.tt-orange {
    border-left-color: var(--c-orange);
    background: rgba(249, 115, 22, 0.12);
}

.tt-block.tt-emerald {
    border-left-color: var(--c-emerald);
    background: rgba(16, 185, 129, 0.12);
}

.tt-block.tt-amber {
    border-left-color: var(--c-amber);
    background: rgba(245, 158, 11, 0.12);
}

.tt-block.tt-teal {
    border-left-color: var(--c-teal);
    background: rgba(20, 184, 166, 0.12);
}

/* ==========================================
   V2: YEAR VIEW (Heatmap style)
========================================== */
.year-section {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--sp-5);
}

.year-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.year-month {
    background: var(--glass-1);
    border-radius: var(--r-lg);
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.year-month:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.year-month-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.year-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.year-day {
    font-size: 0.55rem;
    padding: 2px;
    border-radius: 2px;
    color: var(--text-tertiary);
    transition: all 0.15s;
}

.year-day.empty {
    visibility: hidden;
}

.year-day.today {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    font-weight: 700;
    color: var(--accent);
}

.year-day.level-1 {
    background: hsl(var(--accent-h, 250) 60% 90%);
    color: var(--text-secondary);
}

.year-day.level-2 {
    background: hsl(var(--accent-h, 250) 60% 78%);
    color: var(--text-primary);
}

.year-day.level-3 {
    background: hsl(var(--accent-h, 250) 60% 65%);
    color: white;
}

.year-day.level-4 {
    background: hsl(var(--accent-h, 250) 60% 50%);
    color: white;
    font-weight: 700;
}

[data-theme="dark"] .year-day.level-1 {
    background: hsl(var(--accent-h, 250) 40% 25%);
    color: var(--text-secondary);
}

[data-theme="dark"] .year-day.level-2 {
    background: hsl(var(--accent-h, 250) 45% 35%);
    color: var(--text-primary);
}

[data-theme="dark"] .year-day.level-3 {
    background: hsl(var(--accent-h, 250) 50% 45%);
    color: white;
}

[data-theme="dark"] .year-day.level-4 {
    background: hsl(var(--accent-h, 250) 55% 55%);
    color: white;
}

/* ==========================================
   V2: MINI CALENDAR (sidebar widget)
========================================== */
.mini-calendar-widget {
    grid-column: 2;
    padding: var(--sp-5);
    border-radius: var(--r-xl);
}

.mini-cal-month {
    margin-bottom: 12px;
}

.mini-cal-month.current .mini-cal-title {
    color: var(--accent);
    font-weight: 700;
}

.mini-cal-title {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.mini-cal-title:hover {
    color: var(--accent);
}

.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.mini-cal-grid span {
    padding: 2px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.mini-cal-grid span:hover {
    background: var(--glass-2);
}

.mini-cal-grid span.mini-today {
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: var(--r-full);
}

/* ==========================================
   V2: SHARE LINK BOX
========================================== */
.share-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-link-box .glass-input {
    font-size: 0.8rem;
    font-family: 'Inter', monospace;
}

/* ==========================================
   V2: RESPONSIVE ADJUSTMENTS
========================================== */
@media (max-width: 768px) {
    .year-months {
        grid-template-columns: repeat(3, 1fr);
    }

    .week-header {
        margin-left: 40px;
    }

    .week-hour-row {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .week-hour-label {
        font-size: 0.6rem;
    }

    .mini-calendar-widget {
        display: none;
    }
}

@media (max-width: 480px) {
    .year-months {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════════
   V4: TODAY WIDGET + WEATHER
   ══════════════════════════════════════════════ */

.today-widget {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.weather-card {
    border-radius: var(--r-lg);
    padding: var(--sp-3);
    background: rgba(var(--glass-white), 0.04);
    border: 1px solid rgba(var(--glass-white), 0.06);
}

.weather-loading {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.weather-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(var(--glass-white), 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.weather-info {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.weather-icon {
    font-size: 2rem;
    line-height: 1;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.weather-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.weather-wind {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.weather-error {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-align: center;
    padding: var(--sp-2);
}

/* Today Events */
.today-events {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.today-event-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.2s;
}

.today-event-item:hover {
    background: rgba(var(--glass-white), 0.06);
}

.today-event-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 35px;
}

.today-event-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════
   V4: MODAL TABS (Comments / Attachments)
   ══════════════════════════════════════════════ */

.modal-tabs {
    border-top: 1px solid rgba(var(--glass-white), 0.08);
    padding: 0 var(--sp-4);
    max-height: 280px;
    display: flex;
    flex-direction: column;
}

.tabs-header {
    display: flex;
    gap: var(--sp-1);
    padding: var(--sp-3) 0 var(--sp-2);
    border-bottom: 1px solid rgba(var(--glass-white), 0.06);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    border: none;
    background: rgba(var(--glass-white), 0.04);
    color: var(--text-secondary);
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(var(--glass-white), 0.08);
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
}

.tab-count {
    background: rgba(var(--glass-white), 0.15);
    padding: 0px 6px;
    border-radius: var(--r-full);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-2) 0;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

/* Comments */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    max-height: 160px;
    overflow-y: auto;
    flex: 1;
}

.comment-item {
    display: flex;
    gap: var(--sp-2);
    padding: var(--sp-2);
    border-radius: var(--r-md);
    background: rgba(var(--glass-white), 0.03);
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: var(--sp-2);
}

.comment-time {
    font-size: 0.6rem;
    color: var(--text-tertiary);
}

.comment-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
    line-height: 1.3;
}

.comment-input {
    display: flex;
    gap: var(--sp-2);
    padding-top: var(--sp-2);
    border-top: 1px solid rgba(var(--glass-white), 0.06);
}

.comment-input .glass-input {
    flex: 1;
    font-size: 0.8rem;
    padding: var(--sp-2) var(--sp-3);
}

/* Attachments */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    max-height: 160px;
    overflow-y: auto;
    flex: 1;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    background: rgba(var(--glass-white), 0.03);
}

.attachment-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.attachment-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-name:hover {
    text-decoration: underline;
}

.attachment-meta {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.attachment-delete {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--sp-1);
    border-radius: var(--r-sm);
    transition: all 0.2s;
}

.attachment-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4);
    border: 2px dashed rgba(var(--glass-white), 0.1);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-tertiary);
    text-align: center;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(var(--glass-white), 0.03);
    color: var(--accent);
}

.upload-zone span {
    font-size: 0.7rem;
}

/* ══════════════════════════════════════════════
   V4: FORM ROW (side-by-side fields)
   ══════════════════════════════════════════════ */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

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

/* ══════════════════════════════════════════════
   V4: SETTINGS PAGE
   ══════════════════════════════════════════════ */

.settings-section {
    margin-bottom: var(--sp-6);
}

.settings-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid rgba(var(--glass-white), 0.06);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label span:first-child {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-label span:last-child {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(var(--glass-white), 0.1);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.color-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 10px var(--accent);
}

/* ══════════════════════════════════════════════
   V4: ACTIVITY LOG (Admin)
   ══════════════════════════════════════════════ */

.activity-log {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    background: rgba(var(--glass-white), 0.03);
    transition: background 0.2s;
}

.log-item:hover {
    background: rgba(var(--glass-white), 0.06);
}

.log-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.log-user {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
}

.log-action {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.log-details {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-time {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
   V4: KEYBOARD SHORTCUTS CARD
   ══════════════════════════════════════════════ */

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-3);
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    background: rgba(var(--glass-white), 0.03);
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    background: rgba(var(--glass-white), 0.08);
    border: 1px solid rgba(var(--glass-white), 0.12);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--accent);
    text-transform: uppercase;
}

.shortcut-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   V4: MOBILE RESPONSIVE ADDITIONS
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .today-widget {
        order: -1;
    }

    .weather-icon {
        font-size: 1.5rem;
    }

    .weather-temp {
        font-size: 1rem;
    }

    .modal-tabs {
        max-height: 200px;
        padding: 0 var(--sp-3);
    }

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

/* ==========================================
   V6: TIMETABLE STYLES
========================================== */

/* Month view timetable chips */
.day-timetable {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
}

.tt-chip {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.62rem;
    cursor: default;
    border-left: 2px solid var(--c-blue);
    background: rgba(59, 130, 246, 0.08);
    transition: background 0.15s ease;
    line-height: 1.3;
}

.tt-chip:hover {
    background: rgba(59, 130, 246, 0.15);
}

.tt-time {
    font-weight: 600;
    opacity: 0.7;
    flex-shrink: 0;
}

.tt-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.tt-more {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    padding: 0 4px;
    font-weight: 500;
}

/* Timetable color variants */
.tt-blue {
    border-left-color: var(--c-blue);
    background: rgba(59, 130, 246, 0.08);
}

.tt-blue:hover {
    background: rgba(59, 130, 246, 0.15);
}

.tt-indigo {
    border-left-color: var(--c-indigo);
    background: rgba(99, 102, 241, 0.08);
}

.tt-indigo:hover {
    background: rgba(99, 102, 241, 0.15);
}

.tt-violet {
    border-left-color: var(--c-violet);
    background: rgba(139, 92, 246, 0.08);
}

.tt-violet:hover {
    background: rgba(139, 92, 246, 0.15);
}

.tt-pink {
    border-left-color: var(--c-pink);
    background: rgba(236, 72, 153, 0.08);
}

.tt-pink:hover {
    background: rgba(236, 72, 153, 0.15);
}

.tt-orange {
    border-left-color: var(--c-orange);
    background: rgba(249, 115, 22, 0.08);
}

.tt-orange:hover {
    background: rgba(249, 115, 22, 0.15);
}

.tt-emerald {
    border-left-color: var(--c-emerald);
    background: rgba(16, 185, 129, 0.08);
}

.tt-emerald:hover {
    background: rgba(16, 185, 129, 0.15);
}

.tt-amber {
    border-left-color: var(--c-amber);
    background: rgba(245, 158, 11, 0.08);
}

.tt-amber:hover {
    background: rgba(245, 158, 11, 0.15);
}

.tt-teal {
    border-left-color: var(--c-teal);
    background: rgba(20, 184, 166, 0.08);
}

.tt-teal:hover {
    background: rgba(20, 184, 166, 0.15);
}

/* Week view timetable blocks */
.week-tt-block {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.72rem;
    cursor: default;
    border-left: 3px solid var(--c-blue);
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(4px);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.week-tt-block:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.week-tt-block .tt-subject {
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.2;
    margin-bottom: 1px;
}

.week-tt-block .tt-detail {
    font-size: 0.65rem;
    opacity: 0.7;
    line-height: 1.2;
}

/* Week view timetable color variants */
.week-tt-block.tt-blue {
    border-left-color: var(--c-blue);
    background: rgba(59, 130, 246, 0.12);
}

.week-tt-block.tt-indigo {
    border-left-color: var(--c-indigo);
    background: rgba(99, 102, 241, 0.12);
}

.week-tt-block.tt-violet {
    border-left-color: var(--c-violet);
    background: rgba(139, 92, 246, 0.12);
}

.week-tt-block.tt-pink {
    border-left-color: var(--c-pink);
    background: rgba(236, 72, 153, 0.12);
}

.week-tt-block.tt-orange {
    border-left-color: var(--c-orange);
    background: rgba(249, 115, 22, 0.12);
}

.week-tt-block.tt-emerald {
    border-left-color: var(--c-emerald);
    background: rgba(16, 185, 129, 0.12);
}

.week-tt-block.tt-amber {
    border-left-color: var(--c-amber);
    background: rgba(245, 158, 11, 0.12);
}

.week-tt-block.tt-teal {
    border-left-color: var(--c-teal);
    background: rgba(20, 184, 166, 0.12);
}

/* Dark mode timetable */
[data-theme="dark"] .tt-chip {
    background: rgba(59, 130, 246, 0.12);
}

[data-theme="dark"] .tt-chip:hover {
    background: rgba(59, 130, 246, 0.22);
}

[data-theme="dark"] .week-tt-block {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .tt-blue {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .tt-indigo {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .tt-violet {
    background: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .tt-pink {
    background: rgba(236, 72, 153, 0.15);
}

[data-theme="dark"] .tt-orange {
    background: rgba(249, 115, 22, 0.15);
}

[data-theme="dark"] .tt-emerald {
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .tt-amber {
    background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .tt-teal {
    background: rgba(20, 184, 166, 0.15);
}