/* ===================================
   SCHOLRGPT DASHBOARD - CLEAN DESIGN
   =================================== */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,900,500&display=swap');

:root {
    /* Colors */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.6);
    --focus-orange: #FB8500;
    --focus-orange-glow: rgba(251, 133, 0, 0.4);
    --accent-blue: #00d2ff;
    --accent-red: #ff3e3e;
    --accent-glow: rgba(251, 133, 0, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.06);

    /* Layout */
    --sidebar-width: 260px;
    --spacing-unit: 8px;

    /* Typography */
    --font-family: 'JetBrains Mono', monospace;
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.85rem;
    /* 13.6px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */
    --font-size-6xl: 3.75rem;
    /* 60px */
    --font-size-7xl: 4.5rem;
    /* 72px */
    --font-size-8xl: 6rem;
    /* 96px */
    --font-size-9xl: 8rem;
    /* 128px */

    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Effects */
    --glass-blur: blur(16px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Text Scaling */
    --text-scale-small: 0.875;
    --text-scale-medium: 1;
    --text-scale-large: 1.125;
}

/* Dashboard Light Mode Overrides */
.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #334155;
    --border-color: rgba(0, 0, 0, 0.1);
    --accent-blue: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
}

/* Dashboard High Contrast Mode Overrides */
.high-contrast {
    --bg-dark: #000000;
    --bg-card: #000000;
    --text-main: #FFFFFF;
    --text-muted: #E0E0E0;
    --border-color: #FFFFFF;
    --accent-blue: #00FFFF;
    --accent-red: #FF00FF;
    --focus-orange: #FF00FF;
    --accent-glow: rgba(255, 255, 255, 0.4);
}

.high-contrast body {
    background: #000000 !important;
}

.high-contrast .sidebar {
    background: #000000 !important;
    border-right: 2px solid #FFFFFF !important;
}

.high-contrast .nav-link {
    color: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
}

.high-contrast .nav-link i {
    color: #FFFFFF !important;
}

.high-contrast .nav-link:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
}

.high-contrast .nav-link:hover i {
    color: #000000 !important;
}

.high-contrast .nav-link.active {
    background: #00FFFF !important;
    color: #000000 !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.high-contrast .nav-link.active i {
    color: #000000 !important;
    font-weight: 700;
}

.high-contrast .greeting h1,
.high-contrast .greeting p {
    color: #FFFFFF !important;
}

