@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@100;200;300;400;500;600;700;800;900&family=Outfit:wght@100;200;300;400;500;600;700;800;900&family=Rubik:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@100;200;300;400;500;600;700;800;900&family=IBM+Plex+Sans:wght@100;200;300;400;500;600;700&family=Bebas+Neue&family=Nunito+Sans:wght@200;300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&family=Noto+Sans:wght@100;200;300;400;500;600;700;800;900&family=Saira:wght@100;200;300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&family=Ubuntu:wght@300;400;500;700&family=Mulish:wght@200;300;400;500;600;700;800;900&family=Prompt:wght@100;200;300;400;500;600;700;800;900&family=Lato:wght@100;300;400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Source+Sans+3:wght@200;300;400;500;600;700;800;900&family=Righteous&family=PT+Sans:wght@400;700&family=Titillium+Web:wght@200;300;400;600;700;900&family=Manrope:wght@200;300;400;500;600;700;800&family=Tenor+Sans&family=Assistant:wght@200;300;400;500;600;700;800&family=Red+Hat+Display:wght@300;400;500;600;700;800;900&family=Raleway:wght@100;200;300;400;500;600;700;800;900&family=Yatra+One&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Exo+2:wght@100;200;300;400;500;600;700;800;900&family=Overpass:wght@100;200;300;400;500;600;700;800;900&family=IBM+Plex+Serif:wght@100;200;300;400;500;600;700&family=Fira+Sans:wght@100;200;300;400;500;600;700;800;900&family=Karla:wght@200;300;400;500;600;700;800&family=Bungee+Shade&family=Comic+Neue:wght@300;400;700&family=Baloo+2:wght@400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&family=Varela+Round&family=Work+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap");
/* Global Baseline Styling */
* {
    font-family: "Inter Tight", "Segoe UI Variable Display", "Segoe UI", Inter, ui-sans-serif, sans-serif;
    font-weight: 400;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}

:root {
    /* Default Light Theme */
    --accent-color: #d6ad60;
    --display-font: 'Inter Tight', sans-serif;
    --body-font: 'Inter Tight', sans-serif;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 20px;
}

/* Theme Definitions */
body[data-theme="default-light"] {
    --accent-color: #d6ad60;
    --display-font: 'Inter Tight', sans-serif;
    --body-font: 'Inter Tight', sans-serif;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
}

body[data-theme="default-dark"] {
    --accent-color: #d6ad60;
    --display-font: 'Inter Tight', sans-serif;
    --body-font: 'Inter Tight', sans-serif;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
}

body[data-theme="ocean-light"] {
    --accent-color: #1e90ff;
    --display-font: 'Outfit', sans-serif;
    --body-font: 'Rubik', sans-serif;
    --bg-primary: #eef6fc;
    --bg-secondary: #e2f0fb;
    --bg-tertiary: #cde5fb;
    --text-primary: #102a43;
    --text-secondary: #1c4e80;
    --text-muted: #5b9bd5;
    --border-color: #b3d9ff;
}

body[data-theme="navy-dark"] {
    --accent-color: #1e90ff;
    --display-font: 'Barlow Condensed', sans-serif;
    --body-font: 'IBM Plex Sans', sans-serif;
    --bg-primary: #0d1117;
    --bg-secondary: #1e2a3a;
    --bg-tertiary: #2d3748;
    --text-primary: #e2e8f0;
    --text-secondary: #b0b9c9;
    --text-muted: #8a9ab0;
    --border-color: #4a5568;
}

body[data-theme="tomato-light"] {
    --accent-color: #ff6347;
    --display-font: 'Bebas Neue', cursive;
    --body-font: 'Nunito Sans', sans-serif;
    --bg-primary: #fff1f0;
    --bg-secondary: #ffd6d6;
    --bg-tertiary: #ffb3b3;
    --text-primary: #5a1f1f;
    --text-secondary: #c53030;
    --text-muted: #f78383;
    --border-color: #fbb6ce;
}

body[data-theme="tomato-dark"] {
    --accent-color: #ff4500;
    --display-font: 'Orbitron', sans-serif;
    --body-font: 'Noto Sans', sans-serif;
    --bg-primary: #1a0f0f;
    --bg-secondary: #2d1b1b;
    --bg-tertiary: #4a2c2c;
    --text-primary: #fca5a5;
    --text-secondary: #fc8181;
    --text-muted: #f87171;
    --border-color: #c53030;
}

