/* =============================================
   MAHMOUD TIMELINE - Design System
   Light & Cheerful Theme with Vibrant Colors
   ============================================= */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Primary Colors - Fresh Sky Blue / Cyan (لبني) */
    --primary: #0284C7;
    --primary-light: #38BDF8;
    --primary-dark: #0369A1;
    --primary-glow: rgba(56, 189, 248, 0.25);
    --primary-bg: rgba(56, 189, 248, 0.1);

    /* Secondary Colors - Ocean Blue */
    --secondary: #2563EB;
    --secondary-light: #60A5FA;
    --secondary-dark: #1D4ED8;

    /* Accent Colors - Vibrant & Cheerful */
    --accent-orange: #F97316;
    --accent-orange-light: #FB923C;
    --accent-orange-bg: rgba(249, 115, 22, 0.08);
    --accent-green: #10B981;
    --accent-green-light: #34D399;
    --accent-green-bg: rgba(16, 185, 129, 0.08);
    --accent-pink: #EC4899;
    --accent-pink-light: #F472B6;
    --accent-pink-bg: rgba(236, 72, 153, 0.08);
    --accent-yellow: #EAB308;
    --accent-yellow-light: #FACC15;
    --accent-red: #EF4444;
    --accent-cyan: #06B6D4;
    --accent-cyan-light: #38BDF8;

    /* Background Colors - Clean White */
    --bg-primary: #F0F9FF;
    --bg-secondary: #E0F2FE;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(56, 189, 248, 0.05);
    --bg-sidebar: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);

    /* Border Colors */
    --border-light: #E0F2FE;
    --border-lighter: #F0F9FF;
    --border-primary: rgba(56, 189, 248, 0.3);
    --border-hover: rgba(2, 132, 199, 0.4);

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-accent: #1E293B;

    /* Shadows - Soft & Friendly */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(2, 132, 199, 0.06);
    --shadow-md: 0 4px 16px rgba(2, 132, 199, 0.08);
    --shadow-lg: 0 8px 32px rgba(2, 132, 199, 0.12);
    --shadow-card: 0 2px 12px rgba(2, 132, 199, 0.04), 0 0 0 1px rgba(56, 189, 248, 0.1);
    --shadow-card-hover: 0 8px 30px rgba(56, 189, 248, 0.15), 0 0 0 1px rgba(2, 132, 199, 0.2);
    --shadow-glow-purple: 0 4px 20px rgba(56, 189, 248, 0.3);
    --shadow-glow-blue: 0 4px 20px rgba(37, 99, 235, 0.25);
    --shadow-glow-green: 0 4px 20px rgba(16, 185, 129, 0.25);
    --shadow-glow-orange: 0 4px 20px rgba(249, 115, 22, 0.25);

    /* Spacing */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --topbar-height: 70px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Animated Background ---- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: float 25s ease-in-out infinite;
}

.bg-orb-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, #C4B5FD, #A78BFA);
    top: -250px;
    right: -200px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #FDE68A, #FB923C);
    bottom: -200px;
    left: -150px;
    animation-delay: -8s;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6EE7B7, #34D399);
    top: 40%;
    left: 40%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.05); }
    50% { transform: translate(-40px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.02); }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

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

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal), transform var(--transition-normal);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.03);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0284C7, #38BDF8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
    transition: transform var(--transition-spring);
}

.logo-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #0284C7, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .motivation-quote {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.nav-links {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #0284C7, #38BDF8);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--primary-dark);
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(2, 132, 199, 0.08)) !important;
    color: #0284C7 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    font-weight: 700 !important;
}

.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    background: linear-gradient(135deg, #0284C7, #38BDF8) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3) !important;
}

