/* Nexus Hub Design System - CSS Custom Properties */
:root {
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Theme-independent Accents (HSL Values) */
    --accent-indigo-h: 239; --accent-indigo-s: 84%; --accent-indigo-l: 67%;
    --accent-violet-h: 262; --accent-violet-s: 83%; --accent-violet-l: 58%;
    --accent-emerald-h: 142; --accent-emerald-s: 71%; --accent-emerald-l: 45%;
    --accent-rose-h: 346; --accent-rose-s: 84%; --accent-rose-l: 61%;
    --accent-amber-h: 38; --accent-amber-s: 92%; --accent-amber-l: 50%;

    /* Default active accent: Indigo */
    --accent-h: var(--accent-indigo-h);
    --accent-s: var(--accent-indigo-s);
    --accent-l: var(--accent-indigo-l);

    --primary: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --primary-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
    --primary-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%));
    
    /* Default dark theme tokens */
    --bg-base: hsl(222, 47%, 6%);
    --bg-surface: hsla(223, 47%, 11%, 0.45);
    --bg-surface-solid: hsl(223, 47%, 10%);
    --bg-card: hsla(223, 47%, 12%, 0.4);
    --bg-card-hover: hsla(223, 47%, 16%, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-main: hsl(210, 40%, 94%);
    --text-muted: hsl(215, 20%, 65%);
    --text-dark: hsl(215, 25%, 27%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --glass-blur: blur(20px);
    
    /* Kanban priority styles (dark) */
    --low-color: hsl(200, 85%, 55%);
    --medium-color: hsl(42, 90%, 55%);
    --high-color: hsl(352, 90%, 60%);
    
    /* Scrollbar */
    --scrollbar-track: rgba(255, 255, 255, 0.02);
    --scrollbar-thumb: rgba(255, 255, 255, 0.12);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.22);
}

/* Light Theme overrides */
html[data-theme="light"] {
    --bg-base: hsl(210, 40%, 96%);
    --bg-surface: hsla(210, 30%, 90%, 0.65);
    --bg-surface-solid: hsl(210, 30%, 92%);
    --bg-card: hsla(0, 0%, 100%, 0.65);
    --bg-card-hover: hsla(0, 0%, 100%, 0.85);
    --border-color: rgba(15, 23, 42, 0.07);
    --border-hover: rgba(15, 23, 42, 0.15);
    --text-main: hsl(222, 47%, 11%);
    --text-muted: hsl(215, 16%, 47%);
    --text-dark: hsl(215, 20%, 80%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --glass-blur: blur(12px);

    /* Kanban priority styles (light) */
    --low-color: hsl(200, 85%, 40%);
    --medium-color: hsl(35, 90%, 45%);
    --high-color: hsl(352, 85%, 50%);

    --scrollbar-track: rgba(0, 0, 0, 0.02);
    --scrollbar-thumb: rgba(0, 0, 0, 0.1);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.2);
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-image: radial-gradient(circle at 10% 20%, hsla(var(--accent-indigo-h), 50%, 15%, 0.1) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, hsla(var(--accent-rose-h), 50%, 15%, 0.08) 0%, transparent 45%);
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Layout Containers */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l)));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.sidebar-brand h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

html[data-theme="light"] .nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), hsla(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%), 0.85));
    box-shadow: 0 4px 12px var(--primary-glow);
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

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

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

.version-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Workspace Frame */
.workspace {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100vh;
    overflow: hidden;
}

.workspace-header {
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background-color: rgba(11, 15, 25, 0.2);
    z-index: 5;
}

html[data-theme="light"] .workspace-header {
    background-color: rgba(240, 242, 245, 0.2);
}

#current-view-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.header-quick-stats {
    display: flex;
    gap: 16px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .header-quick-stats {
    background-color: rgba(255, 255, 255, 0.6);
}

.stat-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: background-color 0.3s ease;
}

.stat-indicator.running .dot {
    background-color: hsl(var(--accent-emerald-h), 75%, 50%);
    box-shadow: 0 0 8px hsl(var(--accent-emerald-h), 75%, 50%);
    animation: pulse-ring 1.5s infinite;
}

.audio-wave-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.stat-indicator.playing .audio-wave-icon {
    color: var(--primary);
    animation: bounce-bars 1.2s ease-in-out infinite;
}