body[data-theme="mediumsea-light"] {
    --accent-color: #3cb371;
    --display-font: 'Saira', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --bg-primary: #f0fff4;
    --bg-secondary: #c6f6d5;
    --bg-tertiary: #9ae6b4;
    --text-primary: #1b4736;
    --text-secondary: #38a169;
    --text-muted: #5fd49e;
    --border-color: #9ae6b4;
}

body[data-theme="mediumsea-dark"] {
    --accent-color: #2e8b57;
    --display-font: 'Ubuntu', sans-serif;
    --body-font: 'Mulish', sans-serif;
    --bg-primary: #0f1a14;
    --bg-secondary: #1a2e23;
    --bg-tertiary: #2d4a37;
    --text-primary: #b2f2d3;
    --text-secondary: #9ae6b4;
    --text-muted: #7ed6a4;
    --border-color: #38a169;
}

body[data-theme="violet-light"] {
    --accent-color: #8a2be2;
    --display-font: 'Prompt', sans-serif;
    --body-font: 'Lato', sans-serif;
    --bg-primary: #faf5ff;
    --bg-secondary: #e9d8fd;
    --bg-tertiary: #d6bcfa;
    --text-primary: #322659;
    --text-secondary: #6b46c1;
    --text-muted: #9f7aea;
    --border-color: #d6bcfa;
}

body[data-theme="violet-dark"] {
    --accent-color: #6a0dad;
    --display-font: 'Rajdhani', sans-serif;
    --body-font: 'Source Sans 3', sans-serif;
    --bg-primary: #1a0f1a;
    --bg-secondary: #2d1b2d;
    --bg-tertiary: #4a2c4a;
    --text-primary: #d6bcfa;
    --text-secondary: #c084fc;
    --text-muted: #b794f6;
    --border-color: #805ad5;
}

body[data-theme="orange-light"] {
    --accent-color: #ffa500;
    --display-font: 'Righteous', cursive;
    --body-font: 'PT Sans', sans-serif;
    --bg-primary: #fffaf0;
    --bg-secondary: #feebc8;
    --bg-tertiary: #fbd38d;
    --text-primary: #6b2c10;
    --text-secondary: #c05621;
    --text-muted: #dd6b20;
    --border-color: #fbd38d;
}

body[data-theme="orange-dark"] {
    --accent-color: #cc8400;
    --display-font: 'Titillium Web', sans-serif;
    --body-font: 'Manrope', sans-serif;
    --bg-primary: #1a1408;
    --bg-secondary: #2d2415;
    --bg-tertiary: #4a3728;
    --text-primary: #ffe4b5;
    --text-secondary: #fbd38d;
    --text-muted: #f4a261;
    --border-color: #dd6b20;
}

body[data-theme="khaki-light"] {
    --accent-color: #f0e68c;
    --display-font: 'Tenor Sans', sans-serif;
    --body-font: 'Assistant', sans-serif;
    --bg-primary: #fdf6bd;
    --bg-secondary: #faf089;
    --bg-tertiary: #f6e05e;
    --text-primary: #5c390a;
    --text-secondary: #a76e1f;
    --text-muted: #d69e2e;
    --border-color: #f6e05e;
}

body[data-theme="khaki-dark"] {
    --accent-color: #bca869;
    --display-font: 'Red Hat Display', sans-serif;
    --body-font: 'Raleway', sans-serif;
    --bg-primary: #18160e;
    --bg-secondary: #2d2820;
    --bg-tertiary: #4a4237;
    --text-primary: #faf089;
    --text-secondary: #f6e05e;
    --text-muted: #ebc263;
    --border-color: #d69e2e;
}

body[data-theme="tangerine-light"] {
    --accent-color: #ffcc00;
    --display-font: 'Yatra One', cursive;
    --body-font: 'Inter', sans-serif;
    --bg-primary: #fffff0;
    --bg-secondary: #fefcbf;
    --bg-tertiary: #faf089;
    --text-primary: #5e3e0b;
    --text-secondary: #b7791f;
    --text-muted: #d69e2e;
    --border-color: #f6e05e;
}

