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

:root {
    /* Light Theme - Core Color System */
    /* 1. Background Colors */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    
    /* 2. Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-tertiary: #9ca3af;
    
    /* 3. Accent Colors */
    --accent-light: #f5f5f5;
    --accent-medium: #e5e5e5;
    --accent-dark: #2d2d2d;
    
    /* 4. Borders & Shadows */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Compatibility */
    --border-color: var(--border-light);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    /* Dark Mode - Premium Design */
    /* 1. Dark Backgrounds */
    --bg-color: #0d1117;
    --card-bg: #161b22;
    
    /* 2. Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    
    /* 3. Accent Colors */
    --accent-light: #21262d;
    --accent-medium: #30363d;
    --accent-dark: #c9d1d9;
    
    /* 4. Borders & Shadows */
    --border-light: rgba(240, 246, 252, 0.1);
    --border-medium: rgba(240, 246, 252, 0.15);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(240, 246, 252, 0.05);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 246, 252, 0.1);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 246, 252, 0.1);
    
    /* Compatibility */
    --border-color: var(--border-light);
}

/* Monster Theme */
[data-theme="monster"] {
    /* Monster Theme - Cute Monsters Inc. Style */
    /* 1. Light Backgrounds */
    --bg-color: #f0f4f8;
    --card-bg: #ffffff;
    
    /* 2. Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #6a8eeb;
    --text-tertiary: #7ec8e3;
    
    /* 3. Accent Colors */
    --accent-light: #f5f9fc;
    --accent-medium: #e8f0f7;
    --accent-dark: #4a90e2;
    
    /* 4. Borders & Shadows */
    --border-light: rgba(106, 142, 235, 0.15);
    --border-medium: rgba(106, 142, 235, 0.25);
    --shadow: 0 2px 12px rgba(106, 142, 235, 0.08), 0 0 0 1px rgba(106, 142, 235, 0.05);
    --shadow-hover: 0 4px 20px rgba(106, 142, 235, 0.15), 0 0 0 1px rgba(106, 142, 235, 0.1);
    --shadow-heavy: 0 8px 32px rgba(106, 142, 235, 0.2), 0 0 0 1px rgba(106, 142, 235, 0.15);
    
    /* Monster Special Colors */
    --monster-blue: #6a8eeb;
    --monster-light-blue: #7ec8e3;
    --monster-purple: #c3a6e6;
    --monster-green: #90ee90;
    --monster-light-green: #c8f0c8;
    
    /* Compatibility */
    --border-color: var(--border-light);
}

/* Hard Mode Theme */
[data-theme="hard"] {
    /* Hard Mode - Gaming Theme */
    /* 1. Dark Backgrounds */
    --bg-color: #000000;
    --card-bg: #1a1f3a;
    
    /* 2. Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-tertiary: rgba(255, 255, 255, 0.7);
    
    /* 3. Accent Colors */
    --accent-light: rgba(255, 255, 255, 0.15);
    --accent-medium: rgba(255, 255, 255, 0.25);
    --accent-dark: #ffffff;
    
    /* 4. Borders & Shadows */
    --border-light: rgba(255, 255, 255, 0.2);
    --border-medium: rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.25);
    
    /* Hard Mode Special Colors (matching landing page gaming theme) */
    --hard-blue: #4a90e2;
    --hard-purple: #6a8eeb;
    --hard-pink: #c3a6e6;
    --hard-green: #90ee90;
    --hard-orange: #ff8c42;
    
    /* Compatibility */
    --border-color: var(--border-light);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Landing Page Styles - Monsters Inc. Theme */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #E0E6ED 0%, #F0F2F5 50%, #E0E6ED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .landing-page {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}

[data-theme="monster"] .landing-page {
    background: linear-gradient(135deg, #E0E6ED 0%, #F0F2F5 50%, #E0E6ED 100%);
}

/* Gradient Overlay */
.landing-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(106, 142, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .landing-gradient-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(106, 142, 235, 0.1) 0%, transparent 70%);
}