.nav-text {
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.nav-badge {
    margin-left: auto;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.english-badge {
    font-size: 16px;
}

.soon-badge {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.motivation-quote {
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(2, 132, 199, 0.04));
    border: 1px solid rgba(56, 189, 248, 0.3);
    transition: opacity var(--transition-fast);
}

.motivation-quote i {
    color: #0284C7;
    font-size: 12px;
    margin-bottom: 6px;
}

.motivation-quote p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

/* ---- Main Content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left var(--transition-normal);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ---- Topbar ---- */
.topbar {
    height: var(--topbar-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-display, .time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.date-display i {
    color: var(--primary);
}

.time-display i {
    color: var(--accent-orange);
}

/* ---- Page Content ---- */
.page-content {
    padding: 32px;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.glass-card:hover {
    border-color: var(--border-primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* ---- Dashboard Grid ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* ---- Stat Card ---- */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30px, -30px);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.english::before { background: var(--primary); }
.stat-card.programming::before { background: var(--secondary); }
.stat-card.meals::before { background: var(--accent-orange); }
.stat-card.gym::before { background: var(--accent-green); }

.stat-card.english::after {
    background: linear-gradient(90deg, #0284C7, #38BDF8);
}

.stat-card.programming::after {
    background: linear-gradient(90deg, #0369A1, #38BDF8);
}

.stat-card.meals::after {
    background: linear-gradient(90deg, #0284C7, #0EA5E9);
}

.stat-card.gym::after {
    background: linear-gradient(90deg, #0369A1, #0284C7);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(56, 189, 248, 0.12) !important;
    color: #0284C7 !important;
}

.stat-card.english .stat-card-icon,
.stat-card.programming .stat-card-icon,
.stat-card.meals .stat-card-icon,
.stat-card.gym .stat-card-icon {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #0284C7 !important;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-card-value {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
    background: linear-gradient(135deg, #0284C7, #38BDF8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-card-detail {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Progress Bar ---- */
.progress-bar-container {
    margin-top: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar-fill.purple,
.progress-bar-fill.blue,
.progress-bar-fill.orange,
.progress-bar-fill.green {
    background: linear-gradient(90deg, #0284C7 0%, #38BDF8 100%) !important;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-xl);
    padding: 44px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(2, 132, 199, 0.08);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 36px;
}

.hero-stat {
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    min-width: 100px;
}

.hero-stat-value {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* ---- Section Title ---- */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary);
}

/* ---- Today's Tasks ---- */
.today-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.task-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-spring);
    flex-shrink: 0;
    background: white;
}

.task-checkbox.checked {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan-light));
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-text {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    font-weight: 500;
}

.task-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-badge.vocabulary { background: rgba(139, 92, 246, 0.1); color: var(--primary); }
.task-badge.grammar { background: rgba(59, 130, 246, 0.1); color: var(--secondary); }
.task-badge.listening { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.task-badge.reading { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.task-badge.speaking { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }
.task-badge.practice { background: rgba(234, 179, 8, 0.1); color: #B45309; }

.task-badge.breakfast { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.task-badge.lunch { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.task-badge.dinner { background: rgba(139, 92, 246, 0.1); color: var(--primary); }
.task-badge.snack { background: rgba(234, 179, 8, 0.1); color: #B45309; }

/* ---- English Page ---- */
.english-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.english-stats {
    display: flex;
    gap: 12px;
}

.english-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.english-stat-pill:hover {
    border-color: var(--border-primary);
    box-shadow: var(--shadow-glow-purple);
}

.english-stat-pill i {
    color: var(--primary);
}

.english-stat-pill strong {
    color: var(--text-primary);
    font-weight: 700;
}

.week-card {
    margin-bottom: 16px;
    transition: all var(--transition-normal);
}

.week-card.current-week {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-purple);
    background: linear-gradient(135deg, #FEFBFF, #FDF4FF);
}

.week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 0;
    transition: margin var(--transition-fast);
}

.week-header.expanded {
    margin-bottom: 20px;
}

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

.week-number {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-purple);
}

.week-card.current-week .week-number {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
}

.week-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

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

.week-progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.week-chevron {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    font-size: 14px;
}

.week-header.expanded .week-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.week-lessons {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.week-lessons.show {
    display: block;
}

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

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

.lesson-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lesson-card:hover {
    background: white;
    border-color: var(--border-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lesson-card.completed {
    opacity: 0.55;
}

.lesson-card.completed .lesson-title {
    text-decoration: line-through;
}

.lesson-check {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-spring);
    background: white;
    margin-top: 2px;
}

.lesson-check.checked {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan-light));
    border-color: var(--accent-green);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-green);
}

.lesson-check.checked::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    line-height: 1.4;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lesson-type-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ---- Overall Progress Ring ---- */
.progress-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.progress-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-ring-percent {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-ring-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* ---- Streak Section ---- */
.streak-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.streak-card {
    text-align: center;
    padding: 8px;
}

.streak-value {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.streak-card .streak-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.streak-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease-out;
    min-width: 280px;
}

.toast.success {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, #ECFDF5, #F0FDF9);
    box-shadow: var(--shadow-glow-green);
}

.toast.success i {
    color: var(--accent-green);
}

.toast.info {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #EFF6FF, #F0F9FF);
    box-shadow: var(--shadow-glow-blue);
}

.toast.info i {
    color: var(--secondary);
}

.toast-exit {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(100px) scale(0.9); }
}

/* ---- Celebration Overlay ---- */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.celebration-overlay.active {
    opacity: 1;
}

.celebration-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    text-align: center;
    background: white;
    padding: 40px 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-primary);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-overlay.active .celebration-text {
    transform: translate(-50%, -50%) scale(1);
}

.celebration-text i {
    font-size: 64px;
    color: var(--accent-yellow);
    margin-bottom: 16px;
    display: block;
    animation: bounce 0.5s ease infinite alternate;
}

.celebration-text h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.celebration-text p {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    animation: confettiFall 3s ease-in-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---- Mood Selector ---- */
.mood-selector {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.mood-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    background: white;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
}

.mood-btn:hover {
    transform: scale(1.25);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-purple);
}

.mood-btn.active {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    transform: scale(1.2);
    box-shadow: var(--shadow-glow-orange);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    font-weight: 500;
}

/* ---- Current Week Badge ---- */
.current-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .today-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .page-content {
        padding: 16px;
    }

    .topbar {
        padding: 0 16px;
    }

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

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .streak-section {
        grid-template-columns: 1fr;
    }

    .english-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .english-stats {
        flex-wrap: wrap;
    }

    .topbar-right {
        display: none;
    }
}

/* ---- Utility: Animate on scroll ---- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: animateIn 0.6s ease-out forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---- Timed Daily Schedule Styles ---- */
.today-summary-pills {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

.time-slots-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.time-slot-block {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 24px;
    transition: all var(--transition-normal);
}

.time-slot-block:hover {
    border-color: var(--border-primary);
    box-shadow: var(--shadow-card-hover);
}

.slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-lighter);
    border-right: 4px solid var(--primary);
    padding-right: 12px;
}

.slot-header-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.slot-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slot-header-title h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.slot-time-badge {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.slot-count {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 700;
}

.slot-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timed-task-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-lighter);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.timed-task-card:hover {
    background: white;
    border-color: var(--border-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.timed-task-card.completed {
    background: #F8FAFC;
    opacity: 0.65;
}

.timed-task-card.completed .task-title-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-checkbox-wrapper {
    flex-shrink: 0;
}

.schedule-checkbox {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all var(--transition-spring);
}

.schedule-checkbox.checked {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan-light));
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

.schedule-checkbox.checked::after {
    content: '✓';
    color: white;
    font-weight: 800;
    font-size: 14px;
}

.task-time-pill {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.task-main-content {
    flex: 1;
}

.task-title-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    line-height: 1.4;
}

.task-sub-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.task-tag-badge {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-tag-badge.english { background: rgba(139, 92, 246, 0.1); color: var(--primary); }
.task-tag-badge.programming { background: rgba(59, 130, 246, 0.1); color: var(--secondary); }
.task-tag-badge.meals { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.task-tag-badge.gym { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }

.empty-slot-msg {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ---- Progress Circle Widget SVG fix ---- */
.today-widget-circle svg circle {
    fill: none !important;
}

/* ---- Desktop & Mobile Layout Enhancements ---- */
.today-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #F5F3FF 0%, #EFF6FF 50%, #ECFDF5 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.06);
    width: 100%;
}

.today-hero-left {
    flex: 1;
    min-width: 0;
}

.today-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.widget-status-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xs);
}

/* ---- User Greeting Pill ---- */
.user-greeting-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-purple);
}

.greeting-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.greeting-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.today-app-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.today-app-sub {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---- Mobile App Experience Sizing (max-width: 768px) ---- */
@media (max-width: 768px) {
    .today-hero-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 28px 20px;
        gap: 24px;
        border-radius: 24px;
    }
    
    .today-hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .user-greeting-pill {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .avatar-circle {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .greeting-name {
        font-size: 20px;
    }

    .today-app-title {
        font-size: 26px;
    }

    .today-summary-pills {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .summary-pill {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 20px;
    }

    .time-slot-block {
        padding: 20px 16px;
        border-radius: 24px;
        margin-bottom: 16px;
    }

    .slot-header-title {
        gap: 12px;
    }

    .slot-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 14px;
    }

    .slot-header-title h3 {
        font-size: 19px;
    }

    .timed-task-card {
        padding: 16px 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .schedule-checkbox {
        width: 32px;
        height: 32px;
        border-width: 2.5px;
        border-radius: 10px;
    }

    .schedule-checkbox.checked::after {
        font-size: 16px;
    }

    .task-title-text {
        font-size: 16px;
    }

    .task-sub-text {
        font-size: 13.5px;
    }

    .task-time-pill {
        font-size: 13px;
        padding: 6px 10px;
    }

    .task-tag-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* Bottom Nav App Bar */
    .mobile-bottom-nav {
        display: flex;
        height: 74px;
        padding: 0 12px;
    }

    .bottom-nav-item {
        font-size: 12px;
        gap: 4px;
    }

    .bottom-nav-item i {
        font-size: 22px;
    }

    .main-content {
        padding-bottom: 90px !important;
    }
}

.lesson-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.lesson-resource-link:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow-purple);
}

/* =============================================
   6-MONTH MASTER TIMELINE PROGRESS BAR STYLES
   ============================================= */
.master-timeline-section {
    margin: 28px 0;
}

.master-progress-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.master-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38BDF8 0%, #0284C7 50%, #0EA5E9 100%);
}

.master-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.master-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.master-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

.master-title-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.master-title-text p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.master-stat-badge {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.master-bar-container {
    background: #E2E8F0;
    border-radius: 12px;
    height: 22px;
    padding: 3px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.master-bar-fill {
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(90deg, #38BDF8 0%, #2563EB 60%, #10B981 100%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
    position: relative;
}

.master-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.month-mini-card {
    background: #FFFFFF;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all var(--transition-normal);
}

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

.month-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.month-mini-pct {
    color: var(--primary);
    font-weight: 800;
}

.month-mini-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-bar-track {
    height: 8px;
    background: #F1F5F9;
    border-radius: 6px;
    overflow: hidden;
}

.month-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8, #2563EB);
    border-radius: 6px;
    transition: width 0.8s ease;
}

/* =============================================
   DATE NAVIGATOR & TASK SHIFT STYLES
   ============================================= */
.date-navigator-card {
    background: #FFFFFF;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.date-nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: #F0F9FF;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.date-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.date-picker-input {
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: #FFFFFF;
    cursor: pointer;
}

.date-today-btn {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.date-info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-day-pill {
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.shift-summary-pills {
    display: flex;
    gap: 8px;
}

.shift-pill-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shift-pill-tag.out {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.shift-pill-tag.in {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Shift Badges inside Task Cards */
.badge-shifted-out {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #DC2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 700 !important;
}

.badge-shifted-in {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #7C3AED !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    font-weight: 700 !important;
}

.badge-completed-done {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-weight: 700 !important;
}

/* =============================================
   TASK ID BADGES STYLES
   ============================================= */
.task-id-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    flex-shrink: 0;
}

.task-ref-code {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-left: 6px;
    display: inline-block;
}

/* =============================================
   BULKING NUTRITION & MACRO TRACKER STYLES
   ============================================= */
.macro-card-wrapper {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}

.macro-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.macro-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.macro-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.macro-stat-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.macro-box-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.macro-bar-container {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.macro-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.macro-bar-fill.cal { background: linear-gradient(90deg, #F97316, #FB923C); }
.macro-bar-fill.prot { background: linear-gradient(90deg, #EF4444, #F87171); }
.macro-bar-fill.carbs { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.macro-bar-fill.fats { background: linear-gradient(90deg, #10B981, #34D399); }

.meal-macro-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* =============================================
   DOMINANT SKY BLUE THEME & FONT AWESOME ICON RULES
   ============================================= */
.task-tag-badge.english,
.task-tag-badge.programming,
.task-tag-badge.meals,
.task-tag-badge.gym {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #0284C7 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    font-weight: 700 !important;
}

.task-tag-badge i {
    color: #0284C7 !important;
    margin-right: 4px;
}

.task-title-text i {
    margin-right: 6px;
    font-size: 16px;
    color: #0284C7 !important;
}

.slot-icon {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #0284C7 !important;
}

.slot-header {
    border-right-color: #0284C7 !important;
    border-left-color: #0284C7 !important;
}

.date-day-pill,
.task-id-badge {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%) !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

.date-today-btn {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important;
}

.schedule-checkbox.checked {
    background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%) !important;
    border-color: #0284C7 !important;
}

/* =============================================
   MOBILE APP NATIVE VIEW DESIGN SYSTEM
   ============================================= */
.timed-task-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.04);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timed-task-card:hover {
    border-color: #0284C7;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.15);
}

.task-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.task-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-card-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.task-card-body-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.task-title-text {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 3px;
}

.task-sub-text {
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.4;
    word-break: break-word;
}

/* Mobile App Screen Customizations (max-width: 768px) */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        padding: 10px 14px;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    }
    
    .page-title {
        font-size: 17px;
        font-weight: 800;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 12px 12px 90px 12px !important;
        width: 100% !important;
    }

    .today-hero-banner {
        padding: 18px 14px !important;
        border-radius: 20px !important;
        gap: 14px !important;
    }
    
    .today-hero-left {
        align-items: flex-start !important;
        text-align: right !important;
    }

    .user-greeting-pill {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .avatar-circle {
        width: 42px !important;
        height: 42px !important;
        font-size: 17px !important;
    }

    .greeting-name {
        font-size: 16px !important;
    }

    .today-app-title {
        font-size: 20px !important;
    }

    .today-summary-pills {
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .summary-pill {
        font-size: 12px !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
    }

    .timed-task-card {
        padding: 14px 12px !important;
        border-radius: 16px !important;
        gap: 10px !important;
    }

    .task-card-header-left {
        gap: 6px !important;
    }

    .task-card-header-right {
        gap: 4px !important;
    }

    .task-id-badge {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .task-time-pill {
        font-size: 11.5px !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
    }

    .task-ref-code {
        font-size: 10.5px !important;
        padding: 2px 6px !important;
    }

    .task-tag-badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
        border-radius: 8px !important;
    }

    .schedule-checkbox {
        width: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(56, 189, 248, 0.3);
        box-shadow: 0 -4px 20px rgba(2, 132, 199, 0.08);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #64748B;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
    }

    .bottom-nav-item.active {
        color: #0284C7;
        font-weight: 800;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }
}