body[data-theme="tangerine-dark"] {
    --accent-color: #e69500;
    --display-font: 'Exo 2', sans-serif;
    --body-font: 'Overpass', sans-serif;
    --bg-primary: #1a1608;
    --bg-secondary: #2d2615;
    --bg-tertiary: #4a3f28;
    --text-primary: #fff8c2;
    --text-secondary: #faf089;
    --text-muted: #e6d766;
    --border-color: #d69e2e;
}

body[data-theme="greyscale-light"] {
    --accent-color: #808080;
    --display-font: 'IBM Plex Serif', serif;
    --body-font: 'IBM Plex Sans', sans-serif;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-muted: #4a5568;
    --border-color: #e2e8f0;
}

body[data-theme="greyscale-dark"] {
    --accent-color: #b0b0b0;
    --display-font: 'Fira Sans', sans-serif;
    --body-font: 'Karla', sans-serif;
    --bg-primary: #23272f;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    --text-primary: #edf2f7;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
}

body[data-theme="ultracolourful"] {
    --accent-color: #ff6b6b;
    --display-font: 'Bungee Shade', cursive;
    --body-font: 'Comic Neue', cursive;
    --bg-primary: #fafafa;
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-tertiary: rgba(255, 255, 255, 0.85);
    --text-primary: #1e272e;
    --text-secondary: #485460;
    --text-muted: #70a1ff;
    --border-color: #ddd;
}

body[data-theme="sunshine-light"] {
    --accent-color: #facc15;
    --display-font: 'Baloo 2', cursive;
    --body-font: 'Quicksand', sans-serif;
    --bg-primary: #fffdf5;
    --bg-secondary: #fef6b2;
    --bg-tertiary: #fcd34d;
    --text-primary: #3b2904;
    --text-secondary: #b45309;
    --text-muted: #d97706;
    --border-color: #facc15;
}