/* Background Decoration */
.landing-background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6A8EEB 0%, #7EC8E3 100%);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #C3A6E6 0%, #90EE90 100%);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #90EE90 0%, #C8F0C8 100%);
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #C3A6E6 0%, #6A8EEB 100%);
    top: 20%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.landing-content {
    text-align: center;
    padding: 40px;
    max-width: 900px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Monsters Inc. Logo Styles */
.landing-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.monsters-logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(106, 142, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.logo-monsters {
    font-size: 96px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-transform: uppercase;
    position: relative;
    line-height: 1;
    display: inline-block;
}

/* Create eye cutout effect on the O */
.logo-o {
    position: relative;
    display: inline-block;
}

.logo-o::after {
    content: '';
    position: absolute;
    top: 0.12em;
    right: 0.08em;
    width: 0.28em;
    height: 0.28em;
    background: linear-gradient(135deg, #E0E6ED 0%, #F0F2F5 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 0.05em #1a1a1a;
    pointer-events: none;
}

[data-theme="dark"] .logo-o::after {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 0 0 0.05em #f5f5f5;
}

.logo-daily {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1;
}

[data-theme="dark"] .logo-monsters,
[data-theme="dark"] .logo-daily {
    color: #ffffff;
}

[data-theme="monster"] .logo-monsters,
[data-theme="monster"] .logo-daily {
    color: #1a1a2e;
    text-shadow: none;
}

[data-theme="dark"] .logo-monsters::after {
    box-shadow: inset 0 0 0 0.08em #f5f5f5;
}

.landing-subtitle {
    font-size: 24px;
    color: #4A4A4A;
    margin-bottom: 64px;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.6s ease 0.2s both;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.3px;
}

[data-theme="dark"] .landing-subtitle {
    color: #9ca3af;
}

/* Landing Button Wrapper */
.landing-button-wrapper {
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Landing Features */
.landing-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 0;
    animation: fadeInUp 0.6s ease 0.6s both;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 142, 235, 0.1) 0%, rgba(195, 166, 230, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

[data-theme="dark"] .feature-item {
    background: rgba(45, 45, 45, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(106, 142, 235, 0.3);
}

[data-theme="dark"] .feature-item:hover {
    background: rgba(45, 45, 45, 0.8);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(106, 142, 235, 0.4);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(106, 142, 235, 0.1) 0%, rgba(195, 166, 230, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(106, 142, 235, 0.2) 0%, rgba(195, 166, 230, 0.2) 100%);
}

.feature-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15);
}

.feature-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.landing-enter-btn {
    padding: 22px 72px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #4A90E2 0%, #6A8EEB 50%, #7EC8E3 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease 0.4s both, gradientShift 3s ease infinite;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4), 0 0 0 0 rgba(74, 144, 226, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.landing-enter-btn .btn-text {
    position: relative;
    z-index: 2;
}

.landing-enter-btn .btn-arrow {
    position: relative;
    z-index: 2;
    font-size: 22px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.landing-enter-btn .btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.landing-enter-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.landing-enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.landing-enter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.landing-enter-btn:hover::before {
    left: 100%;
}

.landing-enter-btn:hover::after {
    width: 300px;
    height: 300px;
}

.landing-enter-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 48px rgba(74, 144, 226, 0.6), 0 0 0 4px rgba(74, 144, 226, 0.1);
    animation-play-state: paused;
}

.landing-enter-btn:hover .btn-arrow {
    transform: translateX(6px) scale(1.1);
}

.landing-enter-btn:active {
    transform: translateY(-2px) scale(1.01);
}

[data-theme="dark"] .landing-enter-btn {
    background: linear-gradient(135deg, #6A8EEB 0%, #7EC8E3 100%);
    box-shadow: 0 8px 24px rgba(106, 142, 235, 0.4);
}

[data-theme="dark"] .landing-enter-btn:hover {
    box-shadow: 0 12px 40px rgba(106, 142, 235, 0.6);
}


/* Color accent decoration */
.landing-color-accent {
    position: relative;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        #6A8EEB 0%, 
        #7EC8E3 20%, 
        #C3A6E6 40%, 
        #90EE90 60%, 
        #C8F0C8 80%, 
        #6A8EEB 100%);
    background-size: 200% 100%;
    animation: slideInUp 0.8s ease 0.6s both, gradientFlow 4s ease infinite;
    z-index: 1;
    box-shadow: 0 -4px 20px rgba(106, 142, 235, 0.3);
    margin-top: 40px;
    border-radius: 0 0 10px 10px;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

/* Landing Page Responsive Design */
@media (max-width: 768px) {
    .landing-page {
        min-height: 100vh;
        height: auto;
        padding: 20px 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .landing-content {
        padding: 32px 20px 40px;
        max-width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .landing-logo-container {
        margin-bottom: 24px;
    }
    
    .monsters-logo {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-monsters {
        font-size: 52px;
        letter-spacing: -1.5px;
        line-height: 1;
    }
    
    .logo-daily {
        font-size: 26px;
        line-height: 1;
    }
    
    .landing-subtitle {
        font-size: 17px;
        margin-bottom: 36px;
        padding: 0 12px;
        line-height: 1.5;
        font-weight: 400;
    }
    
    .landing-button-wrapper {
        margin-bottom: 40px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .landing-enter-btn {
        padding: 16px 48px;
        font-size: 15px;
        letter-spacing: 1px;
        width: 100%;
        max-width: 280px;
        border-radius: 18px;
        min-height: 52px;
    }
    
    .landing-features {
        gap: 12px;
        margin-top: 0;
        padding: 0 12px;
        width: 100%;
    }
    
    .feature-item {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 18px 12px;
        gap: 10px;
        border-radius: 16px;
    }
    
    .feature-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-text {
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
    }
    
    .decoration-circle {
        opacity: 0.03;
    }
    
    .circle-1 {
        width: 180px;
        height: 180px;
        top: -90px;
        right: -90px;
    }
    
    .circle-2 {
        width: 120px;
        height: 120px;
        bottom: -60px;
        left: -60px;
    }
    
    .circle-3 {
        width: 90px;
        height: 90px;
    }
    
    .circle-4 {
        width: 70px;
        height: 70px;
    }
    
    .logo-glow {
        width: 140%;
        height: 140%;
        opacity: 0.3;
    }
    
    .landing-color-accent {
        height: 6px;
        position: relative;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .landing-page {
        padding: 16px 0;
    }
    
    .landing-content {
        padding: 24px 16px 32px;
        min-height: calc(100vh - 32px);
    }
    
    .landing-logo-container {
        margin-bottom: 20px;
    }
    
    .logo-monsters {
        font-size: 44px;
        letter-spacing: -1.2px;
    }
    
    .logo-daily {
        font-size: 22px;
    }
    
    .landing-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 0 8px;
        line-height: 1.4;
    }
    
    .landing-button-wrapper {
        margin-bottom: 36px;
        padding: 0 8px;
    }
    
    .landing-enter-btn {
        padding: 14px 40px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        min-height: 48px;
    }
    
    .landing-features {
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
        padding: 0 8px;
        width: 100%;
    }
    
    .feature-item {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        padding: 20px 16px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 16px;
        border-radius: 14px;
    }
    
    .feature-icon-wrapper {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
        border-radius: 12px;
    }
    
    .feature-icon {
        font-size: 26px;
    }
    
    .feature-text {
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
        flex: 1;
    }
    
    .logo-glow {
        width: 130%;
        height: 130%;
        opacity: 0.25;
    }
    
    .landing-color-accent {
        height: 5px;
        margin-top: 16px;
    }
}

/* ============================================
   SHOWCASE LANDING PAGE STYLES
   ============================================ */

.showcase-landing-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 20px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.showcase-landing-page.exiting {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.showcase-landing-page[data-landing-theme="gaming"] {
    background: #000000;
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.showcase-header {
    margin-bottom: 20px;
}

.brand-header {
    text-align: left;
}

.brand-label {
    display: block;
    font-size: 12px;
    color: rgba(26, 31, 58, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-landing-theme="gaming"] .brand-label {
    color: rgba(26, 31, 58, 0.7);
}

.brand-title {
    font-size: 24px;
    color: #1a1f3a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-landing-theme="gaming"] .brand-title {
    color: #1a1f3a;
}

.monster-icon-pixel {
    font-size: 28px;
}

/* Grid Layouts */
.showcase-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.showcase-grid-simple {
    grid-template-columns: repeat(3, 1fr);
}

/* Theme Picker & Start Button (Bottom Center) */
/* ============================================
   LANDING PAGE HEADER (Logo Only)
   ============================================ */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    margin-bottom: 40px;
}

.showcase-landing-page[data-landing-theme="gaming"] .landing-header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1f3a;
}

.showcase-landing-page[data-landing-theme="gaming"] .logo-text {
    color: #ffffff;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* Theme Picker & Start Button (Bottom Center) */
.landing-theme-picker-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}


.start-scaring-btn-inline {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.start-scaring-btn-inline:hover {
    background: #ff6666;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.start-scaring-btn-inline:active {
    transform: scale(0.95);
}


@keyframes playButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.8), 0 0 60px rgba(255, 68, 68, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
}

.start-scaring-btn-inline.animating {
    animation: playButtonPulse 1.2s ease;
}


/* Landing Page Exit Animation */
@keyframes landingPageExit {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.showcase-landing-page.exiting {
    animation: landingPageExit 0.4s ease forwards;
}

/* Particle Effect Container */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff4444;
    border-radius: 50%;
    opacity: 0;
    animation: particleExplode 1.5s ease forwards;
}

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* Template Selection Modal */
.template-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.template-modal.show {
    opacity: 1;
    pointer-events: all;
}

.template-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.showcase-landing-page[data-landing-theme="gaming"] .template-modal-content {
    background: #1a1f3a;
    color: white;
}

.template-modal.show .template-modal-content {
    transform: scale(1);
}

.template-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1f3a;
}

.showcase-landing-page[data-landing-theme="gaming"] .template-modal-title {
    color: white;
}

.template-modal-subtitle {
    font-size: 14px;
    color: rgba(26, 31, 58, 0.7);
    margin-bottom: 32px;
}

.showcase-landing-page[data-landing-theme="gaming"] .template-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.template-modal-btn {
    padding: 20px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.showcase-landing-page[data-landing-theme="gaming"] .template-modal-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.template-modal-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.showcase-landing-page[data-landing-theme="gaming"] .template-modal-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.template-modal-icon {
    font-size: 36px;
}

.template-modal-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1f3a;
}

.showcase-landing-page[data-landing-theme="gaming"] .template-modal-name {
    color: white;
}

/* Theme Button Styles */
.theme-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #1a1f3a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-btn.active {
    background: rgba(0, 0, 0, 0.1);
}

/* Base Card Styles */
.showcase-card {
    background: transparent;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-landing-theme="gaming"] .showcase-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.25);
}

[data-landing-theme="gaming"] .showcase-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f3a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-landing-theme="gaming"] .card-title {
    color: #1a1f3a;
}

/* Templates Card */
.templates-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f3a;
    margin: 0 0 8px 0;
}

[data-landing-theme="gaming"] .hero-card .templates-title {
    color: white;
}

[data-landing-theme="gaming"] .templates-title {
    color: #1a1f3a;
}

.templates-subtitle {
    font-size: 13px;
    color: rgba(26, 31, 58, 0.7);
    margin: 0 0 20px 0;
}

[data-landing-theme="gaming"] .hero-card .templates-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

[data-landing-theme="gaming"] .templates-subtitle {
    color: rgba(26, 31, 58, 0.7);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #1a1f3a;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-landing-theme="gaming"] .hero-card .template-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

[data-landing-theme="gaming"] .template-btn {
    background: rgba(26, 31, 58, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1f3a;
}

.template-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.25);
}

[data-landing-theme="gaming"] .hero-card .template-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

[data-landing-theme="gaming"] .template-btn:hover {
    background: rgba(106, 142, 235, 0.2);
    border-color: rgba(106, 142, 235, 0.3);
}

.template-btn.active {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

[data-landing-theme="gaming"] .hero-card .template-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-landing-theme="gaming"] .template-btn.active {
    background: rgba(106, 142, 235, 0.3);
    border-color: rgba(106, 142, 235, 0.5);
}

.template-icon {
    font-size: 32px;
}

.template-name {
    font-size: 14px;
    font-weight: 500;
}

.sparkle {
    font-size: 16px;
}

/* Hero Card */
.hero-card {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #1a1f3a;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-landing-theme="gaming"] .hero-card {
    background: linear-gradient(135deg, #4a90e2 0%, #6a8eeb 50%, #c3a6e6 100%);
    border: none;
    color: white;
}

.hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.monster-icon-large {
    font-size: 48px;
}

.hero-tagline {
    font-size: 16px;
    opacity: 0.95;
    margin: 8px 0 24px 0;
}

.hero-templates-section {
    margin: 32px 0 24px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

[data-landing-theme="easy"] .hero-templates-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-landing-theme="easy"] .hero-card .templates-title {
    color: #1a1f3a;
}

[data-landing-theme="easy"] .hero-card .templates-subtitle {
    color: rgba(26, 31, 58, 0.7);
}

[data-landing-theme="easy"] .hero-card .template-btn {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #1a1f3a;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.monster-face-icon {
    font-size: 48px;
}

.start-scaring-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.start-scaring-btn:hover {
    background: #ff6666;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 68, 68, 0.4);
}

/* Energy Card */
.energy-card {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #1a1f3a;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

[data-landing-theme="gaming"] .energy-card {
    background: linear-gradient(135deg, #90ee90 0%, #32cd32 100%);
    border: none;
    color: #1a1a2e;
}

.energy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.battery-icon {
    font-size: 20px;
}

.energy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.lightning-icon {
    font-size: 64px;
}

.energy-percentage {
    font-size: 48px;
    font-weight: 700;
}

.energy-status {
    font-size: 18px;
    font-weight: 600;
}

/* Team Card */
.team-card {
    background: white;
    color: #1a1a2e;
}

.monster-team-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.monster-team-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monster-icon {
    font-size: 32px;
}

.monster-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.monster-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.monster-level {
    font-size: 14px;
    color: #6b6b6b;
}

/* Dashboard Header Card */
.dashboard-header-card {
    background: white;
    color: #1a1a2e;
}

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

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.monster-icon-small {
    font-size: 24px;
}

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

.notification-bell {
    position: relative;
    font-size: 20px;
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.xp-display {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.happy-monster {
    font-size: 24px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    color: #1a1a2e;
}

/* Quest Card */
.quest-card {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #1a1f3a;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

[data-landing-theme="gaming"] .quest-card {
    background: linear-gradient(135deg, #ff9ec5 0%, #ff6b9d 100%);
    border: none;
    color: white;
}

.quest-header {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quest-progress {
    font-size: 64px;
    font-weight: 700;
    margin: 16px 0;
}

.quest-label {
    font-size: 18px;
    font-weight: 600;
}

/* Hunt Card */
.hunt-card {
    background: white;
    color: #1a1a2e;
}

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

.hunt-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-icon {
    font-size: 18px;
    cursor: pointer;
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: white;
    color: #1a1a2e;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hunt-date {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

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

.hunt-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.hunt-task-item.completed {
    opacity: 0.6;
}

.task-color-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
}

.task-monster-icon {
    font-size: 24px;
}

.task-text {
    flex: 1;
    font-size: 14px;
    color: #1a1a2e;
}

.task-time {
    font-size: 12px;
    color: #6b6b6b;
}

.task-status {
    font-size: 12px;
    color: #90ee90;
    font-weight: 600;
}

.task-xp {
    font-size: 12px;
    color: #4a90e2;
    font-weight: 600;
}

.task-xp.earned {
    text-decoration: line-through;
    color: #6b6b6b;
}

/* Notes Showcase Card */
.notes-showcase-card {
    background: #ffd93d;
    color: #1a1a2e;
}

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

.pencil-icon {
    font-size: 20px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.note-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.note-item p {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.note-time {
    font-size: 12px;
    color: #6b6b6b;
    white-space: nowrap;
}

.add-note-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-note-btn:hover {
    background: white;
}

/* Achievement Card */
.achievement-card {
    background: linear-gradient(135deg, #ff9ff3 0%, #ff6b9d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.achievement-content {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.achievement-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.achievement-desc {
    font-size: 16px;
    opacity: 0.95;
}

.trophy-icon-bg {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-size: 120px;
    opacity: 0.2;
    z-index: 1;
}

.next-level {
    position: relative;
    z-index: 2;
}

.next-level-label {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    opacity: 0.9;
}

/* Stats Card */
.stats-card {
    background: white;
    color: #1a1a2e;
}

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

.chart-icon {
    font-size: 20px;
}

.stats-subtitle {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

.stats-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

/* Scoped to showcase only */
.showcase-landing-page .toggle-btn {
    padding: 6px 16px;
    border: 1px solid #e5e5e5;
    background: white;
    color: #1a1a2e;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.showcase-landing-page .toggle-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.stats-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    margin-bottom: 24px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-monster {
    font-size: 20px;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, #4a90e2 0%, #6a8eeb 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.bar-label {
    font-size: 11px;
    color: #6b6b6b;
}

.stats-summary {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    font-size: 24px;
}

.stat-label {
    font-size: 12px;
    color: #6b6b6b;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Mobile Mockup Card */
.mobile-mockup-card {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a8eeb 0%, #4a90e2 100%);
    border-radius: 24px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.9;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.phone-xp {
    margin-left: auto;
    font-size: 16px;
}

.phone-quest-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.phone-quest-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.phone-quest-progress {
    font-size: 20px;
    font-weight: 700;
}

.phone-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-task {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* Projects Showcase Card */
.projects-showcase-card {
    background: white;
    color: #1a1a2e;
}

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

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

.project-item {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.project-monster {
    font-size: 32px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
}

.project-stats {
    font-size: 14px;
    opacity: 0.9;
}

/* Schedule Card - Scoped to showcase only */
.showcase-landing-page .schedule-card {
    background: white;
    color: #1a1a2e;
}

.showcase-landing-page .schedule-header {
    margin-bottom: 12px;
}

.showcase-landing-page .schedule-date {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

.showcase-landing-page .schedule-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

/* Scoped to showcase only - don't affect main app */
.showcase-landing-page .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.showcase-landing-page .calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
}

.showcase-landing-page .calendar-day.active {
    background: #c3a6e6;
    color: white;
}

.showcase-landing-page .day-monster {
    font-size: 20px;
    margin: 4px 0;
}

.showcase-landing-page .day-lines {
    font-size: 10px;
    opacity: 0.7;
}

/* Streak Card */
.streak-card {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #1a1f3a;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

[data-landing-theme="gaming"] .streak-card {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
    border: none;
    color: #1a1a2e;
}

.streak-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}

.streak-number {
    font-size: 48px;
    font-weight: 700;
}

.streak-flame {
    position: absolute;
    top: -10px;
    font-size: 32px;
}

.streak-label {
    font-size: 18px;
    font-weight: 600;
}

/* Trophy Card */
.trophy-card {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
    color: #1a1a2e;
    text-align: center;
}

.trophy-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.trophy-icon {
    font-size: 32px;
}

.trophy-text {
    font-size: 14px;
    color: #1a1a2e;
    opacity: 0.8;
    margin: 0;
}

/* Small Brand Card */
.small-brand-card {
    background: white;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.small-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.small-brand-text > div:first-child {
    font-size: 18px;
    font-weight: 700;
}

.small-tagline {
    font-size: 12px;
    color: #6b6b6b;
}

/* Color System Card */
.color-system-card {
    background: white;
    color: #1a1a2e;
}

.color-swatches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-swatch {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
}

.swatch-monster,
.swatch-icon {
    font-size: 24px;
}

.swatch-label {
    font-size: 16px;
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, #4a90e2 0%, #6a8eeb 50%, #c3a6e6 100%);
    color: white;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-mark {
    font-size: 64px;
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
}

.quote-text {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 2;
    padding-left: 40px;
}

.quote-author {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
    padding-left: 40px;
}

/* Download Card */
.download-card {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #1a1f3a;
    text-align: center;
}

[data-landing-theme="gaming"] .download-card {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border: none;
    color: white;
}

.download-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    opacity: 0.9;
    color: #1a1f3a;
}

[data-landing-theme="gaming"] .download-title {
    color: white;
}

.download-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1f3a;
}

[data-landing-theme="gaming"] .download-heading {
    color: white;
}

.download-text {
    font-size: 16px;
    opacity: 0.95;
    margin: 0 0 24px 0;
    line-height: 1.5;
    color: #1a1f3a;
}

[data-landing-theme="gaming"] .download-text {
    color: white;
}

.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   LANDING PAGE FOOTER
   ============================================ */
.landing-footer {
    margin-top: 80px;
    padding: 60px 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.showcase-landing-page[data-landing-theme="gaming"] .landing-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-main {
    max-width: 300px;
}

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

.footer-logo .logo-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1f3a;
}

.showcase-landing-page[data-landing-theme="gaming"] .footer-logo .logo-text {
    color: #ffffff;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 16px;
}

.showcase-landing-page[data-landing-theme="gaming"] .footer-section h4 {
    color: #ffffff;
}

.footer-section p {
    font-size: 14px;
    color: rgba(26, 31, 58, 0.7);
    line-height: 1.6;
}

.showcase-landing-page[data-landing-theme="gaming"] .footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a,
.footer-link {
    font-size: 14px;
    color: rgba(26, 31, 58, 0.7);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.footer-section ul li a:hover,
.footer-link:hover {
    color: #1a1f3a;
}

.showcase-landing-page[data-landing-theme="gaming"] .footer-section ul li a,
.showcase-landing-page[data-landing-theme="gaming"] .footer-link {
    color: rgba(255, 255, 255, 0.7);
}

.showcase-landing-page[data-landing-theme="gaming"] .footer-section ul li a:hover,
.showcase-landing-page[data-landing-theme="gaming"] .footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(26, 31, 58, 0.6);
    margin: 0;
}

.showcase-landing-page[data-landing-theme="gaming"] .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .landing-footer {
        padding: 32px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-section {
        text-align: left;
    }
}

.app-store-btn {
    padding: 12px 24px;
    background: white;
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-store-coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.coming-soon-badge {
    font-size: 10px;
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.btn-text {
    display: inline-block;
}

.google-play-btn {
    padding: 12px 24px;
    background: white;
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.app-store-btn:hover:not(.app-store-coming-soon),
.google-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.apple-icon,
.google-icon {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .showcase-landing-page {
        padding: 20px 12px;
    }
    
    .showcase-grid,
    .showcase-grid-simple {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .monster-icon-large {
        font-size: 36px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .app-store-btn,
    .google-play-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile theme picker - ensure text is centered */
    .landing-theme-picker-bottom {
        width: calc(100% - 32px);
        max-width: 400px;
        padding: 4px;
        gap: 4px;
        bottom: 16px;
    }
    
    .theme-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
        text-align: center;
        min-height: 36px;
    }
    
    .start-scaring-btn-inline {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        font-size: 13px;
        text-align: center;
        min-height: 36px;
        margin-left: 0;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .showcase-landing-page {
        padding: 16px 8px;
    }
    
    .showcase-card {
        padding: 16px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .monster-icon-large {
        font-size: 32px;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
}

/* Original landing page styles continue below */
@media (max-width: 360px) {
    .landing-content {
        padding: 20px 12px 28px;
    }
    
    .logo-monsters {
        font-size: 40px;
    }
    
    .logo-daily {
        font-size: 20px;
    }
    
    .landing-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .landing-button-wrapper {
        margin-bottom: 32px;
    }
    
    .landing-enter-btn {
        padding: 12px 32px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .feature-item {
        padding: 16px 12px;
        gap: 12px;
    }
    
    .feature-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-text {
        font-size: 13px;
    }
}

.main-app {
    padding: 20px;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.main-app.entering {
    opacity: 1;
}

@media (max-width: 768px) {
    .main-app {
        padding: 12px;
    }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
    background: transparent;
    transition: all 0.3s ease;
}

/* Navbar with blurred background when scrolled (light mode only) */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

@media (max-width: 768px) {
    .navbar {
        margin-bottom: 0;
    }
    
    .container {
        margin-top: 0;
    }
}

[data-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="monster"] .navbar {
    background: rgba(240, 244, 248, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="hard"] .navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="hard"] .navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Profile action buttons (layout and theme) */
.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
}

.profile-action-btn:hover {
    background: var(--accent-light);
    border-color: var(--text-primary);
}

.profile-action-btn.toggle-btn {
    position: relative;
    padding: 6px 10px;
    min-width: 44px;
    background: var(--accent-light);
    border: 1px solid var(--border-color);
}

.profile-action-btn.toggle-btn:hover {
    background: var(--accent-medium);
    border-color: var(--text-primary);
}

.profile-action-btn.toggle-btn.active {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
}

.profile-action-btn .btn-icon {
    font-size: 16px;
}

.profile-action-btn .layout-indicator {
    font-size: 13px;
    font-weight: 500;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    min-height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Centered Navigation Links */
.nav-links-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}



/* Action buttons on the right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

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

[data-theme="monster"] .nav-action-btn:hover {
    background: rgba(106, 142, 235, 0.15);
}

.nav-action-btn .btn-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-action-btn .layout-indicator {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Nav Divider */
.nav-divider {
    width: 100%;
    height: 1px;
    background: #e8e6e3;
    margin: 0 auto;
    max-width: 1400px;
}

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

/* Monsters Inc. Logo in Navbar */
.monsters-logo-small {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-monsters-small {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-transform: uppercase;
    position: relative;
    line-height: 1;
}

.logo-o-small {
    position: relative;
    display: inline-block;
}

.logo-o-small::after {
    content: '';
    position: absolute;
    top: 0.12em;
    right: 0.08em;
    width: 0.25em;
    height: 0.25em;
    background: var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0.05em var(--text-primary);
    pointer-events: none;
}

.logo-daily-small {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1;
}

.brand-text {
    display: none;
    gap: 2px;
    position: absolute;
    left: 32px;
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-brand {
    background: rgba(26, 26, 26, 0.85);
}

.brand-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d 0%, #a855f7 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1.2;
}

.brand-text:hover {
    transform: scale(1.02);
}

.brand-tagline {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
    text-transform: lowercase;
    line-height: 1.2;
    opacity: 0.8;
}

.nav-pill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-pill {
    background: rgba(255, 255, 255, 0.08);
}

.nav-pill-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 4px;
}

[data-theme="dark"] .nav-pill-divider {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

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

.nav-link-icon .btn-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-indicator {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
}

.nav-right {
    display: none;
}

/* Mobile Add Card Block */
.mobile-add-card-block {
    display: none;
}

.nav-link {
    display: inline-block;
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    background: transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    opacity: 0.7;
    background: transparent;
}

[data-theme="dark"] .nav-link:hover {
    background: transparent;
}

[data-theme="monster"] .nav-link:hover {
    background: transparent;
}

.nav-link.active {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="dark"] .nav-link.active {
    background: rgba(88, 166, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="monster"] .nav-link.active {
    background: rgba(106, 142, 235, 0.15);
    color: #6a8eeb;
    font-weight: 500;
}

[data-theme="hard"] .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 500;
}

.nav-link-simple {
    background: none;
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.nav-link-simple:hover {
    opacity: 0.7;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

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

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Horizontal Scrollable Nav */
.nav-mobile-scroll {
    display: none;
}

.layout-dropdown,
.add-card-dropdown {
    position: relative;
    z-index: 10002;
}

.layout-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

[data-theme="dark"] .layout-menu {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.layout-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.layout-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.layout-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--text-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.layout-option:hover {
    background: var(--accent-light);
    color: var(--text-primary);
    padding-left: 20px;
}

.layout-option:hover::before {
    transform: scaleY(1);
}

.layout-option.active {
    background: var(--accent-light);
    font-weight: 600;
    padding-left: 20px;
}

.layout-option.active::before {
    transform: scaleY(1);
}

.layout-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.layout-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.add-card-dropdown {
    position: relative;
    z-index: 10002;
}

.add-card-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    z-index: 10001;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

[data-theme="dark"] .add-card-menu {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.add-card-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.add-card-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.add-card-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--text-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.add-card-option:hover {
    background: var(--accent-light);
    color: var(--text-primary);
    padding-left: 20px;
}

.add-card-option:hover::before {
    transform: scaleY(1);
}

.add-card-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.add-card-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.add-card-option.card-exists {
    opacity: 0.7;
}

.add-card-option.card-exists:hover {
    opacity: 1;
    background: var(--accent-light);
}

/* Main Container */
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.container.layout-1 {
    grid-template-columns: 1fr;
}

.container.layout-2 {
    grid-template-columns: repeat(2, 1fr);
}

.container.layout-3 {
    grid-template-columns: repeat(3, 1fr);
}

.container.layout-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    /* All cards should have the same height */
    height: 400px;
    position: relative;
    overflow-y: auto;
    /* Force scrollbar to be visible on Webkit browsers */
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
}

/* Ensure card content takes available space */
.card > h3 {
    flex-shrink: 0;
    margin-bottom: 16px;
}

/* Allow content to grow but don't force it */
.card > *:not(h3):not(style) {
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .card {
        min-height: auto;
        max-height: none;
    }
}

/* Custom scrollbar styling - Webkit browsers (Chrome, Safari, Edge) */
.card::-webkit-scrollbar,
.task-list::-webkit-scrollbar,
.event-list::-webkit-scrollbar,
.habits-list::-webkit-scrollbar,
.reminder-list::-webkit-scrollbar,
.focus-subtasks-list::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.card::-webkit-scrollbar-track,
.task-list::-webkit-scrollbar-track,
.event-list::-webkit-scrollbar-track,
.habits-list::-webkit-scrollbar-track,
.reminder-list::-webkit-scrollbar-track,
.focus-subtasks-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.card::-webkit-scrollbar-thumb,
.task-list::-webkit-scrollbar-thumb,
.event-list::-webkit-scrollbar-thumb,
.habits-list::-webkit-scrollbar-thumb,
.reminder-list::-webkit-scrollbar-thumb,
.focus-subtasks-list::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 6px;
    border: 2px solid var(--bg-color);
    min-height: 30px;
}

.card::-webkit-scrollbar-thumb:hover,
.task-list::-webkit-scrollbar-thumb:hover,
.event-list::-webkit-scrollbar-thumb:hover,
.habits-list::-webkit-scrollbar-thumb:hover,
.reminder-list::-webkit-scrollbar-thumb:hover,
.focus-subtasks-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

/* Always show scrollbar when content overflows */
.card::-webkit-scrollbar-corner {
    background: var(--bg-color);
}

/* Firefox scrollbar */
.card,
.task-list,
.event-list,
.habits-list,
.reminder-list,
.focus-subtasks-list {
    scrollbar-width: auto;
    scrollbar-color: var(--text-secondary) var(--bg-color);
}

.card-delete-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0;
    line-height: 1;
}

.card:hover .card-delete-btn {
    display: flex;
}

.card-delete-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: scale(1.1);
}

.card[data-removable="false"] .card-delete-btn {
    display: none !important;
}

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

[data-theme="dark"] .card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--border-medium);
}

[data-theme="monster"] .card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 142, 235, 0.15);
}

[data-theme="monster"] .card:hover {
    box-shadow: 0 4px 20px rgba(106, 142, 235, 0.15), 0 0 0 1px rgba(106, 142, 235, 0.1);
    border-color: rgba(106, 142, 235, 0.3);
    transform: translateY(-2px);
}

/* Hard Mode - Colorful Cards */
[data-theme="hard"] .card {
    background: linear-gradient(135deg, #4a90e2 0%, #6a8eeb 50%, #c3a6e6 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="hard"] .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Different colorful gradients for different card types in Hard Mode */
[data-theme="hard"] .tasks-card {
    background: linear-gradient(135deg, #4a90e2 0%, #6a8eeb 50%, #c3a6e6 100%);
}

[data-theme="hard"] .projects-card {
    background: linear-gradient(135deg, #6a8eeb 0%, #c3a6e6 50%, #ff9ec5 100%);
}

[data-theme="hard"] .progress-card {
    background: linear-gradient(135deg, #90ee90 0%, #32cd32 100%);
    color: #1a1a2e;
}

[data-theme="hard"] .progress-card .progress-percentage,
[data-theme="hard"] .progress-card .progress-label,
[data-theme="hard"] .progress-card .stat-number,
[data-theme="hard"] .progress-card .stat-label {
    color: #1a1a2e;
}

[data-theme="hard"] .notes-card {
    background: linear-gradient(135deg, #ff9ec5 0%, #ff6b9d 100%);
}

[data-theme="hard"] .calendar-card {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

[data-theme="hard"] .profile-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3560 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="hard"] .events-card {
    background: linear-gradient(135deg, #c3a6e6 0%, #9d7dd9 100%);
}

[data-theme="hard"] .habits-card {
    background: linear-gradient(135deg, #90ee90 0%, #7ec87e 100%);
    color: #1a1a2e;
}

[data-theme="hard"] .habits-card h3,
[data-theme="hard"] .habits-card .habit-item {
    color: #1a1a2e;
}

[data-theme="hard"] .reminders-card {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
}

.profile-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    gap: 8px;
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.profile-toggles-section {
    margin-bottom: 0;
}

.profile-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-controls {
    margin-top: 0;
    padding-top: 0;
}

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

.card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: fit-content;
}

.card-tag:hover {
    background: var(--accent-medium);
    border-color: var(--text-primary);
}

.card-tag.active {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
    font-weight: 500;
}

.card-tag.active::after {
    content: '✓';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.profile-icon-selector {
    position: relative;
}

.selected-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
}

.selected-icon:hover {
    transform: scale(1.1);
    border-color: var(--border-medium);
}

.icon-options {
    position: absolute;
    top: 70px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-medium);
    z-index: 100;
    min-width: 200px;
}

.icon-option {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.icon-option:hover {
    background: var(--text-primary);
    transform: scale(1.1);
    border-color: var(--text-primary);
}

.login-btn {
    padding: 8px 20px;
    background: var(--text-primary);
    color: var(--card-bg);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    opacity: 0.9;
}

.history-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-quote {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quote-input {
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    line-height: 1.5;
}

.quote-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.quote-input::placeholder {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Tasks Container (for Active/Completed mode) */
.task-blocks-container {
    display: none; /* Hidden by default, shown in Active/Completed mode via JavaScript */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

/* Tasks Card (for All mode) */
.tasks-card {
    background: var(--card-bg);
}

.task-blocks-container.task-cards-mode {
    display: grid;
}

.task-blocks-container.task-list-mode {
    display: block;
}

.task-blocks-container.layout-1 {
    grid-template-columns: 1fr;
}

.task-blocks-container.layout-2 {
    grid-template-columns: repeat(2, 1fr);
}

.task-blocks-container.layout-3 {
    grid-template-columns: repeat(3, 1fr);
}

.task-blocks-container.layout-4 {
    grid-template-columns: repeat(4, 1fr);
}

.task-list {
    margin-bottom: 16px;
    /* Remove overflow-y: auto to prevent double scrollbars when inside .card */
    /* max-height: 400px; */
    /* overflow-y: auto; */
}

/* Completed Tasks Section */
.completed-tasks-section {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.completed-tasks-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.completed-tasks-toggle:hover {
    color: var(--text-primary);
}

.completed-tasks-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.completed-tasks-list-collapsed {
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.completed-tasks-list-collapsed .task-item {
    opacity: 0.7;
}

.completed-tasks-list-collapsed .task-item:hover {
    opacity: 1;
}

/* Task block card styles */
.task-block-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.task-block-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.task-block-card.focusing {
    border: 2px solid var(--text-primary);
    background: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.task-block-card.task-overdue {
    opacity: 0.6;
}

.task-block-card.task-overdue:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.overdue-badge {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.task-overdue-indicator {
    margin-top: 8px;
    font-size: 12px;
    color: rgb(239, 68, 68);
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-block-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.task-block-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
}

.task-block-text.editable-task-name {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.task-block-text.editable-task-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.project-card-content {
    position: relative;
}

.project-card-clickable {
    cursor: pointer;
}

.task-priority-badge.editable-priority {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.task-priority-badge.editable-priority:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.task-name-edit-input {
    outline: none;
}

.task-name-edit-input:focus {
    outline: none;
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.task-priority-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.task-priority-badge.priority-high {
    background: var(--text-primary);
    color: var(--card-bg);
}

.task-priority-badge.priority-medium {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.task-priority-badge.priority-low {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-tertiary);
}

.task-timer-display {
    margin: 12px 0;
    text-align: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
}

.timer-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
}

.task-focus-time {
    margin: 8px 0;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 6px;
}

.task-completed-badge {
    margin-top: auto;
    padding: 12px;
    text-align: center;
    background: var(--text-primary);
    color: var(--card-bg);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

.completed-task-summary {
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.task-block-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: wrap;
}

.focus-btn,
.done-btn,
.uncomplete-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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


[data-theme="monster"] .focus-btn:hover,
[data-theme="monster"] .done-btn:hover {
    background: linear-gradient(135deg, #6a8eeb 0%, #7ec8e3 100%);
    color: #ffffff;
    border-color: #6a8eeb;
    box-shadow: 0 2px 12px rgba(106, 142, 235, 0.25);
    transform: translateY(-1px);
}

.focus-btn:active,
.done-btn:active {
    transform: scale(0.98);
}

.task-block-card.focusing .focus-btn {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
}

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

.uncomplete-btn {
    background: var(--accent-light);
    border-color: var(--border-medium);
}

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

.delete-task-card-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0;
    line-height: 1;
}

.task-block-card:hover .delete-task-card-btn {
    display: flex;
}

.delete-task-card-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Hide Task Button */
.hide-task-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    white-space: nowrap;
}

.task-block-card:hover .hide-task-btn {
    display: flex;
}

.hide-task-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Delete Task Button in Task Cards */
.task-block-card .delete-task-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    white-space: nowrap;
}

.task-block-card:hover .delete-task-btn {
    display: flex;
}

.task-block-card .delete-task-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Hidden Tasks Section */

.unhide-task-btn:hover {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
}

/* Other Date Tasks Section */
.other-date-tasks-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.other-date-tasks-toggle:hover {
    color: var(--text-primary);
}

.task-other-date {
    opacity: 0.85;
}

.move-to-today-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.move-to-today-btn:hover {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
}

/* Notes Card Styles - Memo Paper Style */
.task-block-card.notes-card-style.memo-paper {
    background: #fff9c4;
    border: none;
    border-left: 4px solid #fdd835;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 120px;
    cursor: text;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.task-block-card.notes-card-style.memo-paper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.memo-input-paper {
    opacity: 0.8;
    transition: opacity 0.2s ease;
    border-left: none !important;
}

.memo-input-paper:focus-within {
    opacity: 1;
}

[data-theme="dark"] .memo-input-paper {
    background: var(--card-bg);
    border-left: none !important;
}

.memo-input-paper .memo-text {
    cursor: default;
}

.memo-content {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.memo-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
    white-space: pre-wrap;
    min-height: 60px;
    padding: 0;
    cursor: text;
    flex: 1;
}

.memo-text:hover {
    opacity: 0.9;
}

.memo-input-text {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    resize: none;
    outline: none;
    font-family: inherit;
    padding: 0;
    min-height: 60px;
}

.memo-input-text::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.memo-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    padding-bottom: 48px; /* Space for save button */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Dark Mode Styles for Sticky Notes */
[data-theme="dark"] .task-block-card.notes-card-style.memo-paper {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    /* border-left will be set dynamically in JavaScript based on note color */
}

[data-theme="dark"] .task-block-card.notes-card-style.memo-paper:hover {
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .memo-text {
    color: var(--text-primary);
}

[data-theme="dark"] .memo-input-text {
    color: var(--text-primary);
}

[data-theme="dark"] .memo-input-text::placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] .memo-input-footer {
    border-top: 1px solid var(--border-light);
}

.memo-color-selector {
    display: flex;
    gap: 6px;
    align-items: center;
    transition: opacity 0.2s ease;
}

.memo-color-selector-in-all {
    display: flex;
    gap: 8px;
    align-items: center;
}

.memo-color-selector-hidden {
    opacity: 0;
    pointer-events: none;
}

.memo-paper:hover .memo-color-selector-hidden {
    opacity: 1;
    pointer-events: auto;
}

.color-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

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

.color-option.selected {
    border-color: #4a90e2;
    transform: scale(1.1);
}

[data-theme="dark"] .color-option.selected {
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.3);
}

.memo-save-btn {
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.2s ease;
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.memo-save-btn-active {
    background: #000000;
    color: white;
    cursor: pointer;
}

.memo-save-btn-active:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

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

[data-theme="dark"] .memo-save-btn {
    background: var(--accent-light);
    color: var(--text-tertiary);
}

[data-theme="dark"] .memo-save-btn-active {
    background: #238636;
    color: white;
}

[data-theme="dark"] .memo-save-btn-active:hover {
    background: #2ea043;
}

.memo-delete-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0;
    line-height: 1;
}

.memo-paper:hover .memo-delete-btn {
    display: flex;
}

.memo-delete-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Project Card Styles */
.project-card {
    border-left: 4px solid #4a90e2;
}

.project-progress-section {
    margin: 16px 0;
}

.project-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--accent-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.project-progress-fill {
    height: 100%;
    background-color: #4a90e2;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.project-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
}

.project-stat-item {
    display: flex;
    align-items: center;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.add-today-task-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.add-today-task-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.view-project-detail-btn {
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-project-detail-btn:hover {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
}

.project-progress-card {
    border-left: 4px solid #4a90e2;
}

.project-progress-percent {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-timeline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.daily-progress-day {
    margin-bottom: 12px;
    padding: 8px;
    background: var(--accent-light);
    border-radius: 6px;
}

.daily-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.daily-tasks-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.daily-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.daily-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.no-progress {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 14px;
}

.project-detail-day {
    margin-bottom: 24px;
}

.project-detail-date {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-detail-stats {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.project-detail-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* History Styles */
.history-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.history-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.projects-timeline {
    margin-top: 40px;
}

.project-timeline-item {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--accent-light);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.project-day-dot {
    cursor: pointer;
    transition: transform 0.1s ease;
}

.project-day-dot:hover {
    transform: scale(1.3);
    outline: 1px solid var(--text-primary);
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0;
    cursor: pointer;
    accent-color: var(--text-primary);
    flex-shrink: 0;
}

.task-item label {
    flex: 1;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 15px;
}

.task-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.6;
}

[data-theme="monster"] .task-item {
    border-radius: 8px;
    padding: 12px 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

[data-theme="monster"] .task-item:hover {
    background: rgba(106, 142, 235, 0.05);
}

.delete-task-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

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

.add-task-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    grid-column: 1 / -1;
}

.add-task-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--accent-light);
}

/* Add Task Card (same size and shape as task cards) */
.add-task-card {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 2px dashed var(--border-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .add-task-card {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="monster"] .add-task-card {
    background: rgba(106, 142, 235, 0.05) !important;
    border-color: rgba(106, 142, 235, 0.2) !important;
    border-style: dashed !important;
}

[data-theme="monster"] .add-task-card:hover {
    background: rgba(106, 142, 235, 0.1) !important;
    border-color: rgba(106, 142, 235, 0.4) !important;
    box-shadow: 0 2px 12px rgba(106, 142, 235, 0.15) !important;
}

.add-task-card:hover {
    border-color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .add-task-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.add-task-card-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-task-card:hover .add-task-card-btn {
    color: var(--text-primary);
}

.add-task-card-btn .btn-icon {
    font-size: 20px;
}

.add-task-card-btn .btn-text {
    font-size: 16px;
}

/* Add Card Card (similar to Add Task Card) */
.add-card-card {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 2px dashed var(--border-color) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-card-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.add-card-card .add-card-dropdown {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-card-card .add-card-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
}

[data-theme="dark"] .add-card-card {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="monster"] .add-card-card {
    background: rgba(106, 142, 235, 0.05) !important;
    border-color: rgba(106, 142, 235, 0.2) !important;
    border-style: dashed !important;
}

[data-theme="monster"] .add-card-card:hover {
    background: rgba(106, 142, 235, 0.1) !important;
    border-color: rgba(106, 142, 235, 0.4) !important;
    box-shadow: 0 2px 12px rgba(106, 142, 235, 0.15) !important;
}

[data-theme="hard"] .add-card-card {
    background: rgba(106, 142, 235, 0.1) !important;
    border-color: rgba(106, 142, 235, 0.3) !important;
    border-style: dashed !important;
}

[data-theme="hard"] .add-card-card:hover {
    background: rgba(106, 142, 235, 0.2) !important;
    border-color: rgba(106, 142, 235, 0.5) !important;
    box-shadow: 0 4px 16px rgba(106, 142, 235, 0.3) !important;
}

[data-theme="hard"] .nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="hard"] .nav-divider {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="hard"] .nav-link:hover {
    color: #ffffff;
    opacity: 0.8;
}

[data-theme="hard"] .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="hard"] .nav-link-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="hard"] .nav-pill {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="hard"] .nav-pill-divider {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="hard"] .nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.add-card-card:hover {
    border-color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .add-card-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.add-card-card-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.add-card-card:hover .add-card-card-btn {
    color: var(--text-primary);
}

.add-card-card-btn .btn-icon {
    font-size: 20px;
}

.add-card-card-btn .btn-text {
    font-size: 16px;
}

.add-event-btn,
.add-reminder-btn,
.add-habit-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.add-event-btn:hover,
.add-reminder-btn:hover,
.add-habit-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--accent-light);
}

/* Calendar Card */
.calendar-card {
    background: var(--card-bg);
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.calendar-weekend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 40%;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-nav-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

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

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

.calendar-day {
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-day:hover {
    background: var(--card-bg);
    transform: scale(1.05);
}

.calendar-day.active {
    background: var(--text-primary);
    color: var(--card-bg);
}

.calendar-day.today {
    border: 2px solid var(--text-primary);
    box-sizing: border-box;
}

.day-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.calendar-day.active .day-name {
    color: var(--card-bg);
}

.day-number {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-events {
    font-size: 10px;
    color: var(--text-secondary);
}

.calendar-day.active .day-events {
    color: var(--card-bg);
}

.task-indicators-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin: 4px auto 0;
    flex-wrap: wrap;
    max-width: 100%;
}

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

/* Timetable View */
.timetable-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px 56px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin: 0 48px;
}

.timetable-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.timetable-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 32px;
}

.timetable-slot {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    min-height: 60px;
}

.timetable-slot:hover {
    background: var(--accent-light) !important;
}

.timetable-slot:not(.has-items) {
    background: transparent;
}

.timetable-slot.has-items {
    background: var(--accent-light);
}

/* Duration hours - subtle indication that an item spans through this hour */
.timetable-slot.duration-hour {
    background: var(--accent-light);
    opacity: 0.5;
    position: relative;
}

.timetable-slot.duration-hour::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--text-primary);
    opacity: 0.3;
    border-radius: 0 2px 2px 0;
}

/* Hours where items start - more prominent */
.timetable-slot.has-starting-items {
    opacity: 1;
    background: var(--accent-light);
}

.timetable-slot.current-hour {
    position: relative;
}

.timetable-current-line {
    position: absolute;
    left: -88px; /* Extend to container border (56px container padding + 32px grid padding) */
    right: -32px; /* Extend to grid padding edge */
    top: 0;
    display: flex;
    align-items: center;
    height: 2px;
    z-index: 10;
    pointer-events: none;
}

.timetable-current-dot {
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 88px; /* Position at container border */
}

.timetable-current-dash-line {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        var(--text-primary) 0,
        var(--text-primary) 4px,
        transparent 4px,
        transparent 8px
    );
    margin-right: 8px;
    min-width: 200px; /* Ensure minimum length */
}

.timetable-current-time {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.timetable-time {
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 4px;
}

.timetable-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.timetable-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.timetable-event:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.timetable-event-time {
    min-width: 70px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.timetable-event-details {
    flex: 1;
}

.timetable-event-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timetable-event-location {
    font-size: 13px;
    color: var(--text-secondary);
}

.timetable-event-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.timetable-event-delete:hover,
.timetable-item-delete:hover {
    background: var(--accent-light);
    color: var(--text-primary);
}

.timetable-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--text-primary);
    transition: all 0.2s ease;
}

.timetable-task:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.timetable-task-time {
    min-width: 70px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.timetable-task-details {
    flex: 1;
}

.timetable-task-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timetable-task-completed {
    opacity: 0.6;
}

.timetable-task-completed .timetable-task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.timetable-task-project {
    font-size: 12px;
    color: var(--text-secondary);
}

.timetable-item-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.add-event-timetable-btn:hover,
.add-task-timetable-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Progress Card */
.progress-card {
    background: var(--card-bg);
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    max-width: 100%;
    overflow: visible;
}

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

.progress-ring-circle {
    stroke: var(--text-primary);
    stroke-dasharray: 314;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Notes Card */
.notes-card {
    background: var(--card-bg);
}

.notes-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.notes-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.save-notes-btn {
    width: 100%;
    padding: 10px;
    background: var(--text-primary);
    color: var(--card-bg);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-notes-btn:hover {
    background: var(--accent-dark);
    opacity: 0.9;
}

[data-theme="monster"] .save-notes-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #6A8EEB 50%, #7EC8E3 100%);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
    animation: gradientShift 3s ease infinite;
}

[data-theme="monster"] .save-notes-btn:hover {
    background: linear-gradient(135deg, #6A8EEB 0%, #7EC8E3 50%, #4A90E2 100%);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

/* Monster theme for inline styled buttons */
[data-theme="monster"] .add-task-btn-header,
[data-theme="monster"] .add-project-btn-in-all {
    background: linear-gradient(135deg, #4A90E2 0%, #6A8EEB 50%, #7EC8E3 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25) !important;
    animation: gradientShift 3s ease infinite !important;
}

[data-theme="monster"] .add-task-btn-header:hover,
[data-theme="monster"] .add-project-btn-in-all:hover {
    background: linear-gradient(135deg, #6A8EEB 0%, #7EC8E3 50%, #4A90E2 100%) !important;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Events Card */
.events-card {
    background: var(--card-bg);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Remove max-height and overflow-y to avoid double scrollbar with .card */
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    align-items: center;
    margin-bottom: 8px;
}

.event-item:hover {
    background: var(--card-bg);
    transform: translateX(4px);
}

[data-theme="monster"] .event-item {
    background: rgba(106, 142, 235, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(106, 142, 235, 0.1);
}

[data-theme="monster"] .event-item:hover {
    background: rgba(106, 142, 235, 0.1);
    border-color: rgba(106, 142, 235, 0.2);
    box-shadow: 0 2px 8px rgba(106, 142, 235, 0.15);
}

.delete-event-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.delete-event-btn:hover {
    color: var(--text-primary);
}

.event-time {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 60px;
    font-size: 14px;
}

.event-details {
    flex: 1;
}

.event-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-location {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Dark Mode Card */
.dark-mode-card {
    background: var(--card-bg);
}

.theme-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-label {
    font-size: 15px;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
}

.toggle-slider .toggle-icon {
    font-size: 18px;
    transition: 0.3s;
}

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

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

/* Habits Card */
.habits-card {
    background: var(--card-bg);
}

.habits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Remove max-height and overflow-y to avoid double scrollbar with .card */
}

.habit-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.habit-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.habit-checkboxes {
    display: flex;
    gap: 6px;
}

.habit-checkboxes input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--text-primary);
    transition: all 0.2s ease;
}

.habit-checkboxes input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Reminders Card */
.reminders-card {
    background: var(--card-bg);
}

.reminder-list {
    margin-bottom: 16px;
    /* Remove max-height and overflow-y to avoid double scrollbar with .card */
}

.reminder-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 8px;
    align-items: center;
}

[data-theme="monster"] .reminder-item {
    background: rgba(106, 142, 235, 0.05);
    border: 1px solid rgba(106, 142, 235, 0.1);
    border-radius: 12px;
}

[data-theme="monster"] .reminder-item:hover {
    background: rgba(106, 142, 235, 0.1);
    border-color: rgba(106, 142, 235, 0.2);
    box-shadow: 0 2px 8px rgba(106, 142, 235, 0.15);
}

[data-theme="monster"] .habit-item {
    padding: 12px;
    background: rgba(106, 142, 235, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(106, 142, 235, 0.08);
}

[data-theme="monster"] .habit-item:hover {
    background: rgba(106, 142, 235, 0.08);
    border-color: rgba(106, 142, 235, 0.15);
}

.delete-reminder-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.delete-reminder-btn:hover {
    color: var(--text-primary);
}

.reminder-icon {
    font-size: 20px;
}

.reminder-content {
    flex: 1;
}

.reminder-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.reminder-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.delete-habit-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    padding: 0 8px;
    transition: color 0.2s ease;
}

.delete-habit-btn:hover {
    color: var(--text-primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

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

.modal-content h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.modal-content input[type="time"],
.modal-content input[type="datetime-local"] {
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--card-bg);
}

[data-theme="monster"] .btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #6A8EEB 50%, #7EC8E3 100%);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
    animation: gradientShift 3s ease infinite;
}

[data-theme="monster"] .btn-primary:hover {
    background: linear-gradient(135deg, #6A8EEB 0%, #7EC8E3 50%, #4A90E2 100%);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

/* Hard Mode - Colorful Buttons */
[data-theme="hard"] .btn-primary {
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

[data-theme="hard"] .btn-primary:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
    transform: translateY(-1px);
}

[data-theme="hard"] .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="hard"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.9;
}

/* Focus Mode Overlay */
.focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.focus-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}

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

.close-focus-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-focus-btn:hover {
    background: var(--accent-light);
    color: var(--text-primary);
}

/* Focus task container - content is dynamically generated */

.focus-task-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.focus-timer-display {
    text-align: center;
    margin: 40px 0;
}

.focus-timer-text {
    font-size: 72px;
    font-weight: 300;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 4px;
}

.focus-task-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.focus-btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 12px;
    border: 2px solid var(--text-primary);
    background: var(--text-primary);
    color: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.focus-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.focus-btn-large.secondary {
    background: transparent;
    color: var(--text-primary);
}

.focus-subtasks-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
}

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

.focus-subtasks-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.add-subtask-btn {
    padding: 8px 16px;
    background: var(--accent-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.add-subtask-btn:hover {
    background: var(--text-primary);
    color: var(--card-bg);
}

.focus-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.focus-subtask-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.focus-subtask-item:hover {
    background: var(--accent-light);
}

.focus-subtask-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--text-primary);
}

.focus-subtask-text {
    flex: 1;
    font-size: 16px;
    color: var(--text-primary);
}

.focus-subtask-text.editable-subtask-name {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.focus-subtask-text.editable-subtask-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.focus-subtask-item.completed .focus-subtask-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.delete-subtask-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.delete-subtask-btn:hover {
    color: var(--text-primary);
}

/* Sub-task indicator in regular task cards */
.subtasks-indicator {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.subtasks-count {
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Responsive Design */

/* Tablet and below */
/* Tablet and medium screens */
@media (max-width: 1024px) {
    .container {
        gap: 16px;
        padding: 0 10px;
    }
    
    .container.layout-3,
    .container.layout-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-blocks-container.layout-3,
    .task-blocks-container.layout-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landing-content {
        padding: 32px 24px;
    }
    
    .logo-monsters {
        font-size: 72px;
    }
    
    .logo-daily {
        font-size: 36px;
    }
    
    .landing-features {
        gap: 24px;
    }
    
    .nav-container {
        padding: 16px 24px;
    }
}

/* Small tablets */
@media (max-width: 900px) and (min-width: 769px) {
    .container.layout-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-blocks-container.layout-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    .navbar {
        margin-bottom: 12px;
    }
    
    .nav-container {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 14px 16px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-brand {
        flex-shrink: 0;
        gap: 2px;
        max-width: calc(100% - 60px);
        position: relative;
        left: 0;
        padding: 0;
    }
    
    .logo-monsters-small {
        font-size: 18px;
    }
    
    .logo-daily-small {
        font-size: 12px;
    }
    
    .brand-text {
        font-size: 20px;
        letter-spacing: -0.6px;
    }
    
    .brand-tagline {
        font-size: 9px;
        letter-spacing: 0.2px;
        display: none; /* Hide tagline on mobile to save space */
    }
    
    .container {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 0 8px;
    }
    
    .card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Improve button sizes for touch */
    .btn-primary,
    .btn-secondary,
    .add-task-btn-header,
    .add-project-btn-in-all {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Better spacing for lists */
    .task-list,
    .event-list,
    .habits-list,
    .reminder-list {
        gap: 8px;
    }
    
    /* Mobile add card block - shown at bottom of content */
    .mobile-add-card-block {
        display: block;
        grid-column: 1 / -1;
        margin-top: 20px;
    }
    
    .mobile-add-block-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.03);
        border: 2px dashed var(--border-color);
        border-radius: 12px;
        color: var(--text-secondary);
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    [data-theme="dark"] .mobile-add-block-btn {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-add-block-btn:hover {
        border-color: var(--text-primary);
        color: var(--text-primary);
        background: rgba(0, 0, 0, 0.05);
    }
    
    [data-theme="dark"] .mobile-add-block-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-add-block-btn .btn-icon {
        font-size: 20px;
    }
    
    .mobile-add-block-btn .btn-text {
        font-size: 16px;
    }
    
    /* Hide desktop nav on mobile */
    .nav-links-center,
    .nav-actions {
        display: none !important;
    }
    
    /* Mobile navbar - more compact */
    .nav-container {
        padding: 12px 16px;
        gap: 0;
        min-height: auto;
        justify-content: center;
    }
    
    /* Mobile navigation - more compact */
    .nav-mobile-scroll {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    
    .nav-mobile-pill {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
        background: transparent;
        width: 100%;
    }
    
    .nav-mobile-pill .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        border-radius: 9999px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        white-space: nowrap;
        background: transparent;
        text-align: center;
    }
    
    .nav-mobile-pill .nav-link:hover {
        color: var(--text-primary);
        opacity: 0.7;
        background: transparent;
    }
    
    [data-theme="dark"] .nav-mobile-pill .nav-link:hover {
        background: transparent;
    }
    
    [data-theme="monster"] .nav-mobile-pill .nav-link:hover {
        background: transparent;
    }
    
    .nav-mobile-pill .nav-link.active {
        background: rgba(0, 0, 0, 0.1);
        color: var(--text-primary);
        font-weight: 500;
    }
    
    [data-theme="dark"] .nav-mobile-pill .nav-link.active {
        background: rgba(88, 166, 255, 0.2);
        color: var(--text-primary);
    }
    
    [data-theme="monster"] .nav-mobile-pill .nav-link.active {
        background: rgba(106, 142, 235, 0.15);
        color: #6a8eeb;
        font-weight: 500;
    }
    
    [data-theme="hard"] .nav-mobile-pill .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        font-weight: 500;
    }
    
    [data-theme="hard"] .nav-mobile-pill .nav-link {
        color: rgba(255, 255, 255, 0.7);
    }
    
    [data-theme="hard"] .nav-mobile-pill .nav-link:hover {
        color: #ffffff;
        opacity: 0.8;
    }
    
    .navbar {
        margin-bottom: 20px;
    }
    
    .nav-divider {
        display: block;
        margin: 0 auto;
        max-width: 1400px;
        height: 1px;
    }
    
    /* Improve card spacing and readability on mobile */
    .card {
        margin-bottom: 12px;
    }
    
    /* Better touch targets for mobile */
    button, .nav-link, .add-card-option {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve modal responsiveness */
    .modal-content {
        width: calc(100% - 32px);
        max-width: 100%;
        margin: 10% auto;
        padding: 24px 20px;
        max-height: calc(100vh - 20%);
        overflow-y: auto;
        position: relative;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    /* Quick duration buttons on mobile */
    .quick-duration-btn {
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    /* Better task card display on mobile */
    .task-block-card {
        padding: 16px;
    }
    
    .task-block-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .task-block-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .task-block-actions button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    
    /* Show delete button on mobile */
    .task-block-card .delete-task-btn {
        display: flex !important;
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    /* Improve input fields on mobile */
    input[type="text"],
    input[type="time"],
    input[type="date"],
    input[type="datetime-local"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 14px !important;
    }
    
    /* Better spacing for task items */
    .task-item {
        padding: 12px 8px;
        gap: 12px;
    }
    
    /* Project items on mobile */
    .project-item-in-all {
        padding: 12px;
    }
    
    /* Progress card adjustments */
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 12px;
        justify-content: flex-start;
        margin-bottom: 8px;
        background: var(--accent-light);
        transition: all 0.2s ease;
    }
    
    .nav-link:hover {
        background: var(--text-primary);
        color: var(--card-bg);
    }
    
    .nav-link.active {
        background: var(--text-primary);
        color: var(--card-bg);
    }
    
    .nav-pill-divider {
        display: block;
        width: 100%;
        height: 1px;
        margin: 16px 0;
        background: var(--border-color);
    }
    
    .nav-link-icon {
        width: 100%;
        min-height: 48px;
        height: auto;
        justify-content: flex-start;
        padding: 14px 20px;
        border-radius: 12px;
        gap: 12px;
        margin-bottom: 8px;
        background: var(--accent-light);
        transition: all 0.2s ease;
    }
    
    .nav-link-icon:hover {
        background: var(--text-primary);
        color: var(--card-bg);
    }
    
    .nav-link-icon .btn-icon {
        font-size: 20px;
    }
    
    .layout-indicator {
        font-size: 15px;
        margin-left: auto;
        font-weight: 600;
    }
    
    .add-card-menu {
        width: 100%;
        right: 0;
        min-width: 100%;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* Mobile add card block dropdown positioning */
    .mobile-add-card-block .add-card-dropdown {
        position: relative;
    }
    
    .mobile-add-card-block .add-card-menu {
        position: absolute;
        top: calc(100% + 8px);
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        max-height: 50vh;
        z-index: 1000;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .container {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 0;
    }
    
    .task-blocks-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Improve focus mode on mobile */
    .focus-overlay {
        padding: 16px;
    }
    
    .focus-content {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    /* Better profile card on mobile */
    .profile-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .profile-toggles-section {
        margin-bottom: 0;
    }
    
    .profile-toggles,
    .profile-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .profile-action-btn,
    .history-btn,
    .login-btn {
        flex: 1;
        min-width: auto;
    }
    
    .profile-divider {
        margin: 12px 0;
    }
    
    .card-tags-container {
        gap: 6px;
    }
    
    .card-tag {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* Improve notes card on mobile */
    .notes-input {
        min-height: 120px;
        font-size: 16px;
    }
    
    /* Better project cards on mobile */
    .project-item-in-all {
        padding: 12px;
    }
    
    .project-item-in-all > div > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Improve completed tasks section */
    .completed-tasks-section-minimal {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    /* Calendar adjustments */
    .calendar-grid {
        gap: 6px;
    }
    
    .calendar-day {
        padding: 8px 4px;
    }
    
    .day-number {
        font-size: 16px;
    }
    
    /* Better event and reminder items */
    .event-item,
    .reminder-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Improve timetable on mobile */
    .timetable-container {
        padding: 16px 12px !important;
        margin: 0 !important;
        border-radius: 12px;
    }
    
    .timetable-grid {
        padding: 0 !important;
        gap: 8px;
    }
    
    .timetable-slot {
        padding: 10px 8px;
        gap: 12px;
        min-height: auto;
        flex-wrap: wrap;
    }
    
    .timetable-time {
        min-width: 60px;
        font-size: 13px;
        padding-top: 2px;
    }
    
    .timetable-content {
        flex: 1;
        min-width: 0; /* Allow flex shrinking */
    }
    
    .timetable-task,
    .timetable-event {
        padding: 10px 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .timetable-task-time,
    .timetable-event-time {
        min-width: 60px;
        font-size: 12px;
    }
    
    .timetable-task-details,
    .timetable-event-details {
        flex: 1;
        min-width: 0;
    }
    
    .timetable-task-title,
    .timetable-event-title {
        font-size: 14px;
        word-break: break-word;
    }
    
    .timetable-current-line {
        left: -12px !important;
        right: -12px !important;
    }
    
    .timetable-current-dot {
        margin-left: 12px !important;
    }
    
    .timetable-item-delete {
        width: 28px;
        height: 28px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .timetable-hour {
        padding: 8px;
    }
    
    .container.layout-1,
    .container.layout-2,
    .container.layout-3,
    .container.layout-4 {
        grid-template-columns: 1fr !important;
    }
    
    .task-blocks-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .task-blocks-container.layout-1,
    .task-blocks-container.layout-2,
    .task-blocks-container.layout-3,
    .task-blocks-container.layout-4 {
        grid-template-columns: 1fr !important;
    }
    
    .card {
        padding: 16px;
        min-height: 200px;
        max-height: calc(100vh - 80px);
    }
    
    .card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* History view mobile improvements */
    .history-container {
        padding: 16px;
    }
    
    .history-header h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .projects-timeline {
        margin-top: 32px;
    }
    
    .project-timeline-item {
        padding: 16px;
        background: var(--accent-light);
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .task-block-card {
        padding: 16px;
        min-height: 120px;
    }
    
    .task-block-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .task-block-text {
        font-size: 15px;
    }
    
    .task-block-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .focus-btn,
    .done-btn,
    .uncomplete-btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    
    .task-priority-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
        max-width: calc(100% - 20px);
        margin: 0 auto 16px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
        max-width: 100%;
    }
    
    .progress-ring circle {
        max-width: 100%;
    }
    
    .progress-percentage {
        font-size: 20px;
    }
    
    .calendar-weekdays {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .calendar-weekend {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        width: 40%;
    }
    
    .calendar-day {
        padding: 8px 4px;
    }
    
    .day-name {
        font-size: 10px;
    }
    
    .day-number {
        font-size: 16px;
    }
    
    .event-item,
    .reminder-item,
    .habit-item {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .modal-content input,
    .modal-content textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
        margin-bottom: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    
    .focus-overlay {
        padding: 10px;
    }
    
    .focus-content {
        width: 95%;
        max-width: 100%;
        padding: 24px;
        max-height: 95vh;
    }
    
    .focus-task-title {
        font-size: 24px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .focus-timer-text {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .focus-task-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .focus-btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .focus-subtasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .add-subtask-btn {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .profile-toggles-section {
        margin-bottom: 0;
    }
    
    .profile-toggles,
    .profile-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .profile-action-btn,
    .history-btn,
    .login-btn {
        flex: 1;
        padding: 12px;
    }
    
    .profile-divider {
        margin: 12px 0;
    }
    
    .card-delete-btn,
    .delete-task-card-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 8px;
        left: 8px;
    }
    
    .task-item {
        padding: 10px 0;
        flex-wrap: wrap;
    }
    
    .delete-task-btn {
        font-size: 22px;
    }
    
    .summary-row {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .summary-label,
    .summary-value {
        flex: 1;
        min-width: 50%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .navbar {
        padding: 12px 0;
        margin-bottom: 12px;
    }
    
    .nav-container {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .nav-brand {
        max-width: calc(100% - 80px);
        gap: 1px;
    }
    
    .brand-text {
        font-size: 18px;
        letter-spacing: -0.5px;
    }
    
    .brand-tagline {
        font-size: 9px;
        letter-spacing: 0.2px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .container {
        gap: 10px;
    }
    
    .card {
        padding: 12px;
        min-height: 180px;
    }
    
    .card h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .task-block-card {
        padding: 12px;
    }
    
    .task-block-text {
        font-size: 14px;
    }
    
    .focus-content {
        padding: 16px;
    }
    
    .focus-task-title {
        font-size: 20px;
    }
    
    .focus-timer-text {
        font-size: 36px;
    }
    
    .modal-content {
        padding: 16px;
        margin: 5% auto;
    }
    
    .progress-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-ring {
        width: 80px;
        height: 80px;
    }
    
    
    .progress-percentage {
        font-size: 18px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .focus-content {
        max-height: 90vh;
        padding: 20px;
    }
    
    .focus-timer-text {
        font-size: 40px;
    }
    
    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-delete-btn,
    .delete-task-card-btn {
        display: flex !important; /* Always show on touch devices */
    }
    
    .nav-btn:hover,
    .focus-btn:hover,
    .done-btn:hover {
        transform: none;
    }
    
    /* Increase touch target sizes */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-btn,
    .nav-link-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .delete-task-btn,
    .delete-event-btn,
    .delete-reminder-btn,
    .delete-habit-btn,
    .delete-subtask-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Task card delete button - always show on touch devices */
    .task-block-card .delete-task-btn {
        display: flex !important;
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    .task-item input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    
    .focus-subtask-checkbox {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================================
   UTILITY CLASSES - For replacing inline styles
   ============================================================================ */

/* Display utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

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

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-1 {
    flex: 1;
}

/* Spacing utilities */
.mb-0 {
    margin-bottom: 0;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.pt-12 {
    padding-top: 12px;
}

.gap-4 {
    gap: 4px;
}

.gap-6 {
    gap: 6px;
}

.gap-8 {
    gap: 8px;
}

/* Text alignment */
.text-center {
    text-align: center;
}

/* Form utilities */
.modal-label {
    display: block;
    margin: 16px 0 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-label-small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.form-input-time {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%23666%22 d=%22M6 9L1 4h10z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-color-input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

/* Button utilities */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small-secondary {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add {
    padding: 6px 12px;
    background: var(--text-primary);
    color: var(--card-bg);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 6px 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.toggle-text {
    font-size: 11px;
    color: var(--text-primary);
    opacity: 0.7;
    text-decoration: underline;
}

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

.card-header h3 {
    margin: 0;
}

/* Progress utilities */
.progress-time-wrapper {
    text-align: center;
    margin-top: 8px;
}

.progress-time-tag {
    padding: 4px 10px;
    background: var(--accent-light);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    display: inline-block;
}

/* Completed tasks section */
.completed-tasks-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.completed-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Quick duration buttons container */
.quick-duration-container {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.quick-duration-container .ml-auto {
    margin-left: auto;
}

/* 簡化 quick duration 按鈕樣式 */
.quick-duration-btn,
.quick-project-duration-btn {
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: auto;
    white-space: nowrap;
}

.quick-duration-btn:hover,
.quick-project-duration-btn:hover {
    background: var(--accent-light);
    border-color: var(--text-primary);
}

.quick-duration-container .btn-small-secondary {
    padding: 4px 10px;
    font-size: 11px;
}

/* Time input container */
.time-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.time-input-group {
    flex: 1;
}

/* Modal actions */
.modal-actions-column {
    flex-direction: column;
    gap: 12px;
}

.modal-actions-full-width {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.modal-actions-full-width-small {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
}

/* Additional utilities */
.modal-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.modal-text-small {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
}

.modal-message {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.time-input-container-margin {
    margin: 16px 0;
}

.modal-label-bold {
    font-weight: 500;
}

/* App Footer */
.app-footer {
    margin-top: 60px;
    padding: 40px 32px 24px;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.app-footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.app-footer .footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-footer .footer-section ul li {
    margin-bottom: 12px;
}

.app-footer .footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.app-footer .footer-link:hover {
    color: var(--text-primary);
}

.app-footer .footer-main p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}

.app-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.app-footer .footer-logo .logo-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.app-footer .footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-footer .footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
}

.app-footer .footer-bottom p {
    color: var(--text-tertiary);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .app-footer .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .app-footer {
        padding: 32px 20px 20px;
        margin-top: 40px;
    }
    
    .app-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .app-footer .footer-section {
        text-align: left;
    }
}

/* ============================================================================
   MONSTER WITH ENERGY BAR IN PROGRESS
   ============================================================================ */

.progress-monster-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.monster-display-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.monster-progress-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.monster-progress-image:hover {
    transform: scale(1.05);
    border-color: var(--text-primary);
}

.monster-progress-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-energy-bar-section {
    width: 100%;
    max-width: 300px;
}

.energy-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.energy-percentage {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.energy-bar {
    width: 100%;
    height: 24px;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.energy-bar-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 12px;
    transition: width 0.3s ease;
}

.attack-monster-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--text-primary);
    color: var(--card-bg);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.attack-monster-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@keyframes flash {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.locked-date-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
}

.locked-icon {
    font-size: 32px;
    opacity: 0.7;
}

.locked-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.locked-date {
    font-size: 12px;
    color: var(--text-secondary);
}