.high-contrast .card {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .card:hover {
    border-color: #00FFFF !important;
}

.high-contrast .card-title {
    color: #FFFFFF !important;
}

.high-contrast .stat-label {
    color: #E0E0E0 !important;
}

.high-contrast .stat-value {
    color: #FFFFFF !important;
}

.high-contrast .task-name,
.high-contrast .h-task-name {
    color: #FFFFFF !important;
}

.high-contrast .task-meta {
    color: #E0E0E0 !important;
}

.high-contrast .today-task-item {
    border-bottom: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
}

.high-contrast .timer-text {
    color: #FFFFFF !important;
}

.high-contrast .timer-ring-bg {
    stroke: #FFFFFF !important;
}

.high-contrast .styled-slider {
    background: #000000 !important;
}

.high-contrast .styled-slider::-webkit-slider-thumb {
    background: #00FFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .action-btn {
    background: #00FFFF !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .action-btn.secondary {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .progress-fill {
    background: #00FFFF !important;
}

.high-contrast .bar-track,
.high-contrast .weekly-target-track {
    background: #FFFFFF !important;
}

.high-contrast .subject-chip {
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    background: transparent !important;
}

.high-contrast .subject-chip.active {
    background: #00FFFF !important;
    color: #000000 !important;
}

.high-contrast .h-task-row,
.high-contrast .quiz-row {
    border-bottom: 2px solid #FFFFFF !important;
}

.high-contrast .h-task-row:hover,
.high-contrast .quiz-row:hover {
    background: rgba(0, 255, 255, 0.2) !important;
}

.high-contrast .btn-secondary {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

/* Dashboard Light Mode High Contrast Overrides */
.light-mode.high-contrast {
    --bg-dark: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-main: #000000;
    --text-muted: #1a1a1a;
    --border-color: #000000;
    --accent-blue: #000080;
    --accent-red: #8B0000;
    --focus-orange: #8B4513;
    --accent-glow: rgba(0, 0, 0, 0.4);
}

.light-mode.high-contrast body {
    background: #FFFFFF !important;
}

.light-mode.high-contrast .sidebar {
    background: #FFFFFF !important;
    border-right: 3px solid #000000 !important;
}

.light-mode.high-contrast .nav-link {
    color: #000000 !important;
    border: 2px solid transparent;
    font-weight: 700;
}

.light-mode.high-contrast .nav-link i {
    color: #000000 !important;
}

.light-mode.high-contrast .nav-link:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .nav-link:hover i {
    color: #FFFFFF !important;
}

.light-mode.high-contrast .nav-link.active {
    background: #000080 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
    box-shadow: 0 0 8px rgba(0, 0, 128, 0.5);
}

.light-mode.high-contrast .nav-link.active i {
    color: #FFFFFF !important;
}

.light-mode.high-contrast .brand {
    color: #000000 !important;
}

.light-mode.high-contrast .greeting h1,
.light-mode.high-contrast .greeting p {
    color: #000000 !important;
}

.light-mode.high-contrast .card {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 4px 4px 0 #000000 !important;
}

.light-mode.high-contrast .card:hover {
    background: #FFFFE0 !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000 !important;
    border-color: #000000 !important;
}

.light-mode.high-contrast .card-title {
    color: #000000 !important;
    font-weight: 800;
}

.light-mode.high-contrast .stat-label {
    color: #1a1a1a !important;
    font-weight: 700;
}

.light-mode.high-contrast .stat-value {
    color: #000000 !important;
    font-weight: 800;
}

.light-mode.high-contrast .task-name,
.light-mode.high-contrast .h-task-name {
    color: #000000 !important;
}

.light-mode.high-contrast .task-meta {
    color: #1a1a1a !important;
}

.light-mode.high-contrast .today-task-item {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

.light-mode.high-contrast .timer-text {
    color: #000000 !important;
}

.light-mode.high-contrast .timer-ring-bg {
    stroke: #000000 !important;
}

.light-mode.high-contrast .styled-slider {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .styled-slider::-webkit-slider-thumb {
    background: #000080 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .styled-slider::-moz-range-thumb {
    background: #000080 !important;
}

.light-mode.high-contrast .action-btn {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 3px solid #000000 !important;
    font-weight: 700;
}

.light-mode.high-contrast .action-btn:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.light-mode.high-contrast .action-btn.secondary {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .action-btn.secondary:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .progress-fill {
    background: #000080 !important;
}

.light-mode.high-contrast .bar-track,
.light-mode.high-contrast .weekly-target-track {
    background: #000000 !important;
}

.light-mode.high-contrast .subject-chip {
    color: #000000 !important;
    border: 3px solid #000000 !important;
    background: transparent !important;
    font-weight: 700;
}

.light-mode.high-contrast .subject-chip.active {
    background: #000080 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .h-task-row,
.light-mode.high-contrast .quiz-row {
    background: #FFFFFF !important;
    border-bottom: 3px solid #000000 !important;
}

.light-mode.high-contrast .h-task-row:hover,
.light-mode.high-contrast .quiz-row:hover {
    background: #FFFFE0 !important;
}

.light-mode.high-contrast .timer-btn-primary {
    background: #000080 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .timer-btn-primary:hover {
    background: #0000A0 !important;
}

.light-mode.high-contrast .timer-btn-secondary {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .timer-btn-secondary:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .sound-card {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .sound-card:hover {
    background: #FFFFE0 !important;
}

.light-mode.high-contrast .sound-card.active {
    background: #000080 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .sound-name {
    color: #000000 !important;
}

.light-mode.high-contrast .sound-card.active .sound-name {
    color: #FFFFFF !important;
}

.light-mode.high-contrast .sound-card.active::after {
    background: #000080 !important;
}

.light-mode.high-contrast .sound-card.active i {
    color: #FFFFFF !important;
}

.light-mode.high-contrast .main-play-btn {
    background-color: #000080 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .main-play-btn.playing {
    background-color: #8B4513 !important;
}

.light-mode.high-contrast .filter-btn {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .filter-btn:hover {
    background: #FFFFE0 !important;
}

.light-mode.high-contrast .filter-btn.active {
    background: #000080 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .task-card {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .task-card:hover {
    background: #FFFFE0 !important;
}

.light-mode.high-contrast .new-task-btn {
    background: #8B4513 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .subject-pill {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .subject-pill.active {
    background: #000080 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .form-group input[type="text"],
.light-mode.high-contrast .form-group select {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    color: #000000 !important;
}

.light-mode.high-contrast .form-group label {
    color: #000000 !important;
}

.light-mode.high-contrast select option {
    background: #FFFFFF !important;
    color: #000000 !important;
}

.light-mode.high-contrast .panel-content {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 8px 8px 0 #000000 !important;
}

.light-mode.high-contrast .panel-header h3 {
    color: #000000 !important;
}

.light-mode.high-contrast .panel-close i {
    color: #000000 !important;
}


/* Dashboard Light Mode Contrast Overrides */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode .brand span,
.light-mode .timer-text,
.light-mode .task-name,
.light-mode .h-task-name {
    color: #0f172a !important;
}

/* Text Size Classes - Scale all text content */
.text-small {
    font-size: 14px !important;
}

.text-small * {
    font-size: inherit !important;
}

.text-medium {
    font-size: 16px !important;
}

.text-medium * {
    font-size: inherit !important;
}

.text-large {
    font-size: 18px !important;
}

.text-large * {
    font-size: inherit !important;
}

.light-mode .card-title,
.light-mode .stat-label,
.light-mode .task-meta,
.light-mode .bar-label,
.light-mode .weekly-target-labels,
.light-mode .subject-progress-header {
    color: #334155 !important;
}

.light-mode .bar-track,
.light-mode .weekly-target-track,
.light-mode .subject-progress-track {
    background: rgba(0, 0, 0, 0.06) !important;
}

.light-mode .stat-value {
    color: var(--accent-blue) !important;
}

.light-mode body {
    background:
        radial-gradient(circle at 20% 10%, rgba(52, 76, 235, 0.08), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(255, 62, 62, 0.05), transparent 40%),
        #f0f2f5 !important;
}

.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.95);
}

.light-mode .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.light-mode .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.light-mode .stat-box,
.light-mode .h-task-row,
.light-mode .quiz-row,
.light-mode .today-task-item {
    background: rgba(0, 0, 0, 0.02);
}

.light-mode .action-btn {
    background: rgba(0, 0, 0, 0.03);
    color: #1a1a1a;
}

.light-mode .timer-ring-bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.light-mode .styled-slider {
    background: rgba(0, 0, 0, 0.1);
}

.light-mode .styled-slider::-webkit-slider-thumb {
    background: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.light-mode .styled-slider::-moz-range-thumb {
    background: #000000;
}

.light-mode .sound-card.active::after {
    background: #f8fafc !important;
}

.light-mode .sound-card.active .sound-name {
    color: #0f172a !important;
}

.light-mode .sound-card.active i {
    color: #2563eb !important;
}


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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 210, 255, 0.03), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(255, 62, 62, 0.03), transparent 40%),
        var(--bg-dark);
}

/* ===================================
   LAYOUT STRUCTURE
   =================================== */

.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ===================================
   SIDEBAR
   =================================== */

.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 15, 20, 0.95);
    border-right: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
    position: relative;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: calc(var(--spacing-unit) * 6);
    padding: 0 15px;
}

.brand img,
.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-link i {
    font-size: var(--font-size-lg);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-link.active {
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent-blue);
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.2);
}

.nav-link.active i {
    color: var(--accent-blue);
}

.sidebar-footer {
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */

.main-viewport {
    flex: 1;
    overflow-y: auto;
    padding: calc(var(--spacing-unit) * 5);
    position: relative;
}

/* Custom Scrollbar */
.main-viewport::-webkit-scrollbar {
    width: 6px;
}

.main-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.main-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.main-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===================================
   TOP BAR
   =================================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.greeting h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.greeting p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

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

.streak-counter {
    background: rgba(255, 159, 28, 0.08);
    color: #ff9f1c;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    border: 1px solid rgba(255, 159, 28, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* ===================================
   LAYOUT STRUCTURE
   =================================== */

.analytics-panel {
    margin-bottom: 20px;
}

.main-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: calc(var(--spacing-unit) * 5);
}

/* ===================================
   BENTO GRID
   =================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: calc(var(--spacing-unit) * 5);
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: var(--glass-blur);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 210, 255, 0.25);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(0, 210, 255, 0.1);
    backdrop-filter: blur(24px);
}

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

.card-title {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    letter-spacing: 1.2px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card Size Variants */
.timer-card {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 70% 70%, rgba(0, 210, 255, 0.06), transparent 60%),
        var(--card-bg);
}

.analytics-wide-card {
    grid-column: span 3;
    grid-row: span 1;
}

.subjects-card {
    grid-column: span 2;
    grid-row: span 1;
}

.stats-card,
.quizzes-card,
.today-tasks-card {
    grid-column: span 1;
    grid-row: span 1;
}

/* ===================================
   ANALYTICS GRID
   =================================== */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.analytics-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* ===================================
   HORIZONTAL TASKS (Main Tasks)
   =================================== */

.horizontal-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h-task-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.h-task-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.h-task-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.h-task-badge {
    padding: 4px 12px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* ===================================
   QUIZ LIST
   =================================== */

.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: var(--font-size-sm);
    transition: var(--transition-smooth);
}

.quiz-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.quiz-row i {
    font-size: var(--font-size-lg);
}

.quiz-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

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

.quiz-title {
    font-weight: 500;
    color: var(--text-main);
    font-size: var(--font-size-sm);
}

.quiz-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    opacity: 0.8;
}

/* ===================================
   TODAY'S TASKS
   =================================== */

.today-task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.today-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.today-task-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.today-task-item.completed {
    opacity: 0.5;
    text-decoration: line-through;
    animation: taskDisappear 0.4s ease forwards;
}

.today-task-item.completed .task-subject,
.today-task-item.completed .task-module {
    text-decoration: line-through;
}

@keyframes taskDisappear {
    0% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-10px);
    }

    100% {
        opacity: 0;
        transform: translateX(20px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.task-subject {
    font-size: var(--font-size-sm);
    color: var(--text-main);
}

.task-module {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===================================
   BOTTOM ACTIONS
   =================================== */

.bottom-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.action-btn i {
    font-size: 1.1rem;
}

/* ===================================
   TIMER COMPONENT
   =================================== */

.timer-outer {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 6;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.timer-text {
    position: absolute;
    font-size: 35px !important;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
}

.timer-controls {
    display: flex;
    gap: 12px;
}

.timer-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition-smooth);
    font-family: 'JetBrains Mono', monospace;
}

.timer-btn-primary {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 210, 255, 0.2);
}

.timer-btn-primary:hover {
    background: #00e5ff;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

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

.timer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ===================================
   TASKS
   =================================== */

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.task-checkbox {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-name {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.task-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===================================
   BAR GRAPHS
   =================================== */

.bar-graphs-container {
    margin-bottom: 20px;
}

.bar-graph-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.bar-graph-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.bar-percentage {
    font-size: var(--font-size-xs);
    color: var(--accent-blue);
    font-weight: 700;
    text-align: right;
}

/* Weekly Target Bar */
.weekly-target-container {
    margin-top: 20px;
}

.weekly-target-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: var(--font-size-xs);
}

.weekly-target-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weekly-target-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.weekly-target-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px var(--accent-glow);
}

.weekly-target-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.weekly-target-current {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Subject Progress Bars */
.subject-progress-container {
    margin-top: 16px;
}

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

.subject-progress-item {
    flex: 1;
}

.subject-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: var(--font-size-xs);
}

.subject-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.subject-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===================================
   ANALYTICS / STATS
   =================================== */

.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-box {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    display: block;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
    AI SUGGESTION CARD
    =================================== */

.ai-suggestion-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), rgba(0, 210, 255, 0.02));
    border: 1px solid rgba(0, 210, 255, 0.15);
}

.ai-suggestion-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 210, 255, 0.15);
}