body[data-theme="sunshine-dark"] {
    --accent-color: #e1cd00;
    --display-font: 'Varela Round', sans-serif;
    --body-font: 'Work Sans', sans-serif;
    --bg-primary: #1c1917;
    --bg-secondary: #292524;
    --bg-tertiary: #44403c;
    --text-primary: #faf08b;
    --text-secondary: #fde047;
    --text-muted: #e0bb11;
    --border-color: #ca8a04;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--display-font);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* Authentication Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: none;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .modal-content input,
    .modal-content button {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .modal-content {
        padding: 1.5rem 1rem;
        width: 98%;
    }

    .modal-content h2 {
        font-size: 1.4rem;
    }

    .modal-content input,
    .modal-content button {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.modal-content h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.modal-content input {
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--body-font);
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-content input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(214, 173, 96, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    background: var(--bg-primary);
}

.modal-content button {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.modal-content button::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.5s ease;
}

.modal-content button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: #c49a54;
}

.modal-content button:hover::before {
    left: 100%;
}

.modal-content p {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

.modal-content a {
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 500;
}

/* Header */
.header {
    background: rgba(var(--bg-primary), 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-size: 1.85rem;
    color: var(--accent-color);
    font-family: var(--display-font);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.app-title:hover {
    transform: scale(1.02);
}

.app-title::before {
    content: "✓";
    background: var(--accent-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.app-title:hover::before {
    transform: scale(1.1);
    box-shadow: var(--shadow-card-hover);
}

.header-controls {
    display: flex;
    gap: 0.75rem;
}

.icon-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.icon-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

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

/* Theme Selector */
.theme-selector {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin: 1.5rem auto;
    padding: 1.5rem;
    max-width: 1200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.theme-option {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--body-font);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.theme-option:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

/* Theme Modal and Cards */
.theme-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.theme-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    min-height: 90px;
    background: var(--bg-secondary);
}

.theme-card.selected,
.theme-card:hover {
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.theme-card .theme-accent {
    width: 50px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.theme-card .theme-preview {
    flex: 1;
    padding: 1.25rem;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-card .theme-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.theme-card .theme-font-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: inherit;
}

/* Responsive Theme Modal */
#themeModal {
    position: fixed;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

/* Desktop: Small popup under paint icon */
@media (min-width: 769px) {
    #themeModal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 1rem;
    }

    #themeModal .modal-content {
        max-width: 400px;
        width: auto;
        background: var(--bg-primary);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-hover);
        margin: 0;
        position: relative;
        padding: 3rem 1.5rem 1.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        max-height: 70vh;
        overflow-y: auto;
    }

    .theme-card-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .theme-card {
        min-height: 60px;
    }

    .theme-card .theme-name {
        font-size: 1rem;
    }

    .theme-card .theme-font-preview {
        font-size: 0.8rem;
    }
}

/* Mobile: Full modal with scroll */
@media (max-width: 768px) {
    #themeModal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    #themeModal .modal-content {
        max-width: 95vw;
        width: 95vw;
        background: var(--bg-primary);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-hover);
        margin: 0;
        position: relative;
        padding: 2.5rem 1rem 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        max-height: 85vh;
        overflow-y: auto;
    }

    .theme-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }

    .theme-card {
        min-height: 70px;
    }

    .theme-card .theme-accent {
        width: 40px;
        font-size: 1rem;
    }

    .theme-card .theme-preview {
        padding: 1rem;
    }

    .theme-card .theme-name {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .theme-card .theme-font-preview {
        font-size: 0.8rem;
    }
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    z-index: 100;
}

.modal-close-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    #themeModal .modal-content {
        max-width: 98vw;
        width: 98vw;
        padding: 2.5rem 1rem 1.5rem 1rem;
        margin: 1rem auto;
    }

    .theme-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .theme-card {
        min-height: 60px;
    }

    .theme-card .theme-accent {
        width: 35px;
        font-size: 0.9rem;
    }

    .theme-card .theme-preview {
        padding: 0.75rem;
    }

    .theme-card .theme-name {
        font-size: 0.9rem;
    }

    .theme-card .theme-font-preview {
        font-size: 0.75rem;
    }

    .modal-close-btn {
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Views */
.view {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.view.active {
    display: block;
}

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

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

/* Navigation */
.date-navigation,
.week-navigation,
.month-navigation,
.year-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.date-navigation::before,
.week-navigation::before,
.month-navigation::before,
.year-navigation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
}

.nav-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.nav-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.5s ease;
}

.nav-btn:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    transform: scale(1.15);
    box-shadow: var(--shadow-hover);
    opacity: 1 !important;
}

.nav-btn:hover .material-symbols-outlined {
    color: #ffffff !important;
}

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

.current-date,
.week-range,
.month-year,
.current-year {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-align: center;
    flex: 1;
    font-weight: 600;
    font-family: var(--display-font);
}

.daily-tag {
    display: inline-block;
    font-size: 0.9rem;
    color: white;
    background: var(--accent-color);
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 12px;
    font-weight: 500;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--body-font);
    cursor: pointer;
    transition: all 0.3s ease;
}

.daily-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.daily-tag-add {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 12px;
    font-weight: 500;
    vertical-align: middle;
    border: 1px dashed var(--border-color);
    font-family: var(--body-font);
    cursor: pointer;
    transition: all 0.3s ease;
}

.daily-tag-add:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Daily View */
.daily-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .daily-content {
        grid-template-columns: 1fr 1fr;
    }

    .verse-section {
        grid-column: 1 / -1;
    }
}

.verse-section,
.tasks-section,
.notes-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.verse-section::before,
.tasks-section::before,
.notes-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.verse-section:hover,
.tasks-section:hover,
.notes-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.verse-section:hover::before,
.tasks-section:hover::before,
.notes-section:hover::before {
    transform: scaleX(1);
}

/* Verse Section */
.verse-content {
    text-align: center;
}

.verse-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.verse-reference {
    color: var(--accent-color);
    font-weight: 600;
    font-family: var(--display-font);
    font-size: 1.1rem;
}

/* Section Headers */
.verse-section h3,
.tasks-section h3,
.notes-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verse-section h3::before {
    content: "📖";
}

.tasks-section h3::before {
    content: "✅";
}

.notes-section h3::before {
    content: "📝";
}



/* Tasks Section */
.task-input-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.task-input {
    flex: 1;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--body-font);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(214, 173, 96, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    background: var(--bg-primary);
}