/* Glassmorphism Cards */
.glass-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Content Frame Panels */
.content-panel {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.tab-panel {
    display: none;
    height: 100%;
}

.tab-panel.active {
    display: block;
    animation: fade-in 0.4s ease;
}

/* Buttons System */
.btn {
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    gap: 8px;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px var(--primary-glow);
}

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

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .secondary-btn {
    background-color: rgba(0, 0, 0, 0.03);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: var(--border-hover);
}

html[data-theme="light"] .secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.danger-btn {
    background-color: hsla(352, 90%, 55%, 0.15);
    color: hsl(352, 90%, 65%);
    border: 1px solid hsla(352, 90%, 55%, 0.25);
}

.danger-btn:hover {
    background-color: hsl(352, 90%, 55%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.icon-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.icon-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

html[data-theme="light"] .icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.large-btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
}

.w-full {
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   TIMER VIEW COMPONENT
   ========================================================================== */
.timer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.timer-main-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timer-modes {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 14px;
    gap: 4px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .timer-modes {
    background-color: rgba(0, 0, 0, 0.04);
}

.mode-btn {
    background: none;
    border: none;
    outline: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: var(--text-main);
}

.mode-btn.active {
    background-color: var(--bg-surface-solid);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .mode-btn.active {
    background-color: white;
}

.timer-visual-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 40px;
}

.progress-ring-svg {
    transform: rotate(-90deg);
    width: 260px;
    height: 260px;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8;
}

html[data-theme="light"] .progress-ring-bg {
    stroke: rgba(0, 0, 0, 0.03);
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 722.5; /* 2 * PI * r (r=115) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s linear, stroke 0.4s ease;
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.timer-display-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.timer-countdown {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.timer-current-task-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

.timer-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.timer-actions .primary-btn {
    min-width: 180px;
}

/* ==========================================================================
   MIXER COMPONENT
   ========================================================================== */
.audio-mixer-card {
    display: flex;
    flex-direction: column;
}

.audio-switch-block {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.mixer-channels {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    transition: opacity 0.3s ease;
}

.mixer-channels.muted-mixer {
    opacity: 0.4;
    pointer-events: none;
}

.mixer-channel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .mixer-channel {
    background-color: rgba(0, 0, 0, 0.01);
}

.channel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.channel-status {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

html[data-theme="light"] .channel-status {
    background-color: rgba(0, 0, 0, 0.05);
}

.mixer-channel.playing .channel-status {
    color: hsl(var(--accent-emerald-h), 75%, 50%);
    background-color: hsla(var(--accent-emerald-h), 75%, 50%, 0.15);
}

.channel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-toggle-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    outline: none;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    width: 60px;
    transition: all 0.2s ease;
}

.channel-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mixer-channel.playing .channel-toggle-btn {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.slider-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.volume-slider, #master-volume {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

html[data-theme="light"] .volume-slider, html[data-theme="light"] #master-volume {
    background-color: rgba(0, 0, 0, 0.1);
}

.volume-slider::-webkit-slider-thumb, #master-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover, #master-volume::-webkit-slider-thumb:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

.mixer-channel.playing .volume-slider::-webkit-slider-thumb {
    background-color: var(--primary);
}

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

.master-vol-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.master-vol-control label {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ==========================================================================
   KANBAN BOARD VIEW COMPONENTS
   ========================================================================== */
.kanban-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.kanban-filters {
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .kanban-filters {
    background-color: rgba(0, 0, 0, 0.03);
}

.filter-btn {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--bg-surface-solid);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .filter-btn.active {
    background-color: white;
}

.kanban-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
    height: calc(100vh - 220px);
}

.kanban-column {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    background-color: hsla(223, 47%, 9%, 0.35);
}

html[data-theme="light"] .kanban-column {
    background-color: rgba(255, 255, 255, 0.4);
}

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

.column-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.todo-dot { background-color: #a8a29e; }
.progress-dot { background-color: var(--primary); }
.review-dot { background-color: hsl(var(--accent-amber-h), 90%, 55%); }
.done-dot { background-color: hsl(var(--accent-emerald-h), 75%, 50%); }

.column-header h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.column-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

html[data-theme="light"] .column-count {
    background-color: rgba(0, 0, 0, 0.05);
}

.kanban-cards-container {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    min-height: 200px;
}

.kanban-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kanban-card:active {
    cursor: grabbing;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-priority-high {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--high-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag-priority-medium {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--medium-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tag-priority-low {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--low-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-cat {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .tag-cat {
    background-color: rgba(0, 0, 0, 0.03);
}

.kanban-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
}

.kanban-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
}

.card-left-actions {
    display: flex;
    gap: 4px;
}

.card-action-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

html[data-theme="light"] .card-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.play-task-btn:hover {
    color: var(--primary);
}

.card-nav-buttons {
    display: flex;
    gap: 4px;
}

.card-nav-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 22px;
    height: 22px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.card-nav-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   ANALYTICS VIEW COMPONENTS
   ========================================================================== */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.focus-bg {
    background: linear-gradient(135deg, var(--primary), hsla(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)));
    box-shadow: 0 4px 10px var(--primary-glow);
}

.tasks-bg {
    background: linear-gradient(135deg, hsl(var(--accent-emerald-h), 71%, 45%), hsl(var(--accent-emerald-h), 71%, 38%));
    box-shadow: 0 4px 10px hsla(var(--accent-emerald-h), 71%, 45%, 0.3);
}

.pomodoro-bg {
    background: linear-gradient(135deg, hsl(var(--accent-rose-h), 84%, 61%), hsl(var(--accent-rose-h), 84%, 53%));
    box-shadow: 0 4px 10px hsla(var(--accent-rose-h), 84%, 61%, 0.3);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-val {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 4px;
}

.analytics-charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.chart-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 380px;
}

.chart-header-row {
    margin-bottom: 24px;
}

.chart-header-row h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.chart-viewport {
    flex-grow: 1;
    position: relative;
    width: 100%;
    min-height: 0; /* Important for flex child sizing */
}

/* Donut Chart Layout */
.donut-chart-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-grow: 1;
    min-height: 0;
}

.donut-chart-layout .chart-viewport {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.legend-label-wrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.legend-val {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* ==========================================================================
   NOTES VIEW COMPONENT
   ========================================================================== */
.notes-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    height: calc(100vh - 160px);
}

.notes-sidebar {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    height: 100%;
    overflow: hidden;
}

.notes-list-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex-grow: 1;
}

.note-list-btn {
    background: none;
    border: 1px solid transparent;
    outline: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.note-list-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .note-list-btn:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.note-list-btn.active {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

html[data-theme="light"] .note-list-btn.active {
    background-color: rgba(0, 0, 0, 0.04);
}

.note-btn-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-btn-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.note-editor-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

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

.note-title-field {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    flex-grow: 1;
    max-width: 60%;
}

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

.autosave-indicator {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.editor-rich-workspace {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* Quill.js Overrides for Dark/Glass Theme */
.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: rgba(0, 0, 0, 0.2);
    font-family: var(--font-main);
    padding: 12px 16px !important;
}

.ql-container.ql-snow {
    border: none !important;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
    height: 100% !important;
}

.ql-editor {
    padding: 24px 32px !important;
    line-height: 1.6;
}

.ql-snow .ql-stroke {
    stroke: var(--text-main) !important;
}
.ql-snow .ql-fill {
    fill: var(--text-main) !important;
}
.ql-snow .ql-picker {
    color: var(--text-main) !important;
}

/* Headings in Quill */
.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    font-family: var(--font-display);
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.markdown-preview h1 { font-size: 1.4rem; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.markdown-preview h2 { font-size: 1.2rem; }
.markdown-preview h3 { font-size: 1.05rem; }

.markdown-preview p {
    margin-bottom: 12px;
}

.markdown-preview ul, .markdown-preview ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.markdown-preview li {
    margin-bottom: 4px;
}

.markdown-preview blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    color: var(--text-muted);
    margin: 12px 0;
}

.markdown-preview strong {
    font-weight: 600;
}

.markdown-preview em {
    font-style: italic;
}

/* ==========================================================================
   SETTINGS TAB VIEW COMPONENTS
   ========================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    align-items: start;
}

.settings-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.setting-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
}

.setting-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.setting-control {
    flex-shrink: 0;
}

/* Input Fields Style */
.select-input, .number-input {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-primary);
    outline: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

html[data-theme="light"] .select-input, html[data-theme="light"] .number-input {
    background-color: white;
}

.select-input:hover, .number-input:hover {
    border-color: var(--border-hover);
}

.select-input:focus, .number-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.number-input {
    width: 80px;
    text-align: center;
}

.color-palette-picker {
    display: flex;
    gap: 8px;
}

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

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

.color-picker-dot.active {
    border-color: var(--text-main);
    transform: scale(1.1);
}

.danger-zone {
    grid-column: span 2;
    border-color: hsla(352, 90%, 55%, 0.2);
    background-color: hsla(352, 90%, 55%, 0.01);
}

/* ==========================================================================
   MODALS AND DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 10, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fade-in 0.25s ease;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-surface-solid);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

html[data-theme="light"] .modal-card {
    background-color: white;
    border-color: rgba(0, 0, 0, 0.1);
}

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

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.half-width {
    width: 50%;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

html[data-theme="light"] .form-group input[type="text"],
html[data-theme="light"] .form-group input[type="email"],
html[data-theme="light"] .form-group input[type="password"],
html[data-theme="light"] .form-group textarea {
    background-color: var(--bg-base);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-group textarea {
    height: 100px;
    resize: none;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

/* ==========================================================================
   AUTH MODAL & TURNSTILE BOT PROTECTION STYLES
   ========================================================================== */
.auth-modal-card {
    max-width: 440px;
    width: 90%;
    border-radius: 20px;
    animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.auth-tabs {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

html[data-theme="light"] .auth-tabs {
    background: rgba(0, 0, 0, 0.05);
}

.auth-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn:hover {
    color: var(--text-main);
}

.auth-tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.auth-modal-body {
    padding: 24px 20px;
}

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

.w-full {
    width: 100%;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
    animation: fade-in 0.2s ease;
}

.error-alert {
    background-color: hsla(346, 84%, 61%, 0.12);
    border: 1px solid hsla(346, 84%, 61%, 0.3);
    color: hsl(346, 90%, 70%);
}

html[data-theme="light"] .error-alert {
    background-color: hsla(346, 84%, 61%, 0.08);
    color: hsl(346, 80%, 45%);
}

.success-alert {
    background-color: hsla(142, 71%, 45%, 0.12);
    border: 1px solid hsla(142, 71%, 45%, 0.3);
    color: hsl(142, 80%, 65%);
}

html[data-theme="light"] .success-alert {
    background-color: hsla(142, 71%, 45%, 0.08);
    color: hsl(142, 80%, 35%);
}

.auth-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.15);
    text-align: center;
}

html[data-theme="light"] .auth-modal-footer {
    background-color: rgba(0, 0, 0, 0.02);
}

.legal-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.legal-notice a {
    color: var(--primary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.legal-notice a:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0px hsla(var(--accent-emerald-h), 75%, 50%, 0.4); }
    70% { box-shadow: 0 0 0 8px hsla(var(--accent-emerald-h), 75%, 50%, 0); }
    100% { box-shadow: 0 0 0 0px hsla(var(--accent-emerald-h), 75%, 50%, 0); }
}

@keyframes bounce-bars {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .timer-grid {
        grid-template-columns: 1fr;
    }
    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .danger-zone {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }
    .sidebar-brand {
        margin-bottom: 16px;
    }
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .nav-btn span {
        display: none;
    }
    .content-panel {
        padding: 20px;
    }
    .kanban-columns {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: visible;
    }
    .kanban-column {
        max-height: 400px;
    }
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    .notes-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
    .notes-sidebar {
        height: 200px;
    }
    /* Quill Editor Responsive */
    .ql-editor {
        padding: 16px !important;
    }
}

/* Donation Button Pulsing Effect */
.sidebar-donation-btn {
    position: relative;
    overflow: hidden;
}

.sidebar-donation-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: donation-pulse 2.5s infinite;
    pointer-events: none;
}

@keyframes donation-pulse {
    0% { box-shadow: 0 0 0 0px var(--primary-glow); }
    70% { box-shadow: 0 0 0 8px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0); }
    100% { box-shadow: 0 0 0 0px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0); }
}

/* Sidebar Ad Styling — always visible */
.sidebar-ad-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* Subtle shimmer effect on the placeholder */
.sidebar-ad-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    animation: adShimmer 4s infinite ease-in-out;
    pointer-events: none;
}

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

html[data-theme="light"] .sidebar-ad-container {
    background: linear-gradient(135deg, rgba(0,0,0,0.015), rgba(0,0,0,0.005));
    border-color: rgba(0,0,0,0.1);
}


/* =========================================
   SPLASH SCREEN
   ========================================= */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: hsl(222, 47%, 5%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: splashFadeIn 0.5s ease forwards;
}
@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.splash-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, hsl(239,84%,67%), hsl(262,83%,58%));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 48px hsla(239,84%,67%,0.45);
    animation: splashPulse 1.8s ease-in-out infinite;
}
@keyframes splashPulse {
    0%, 100% { box-shadow: 0 0 40px hsla(239,84%,67%,0.35); }
    50%       { box-shadow: 0 0 70px hsla(239,84%,67%,0.65); }
}
.splash-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: hsl(210,40%,94%);
    letter-spacing: -0.5px;
}
.splash-subtitle {
    font-size: 0.85rem;
    color: hsl(215,20%,55%);
}
.splash-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.splash-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(239,84%,67%), hsl(262,83%,58%));
    border-radius: 999px;
    animation: splashBarAnim 1.4s ease forwards;
}
@keyframes splashBarAnim {
    from { width: 0%; }
    to   { width: 100%; }
}

/* =========================================
   ANIMATED AURORA BACKGROUND
   ========================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 45% at 15% 25%, hsla(239,84%,55%,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 75%, hsla(262,83%,55%,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 10%, hsla(200,80%,60%,0.05) 0%, transparent 70%);
    animation: auroraDrift 18s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
    0%   { opacity: 1; transform: scale(1) translateX(0); }
    50%  { opacity: 0.8; transform: scale(1.04) translateX(8px); }
    100% { opacity: 1; transform: scale(1) translateX(0); }
}
.app-container { position: relative; z-index: 1; }

/* =========================================
   MIXER CHANNEL ICON
   ========================================= */
.channel-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-right: 6px;
    flex-shrink: 0;
    filter: saturate(1.2);
}
.channel-info {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

/* Playing channel glow effect */
.mixer-channel.playing {
    background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.07);
    border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
}
.mixer-channel.playing .channel-icon {
    animation: iconPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes iconPop {
    0%  { transform: scale(1); }
    50% { transform: scale(1.4); }
    100%{ transform: scale(1.15); }
}

/* =========================================
   KANBAN CARD IMPROVEMENTS
   ========================================= */
.kanban-card {
    transition: transform 0.2s cubic-bezier(0.34,1.3,0.64,1),
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}
.kanban-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35),
                0 0 0 1px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
}

/* =========================================
   NOTES GALLERY VIEW
   ========================================= */
.notes-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 4px 2px;
    overflow-y: auto;
}
.note-gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34,1.3,0.64,1),
                border-color 0.2s ease,
                box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 110px;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
}
.note-gallery-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: var(--note-color, linear-gradient(90deg, var(--primary), hsl(262,83%,58%)));
}
.note-gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.note-gallery-card.active-gallery-card {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.note-gallery-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-gallery-preview {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.note-gallery-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: auto;
}
.notes-view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.notes-view-btn {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.notes-view-btn.active,
.notes-view-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =========================================
   MIXER GRID LAYOUT (2-col on wide)
   ========================================= */
.mixer-channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
}
@media (min-width: 1400px) {
    .mixer-channels {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   STRICT GDPR COOKIE CONSENT BANNER & LEGAL PAGES STYLES
   ========================================================================== */
.cookie-banner-overlay {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 520px;
    margin: 0 auto;
    z-index: 10000;
    animation: cookieBannerSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-banner-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

html[data-theme="light"] .cookie-banner-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cookie-banner-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.cookie-banner-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-body a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.sidebar-legal-links {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sidebar-legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Standalone Legal Pages Layout */
.legal-page-body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
}

.legal-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-header {
    margin-bottom: 32px;
}

.legal-header .back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.legal-header .back-link:hover {
    transform: translateX(-4px);
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.legal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.legal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-section p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.legal-section ul {
    margin: 0 0 12px 0;
    padding-left: 24px;
    color: var(--text-muted);
}

.legal-section li {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.legal-section code {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: 0.85rem;
    color: var(--primary);
}

html[data-theme="light"] .legal-section code {
    background: rgba(0, 0, 0, 0.05);
}

.legal-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legal-footer a {
    color: var(--primary);
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