.ai-suggestion-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.ai-suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.ai-suggestion-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.ai-suggestion-reason {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-suggestion-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ai-suggestion-actions .timer-btn-primary {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.ai-dismiss-btn,
.ai-regenerate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-dismiss-btn:hover {
    background: rgba(255, 62, 62, 0.1);
    border-color: rgba(255, 62, 62, 0.3);
    color: var(--accent-red);
}

.ai-regenerate-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.3);
    color: var(--accent-blue);
}

.ai-dismiss-btn i,
.ai-regenerate-btn i {
    font-size: 1rem;
}

/* Animation for suggestion change */
@keyframes suggestionPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ai-suggestion-card.updating .ai-suggestion-content {
    animation: suggestionPulse 0.3s ease;
}

/* ===================================
   FLOATING ACTION BUTTON
   =================================== */

.fab {
    position: fixed;
    bottom: calc(var(--spacing-unit) * 5);
    right: calc(var(--spacing-unit) * 5);
    width: 56px;
    height: 56px;
    background: var(--accent-blue);
    color: #000;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.fab:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 210, 255, 0.4);
}

.fab i {
    font-size: 1.5rem;
}

/* ===================================
   ANIMATIONS
   =================================== */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

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

    .timer-card,
    .subjects-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {

    /* Layout Changes */
    .dashboard-container {
        flex-direction: column;
        height: 100vh;
        overflow-x: hidden;
    }

    .main-viewport {
        padding: 12px;
        /* Reduced from 16px */
        padding-bottom: 90px !important;
        /* Space for bottom nav */
        width: 100%;
        height: auto;
        overflow: visible;
        /* Don't hide overflow */
        flex: none;
        /* Don't try to fit in flex container */
    }

    /* Bottom Navigation Bar (formerly Sidebar) */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        border-right: none;
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }

    /* Hide Brand/Logo on Mobile */
    .brand {
        display: none;
    }

    /* Navigation Menu */
    .nav-menu {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        margin-bottom: 0;
    }

    /* Side Footer (Settings/Logout) - Merged into flow or hidden? 
       Let's keep them accessible but maybe smaller or relying on a secondary menu.
       For now, let's include them in the row if they fit, or hide text.
    */
    .sidebar-footer {
        display: none;
        /* Just for now to save space, or we can make them icons in the main row if we modify HTML structure. 
                         However, since HTML is fixed, let's try to make them appear inline if possible, 
                         BUT .sidebar has flex-direction: row. 
                         The structure is .brand, .nav-menu, .sidebar-footer. 
       */
        /* Let's try to display footer items as well */
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: 10px;
        padding-left: 10px;
        border-left: 1px solid var(--border-color);
    }

    /* Navigation Links */
    .nav-link {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px;
        border-radius: 12px;
        background: transparent;
        border: none;
        gap: 0;
    }

    .nav-link.active {
        background: transparent;
        color: var(--accent-blue);
    }

    .nav-link.active::after {
        display: none;
        /* Remove side indicator */
    }

    .nav-link i {
        font-size: 1.5rem;
        margin-right: 0;
        margin-bottom: 0;
    }

    /* Hide Text Labels */
    .nav-link span {
        display: none;
    }

    /* Dashboard Grid Stacking */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
        gap: 16px;
        padding-bottom: 20px;
    }

    /* Spanning adjustments */
    .timer-card,
    .tasks-card,
    .subjects-card,
    .analytics-card,
    .activities-card,
    .music-panel .card {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* Widget specific adjustments */
    .greeting h1 {
        font-size: 1.5rem;
    }

    .greeting p {
        font-size: 0.9rem;
    }

    /* Music Grid on Mobile */
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for better touch targets */
    }

    .music-bottom-controls {
        flex-direction: column;
        gap: 16px;
    }

    .music-bottom-controls>div {
        width: 100%;
        justify-content: center;
    }

    /* AI Suggestion Compact Mobile */
    .ai-suggestion-card {
        padding: 16px;
        gap: 10px;
        /* Make it much wider - pull to near edge-to-edge */
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        max-width: none;
        border-radius: 0;
        /* Remove rounded corners for edge-to-edge look */
    }

    .ai-suggestion-text {
        font-size: 0.85rem;
    }

    .ai-suggestion-reason {
        font-size: 0.70rem;
    }

    .ai-suggestion-actions {
        margin-top: 10px;
        gap: 8px;
    }

    .ai-suggestion-actions .timer-btn-primary {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .ai-dismiss-btn,
    .ai-regenerate-btn {
        width: 30px;
        height: 30px;
    }

    .ai-dismiss-btn i,
    .ai-regenerate-btn i {
        font-size: 0.85rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===================================
   TASKS PAGE STYLES
   =================================== */

.page-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-content.active {
    display: block;
    opacity: 1;
}

.tasks-container {
    margin-top: 24px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tasks-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.tasks-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'JetBrains Mono', monospace;
}

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

.filter-btn.active {
    background: var(--accent-blue);
    color: #000;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.task-card {
    background: #219EBC;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    opacity: 0;
    transition: var(--transition-smooth);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 158, 188, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

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

.task-card.completed {
    opacity: 0.6;
    background: rgba(33, 158, 188, 0.3);
}

.task-card.completed .task-name,
.task-card.completed .task-subject,
.task-card.completed .task-time {
    text-decoration: line-through;
    opacity: 0.7;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-blue);
    cursor: pointer;
    margin-top: 2px;
}

.task-content {
    flex: 1;
    margin-left: 12px;
}

.task-name {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    display: block;
}

.task-meta {
    display: flex;
    gap: 12px;
    font-size: var(--font-size-xs);
    color: rgba(0, 0, 0, 0.8);
}

.task-subject {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.task-time {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.new-task-btn {
    background: #ff9f1c;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(255, 159, 28, 0.3);
}

.new-task-btn:hover {
    background: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

.new-task-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 159, 28, 0.3);
}

/* ===================================
   NEW TASK PANEL STYLES
   =================================== */

.new-task-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-task-panel.active {
    display: block;
    opacity: 1;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.panel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 400px;
    max-width: 90vw;
    background: rgba(22, 22, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(33, 158, 188, 0.4);
    backdrop-filter: var(--glass-blur);
    transition: transform 0.3s ease;
    -webkit-text-fill-color: #ffffff;
}


.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.panel-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #000;
    margin: 0;
}

.panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.panel-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.panel-close i {
    font-size: var(--font-size-lg);
    color: #000;
}

.panel-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: rgba(40, 40, 40, 0.8);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: #ffffff;
    transition: var(--transition-smooth);
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

/* Dropdown options styling for better readability across the app */
select option {
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
    padding: 8px;
}

.subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-pill {
    padding: 8px 12px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.subject-pill:hover {
    background: rgba(0, 0, 0, 0.2);
}

.subject-pill.active {
    background: var(--accent-blue);
    color: #000;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.panel-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-primary {
    background: #ff9f1c;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(255, 159, 28, 0.3);
}

.btn-primary:hover {
    background: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 159, 28, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   RESPONSIVE TASKS STYLES
   =================================== */

@media (max-width: 768px) {
    .tasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tasks-filter {
        width: 100%;
        justify-content: flex-start;
    }

    .panel-content {
        width: 95vw;
        padding: 20px;
        margin: 20px;
    }

    .subject-pills {
        gap: 6px;
    }

    .subject-pill {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* ===================================
   MUSIC PLAYER GRID
   =================================== */

.sound-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sound-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 120px !important;
    position: relative;
    overflow: hidden;
}

.sound-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.sound-card.active {
    background: rgba(20, 20, 25, 0.4);
    border: none;
    box-shadow: 0 0 30px var(--focus-orange-glow);
}

/* Animated Border Logic - Exactly like Focus Hub */
.sound-card.active::before {
    content: '';
    position: absolute;
    aspect-ratio: 1 / 1;
    width: 250%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 75%,
            var(--focus-orange) 95%,
            transparent 100%);
    animation: rotateAntiContinuousFocus 4s linear infinite;
    z-index: 1;
}

.sound-card.active * {
    position: relative;
    z-index: 5;
}

.sound-card.active::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 11px;
    z-index: 2;
}

@keyframes rotateAntiContinuousFocus {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.sound-visual {
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.sound-card.active .sound-visual {
    /* No scale animation here, replaced by border */
    transform: none;
}

.sound-card.active i {
    color: var(--focus-orange) !important;
}

.sound-name {
    font-size: var(--font-size-sm) !important;
    font-weight: 600;
    color: var(--text-muted);
}

.sound-card.active .sound-name {
    color: var(--text-main);
}

/* Music Bottom Controls */
.music-bottom-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 0;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    width: 200px;
    justify-self: start;
}

/* Styled Slider */
.styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.styled-slider:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Webkit Thumb */
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border: 3px solid var(--bg-card);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.styled-slider:hover::-webkit-slider-thumb {
    transform: scale(1.25);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.styled-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
}

/* Firefox Thumb */
.styled-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.styled-slider:active::-moz-range-thumb {
    transform: scale(1.2);
}

/* Play/Pause Button States */
.main-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--font-size-4xl) !important;
    color: #000;
    background-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-play-btn:hover {
    transform: scale(1.05);
    /* Simpler, cleaner hover */
}

/* Animated Border for Playing State */
.main-play-btn.playing::before {
    content: '';
    position: absolute;
    aspect-ratio: 1 / 1;
    width: 250%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            transparent 75%,
            #000 95%,
            /* Black trace on the green/orange button */
            transparent 100%);
    animation: rotateAntiContinuous 3s linear infinite;
    z-index: 1;
}

.main-play-btn.playing::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: inherit;
    /* Maintain button color */
    border-radius: 50%;
    z-index: 2;
}

.main-play-btn i {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Playing State Color */
.main-play-btn.playing {
    background-color: #fb923c;
    box-shadow: 0 0 25px rgba(251, 146, 60, 0.4);
}

.main-play-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}