.add-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.add-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.5s ease;
}

.add-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: #c49a54;
}

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

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.task-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.task-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.task-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(12px) translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.task-item:hover::before {
    transform: scaleY(1);
}

.task-item:hover::after {
    left: 100%;
}

.task-item.completed {
    text-decoration: line-through;
    opacity: 0.7;
    background: var(--bg-primary);
    transform: none;
}

.task-item.completed:hover {
    transform: translateY(-2px);
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.task-text {
    flex: 1;
    font-weight: 500;
}

.delete-btn {
    background: #dc3545;
    border: none;
    color: white;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    margin-left: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.delete-btn:hover {
    transform: scale(1.1);
    background: #c82333;
}

/* Notes Section */
.learning-notes {
    width: 100%;
    min-height: 160px;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--body-font);
    resize: vertical;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    line-height: 1.7;
    font-size: 1.05rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.learning-notes:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(214, 173, 96, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    background: var(--bg-primary);
}

/* Weekly View */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.day-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.day-card:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.day-card.selected {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-card-hover);
}

.day-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.day-date {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: var(--display-font);
}

.day-card.selected .day-date,
.day-card:hover .day-date {
    color: white;
}

.day-tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 8px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.day-card:hover .day-tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.3);
}

.day-card.selected .day-tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.5);
}

.day-indicators {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    display: block;
}

.indicator.tasks {
    background: #28a745;
    width: 8px;
    height: 8px;
}

.indicator.notes {
    background: #ffc107;
    width: 8px;
    height: 8px;
}

/* Pill-style indicators */
.indicator.pill {
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.indicator.branding.pill {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-card:hover .indicator.branding.pill {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    transform: scale(1.05);
}

.day-card.selected .indicator.branding.pill {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
}

/* Main Day Section */
.main-day-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius);
}

.main-day-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.main-day-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--body-font);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.main-day-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(214, 173, 96, 0.1);
}

/* Monthly and Yearly Views */
.month-grid,
.year-grid {
    display: grid;
    gap: 1rem;
}

.month-grid {
    grid-template-columns: repeat(7, 1fr);
}

.year-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.month-day,
.year-month {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-weight: 500;
    gap: 0.5rem;
}

.month-day-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.month-indicators {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.month-indicators .indicator.tag {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.month-day:hover,
.year-month:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.month-day.other-month {
    opacity: 0.3;
}

.month-day.today,
.year-month.current {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-card-hover);
}

/* View Selector */
.view-selector {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--bg-primary), 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    box-shadow: var(--shadow-hover);
    z-index: 100;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.view-selector:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.view-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--body-font);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.view-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

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

.view-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 2rem 2rem;
    }

    .theme-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 1024px) {
    .header-content {
        padding: 0 2rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .daily-content {
        gap: 1.5rem;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .week-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.75rem;
    }

    .day-card {
        min-height: 100px;
        padding: 1rem;
    }

    .month-grid {
        gap: 0.75rem;
    }

    .month-day,
    .year-month {
        min-height: 90px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-content {
        padding: 0;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .app-title {
        font-size: 1.6rem;
    }

    .app-title::before {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .icon-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
        padding-bottom: 8rem;
    }

    .theme-selector {
        margin: 1rem;
        padding: 1rem;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .theme-option {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .daily-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .date-navigation,
    .week-navigation,
    .month-navigation,
    .year-navigation {
        padding: 1.5rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .current-date,
    .week-range,
    .month-year,
    .current-year {
        font-size: 1.3rem;
        order: 2;
        flex: 1 1 100%;
        text-align: center;
    }

    .daily-tag,
    .daily-tag-add {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-left: 8px;
    }

    .nav-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }

    .week-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .day-card {
        min-height: 80px;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .day-main {
        gap: 0.5rem;
    }

    .day-name {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .day-date {
        font-size: 1.2rem;
    }

    .indicator.pill {
        font-size: 0.6rem;
        padding: 2px 6px;
        max-width: 60px;
    }

    .month-grid {
        gap: 0.5rem;
    }

    .month-day,
    .year-month {
        min-height: 70px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .year-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .view-selector {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 1rem;
    }

    .view-selector:hover {
        transform: translateY(-2px);
    }

    .view-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex: 1;
    }

    .verse-section h3,
    .tasks-section h3,
    .notes-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0.5rem;
    }

    .app-title {
        font-size: 1.4rem;
        gap: 0.5rem;
    }

    .app-title::before {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .header-controls {
        gap: 0.25rem;
    }

    .icon-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1rem 0.75rem;
        padding-bottom: 7rem;
    }

    .theme-selector {
        margin: 0.75rem;
        padding: 0.75rem;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .theme-option {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .daily-content {
        gap: 1rem;
    }

    .date-navigation,
    .week-navigation,
    .month-navigation,
    .year-navigation {
        padding: 1rem;
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }

    .current-date,
    .week-range,
    .month-year,
    .current-year {
        font-size: 1.1rem;
    }

    .daily-tag,
    .daily-tag-add {
        font-size: 0.7rem;
        padding: 2px 6px;
        margin-left: 6px;
    }

    .nav-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .verse-section,
    .tasks-section,
    .notes-section {
        padding: 1.5rem 1rem;
    }

    .verse-section h3,
    .tasks-section h3,
    .notes-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .verse-text {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .verse-reference {
        font-size: 1rem;
    }

    .branding-input,
    .task-input,
    .learning-notes {
        padding: 1rem;
        font-size: 1rem;
    }

    .task-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .add-btn {
        width: 100%;
        height: 3rem;
        font-size: 1.2rem;
    }

    .task-item {
        padding: 1rem;
        margin: 0 -0.5rem;
        border-radius: var(--border-radius-sm);
    }

    .task-item:hover {
        transform: translateX(6px) translateY(-1px);
    }

    .task-text {
        font-size: 1rem;
    }

    .delete-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }

    .learning-notes {
        min-height: 120px;
    }

    .day-card {
        min-height: 70px;
        padding: 0.75rem;
    }

    .month-day,
    .year-month {
        min-height: 60px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .year-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .view-selector {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .view-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .main-day-section {
        padding: 1.5rem 1rem;
    }

    .main-day-select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 0.75rem 0.5rem;
        padding-bottom: 6rem;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .icon-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .verse-section,
    .tasks-section,
    .notes-section {
        padding: 1rem 0.75rem;
    }

    .task-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .task-item:hover {
        transform: translateY(-1px);
    }

    .delete-btn {
        align-self: flex-end;
        margin-left: 0;
    }

    .day-card {
        min-height: 60px;
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .day-main {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .day-name {
        font-size: 0.7rem;
    }

    .day-date {
        font-size: 1rem;
    }

    .indicator.pill {
        font-size: 0.55rem;
        padding: 1px 4px;
        max-width: 40px;
    }

    .month-day,
    .year-month {
        min-height: 50px;
        padding: 0.25rem;
        font-size: 0.7rem;
    }

    .nav-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .current-date,
    .week-range,
    .month-year,
    .current-year {
        font-size: 1rem;
    }

    .view-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Ultra Colorful Theme Special Effects */
body[data-theme="ultracolourful"] {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body[data-theme="ultracolourful"] .verse-section,
body[data-theme="ultracolourful"] .tasks-section,
body[data-theme="ultracolourful"] .notes-section {
    backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {

    .header,
    .view-selector,
    .theme-selector {
        display: none;
    }

    .main-content {
        padding: 0;
        max-width: none;
    }

    * {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    width: 100vw;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    transition: opacity 0.4s;
}

.landing-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 95vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.landing-title {
    font-size: 2.5rem;
    font-family: var(--display-font);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.landing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    width: 100%;
}

.landing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.landing-features li:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.landing-features .material-symbols-outlined {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.get-started-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    font-family: var(--body-font);
}

.get-started-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.landing-github {
    margin-top: 0.5rem;
}

.landing-github a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.landing-github a:hover {
    color: var(--accent-color);
    background: var(--bg-secondary);
}

@media (max-width: 600px) {
    .landing-content {
        padding: 2rem 1.5rem;
        max-width: 98vw;
    }

    .landing-title {
        font-size: 2rem;
    }

    .landing-features li {
        font-size: 0.95rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--accent-color);
    color: white;
}