body {
    position: relative;
    background-color: var(--bg-color); /* Maintains theme color */
    transition: background-color 0.5s ease; /* For theme changes */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/Untitled\ design.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Adjust transparency (0.1 to 0.5 recommended) */
    z-index: -1; /* Places behind content */
    transition: opacity 1s ease-in-out; /* Fade effect */
}

/* Darken background when modal/important elements are active */
body.modal-active::before {
    opacity: 0.1;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 0.5rem 0 0;
    font-style: italic;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.input-section {
    flex: 2;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: #FDB927;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background: #ffcc00;
}

.lebron-quote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #FDB927;
}

.study-plan {
    margin: 1.5rem 0;
}

.countdown {
    font-weight: bold;
    color: #552583;
    font-size: 1.2rem;
}

.lebron-image {
    margin-top: 2rem;
    text-align: center;
}

.lebron-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* ===== To-Do Section (Main Page) ===== */
.todo-section {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.todo-section h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
}

#edit-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#edit-btn:hover {
    transform: scale(1.3);
}

#todo-list {
    list-style: none;
    padding: 0;
}

#todo-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

#todo-list input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #552583;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#todo-list input[type="checkbox"]:checked {
    background: #552583;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== Edit Page ===== */
.edit-page {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    gap: 1rem;
}

#edit-todo-list {
    list-style: none;
    padding: 0;
}

#edit-todo-list li {
    background: #f9f9f9;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
    font-size: 1rem;
}

#back-btn {
    background: #552583;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Base Variables */
:root {
    --primary-color: #552583;
    --secondary-color: #FDB927;
    --accent-color: #000;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --font-stack: 'Arial', sans-serif;
}

/* General Styles */
body {
    font-family: var(--font-stack);
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header with Positioning for Theme Switcher */
header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-right: 120px; /* Space for theme switcher */
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* Compact Theme Switcher */
.theme-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
}

#team-select {
    width: 80px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    background-color: rgba(0,0,0,0.2);
    color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.theme-switcher::after {
    content: "▼";
    font-size: 0.6rem;
    color: white;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#team-select:hover {
    background-color: rgba(0,0,0,0.3);
}

#team-select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
}

/* Team-Specific Dropdown Colors */
.lakers-theme #team-select {
    background-color: rgba(85, 37, 131, 0.7);
}
.cavaliers-theme #team-select {
    background-color: rgba(134, 0, 56, 0.7);
}
.heat-theme #team-select {
    background-color: rgba(152, 0, 46, 0.7);
}

/* Container Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Input Section */
.input-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-family: var(--font-stack);
}

button:hover {
    background: #ffcc00;
}

/* Result Section */
.result-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lebron-quote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid var(--secondary-color);
}

.study-plan {
    margin: 1.5rem 0;
}

.countdown {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.lebron-image {
    margin-top: 2rem;
    text-align: center;
}

.lebron-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Team Themes */
body.lakers-theme {
    --primary-color: #552583;
    --secondary-color: #FDB927;
    --accent-color: #000;
    --bg-color: #f8f8f8;
    --text-color: #333;
    --font-stack: 'Verdana', 'Trebuchet MS', sans-serif;
    background-image: linear-gradient(to bottom, #e7d278 0%, #e7d278 100%);
}

body.cavaliers-theme {
    --primary-color: #860038;
    --secondary-color: #FDBA31;
    --accent-color: #041E42;
    --bg-color: #f0f4f8;
    --text-color: #222;
    --font-stack: 'Verdana', 'Trebuchet MS', sans-serif;
    background-image: linear-gradient(to bottom, #709ecb 0%, #709ecb 100%);
}

body.heat-theme {
    --primary-color: #98002E;
    --secondary-color: #F9A01B;
    --accent-color: #000;
    --bg-color: #fff8f0;
    --text-color: #500;
    --font-stack: 'Verdana', 'Trebuchet MS', sans-serif;
    background-image: linear-gradient(to bottom, #fff8f0 0%, #ffe8d0 100%);
}

/* Team-specific font styling */
.heat-theme h1, .heat-theme h2, .heat-theme h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cavaliers-theme .lebron-quote {
    font-style: normal;
    font-weight: bold;
}

.lakers-theme nav a {
    font-weight: bold;
    text-transform: uppercase;
}

/* Remove number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.todo-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#task-input, #due-date {
    width: 80%;
    padding: 0.5rem;
    font-size: 0.9rem;
}

#add-task {
    background: #28a745;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

#add-task:hover {
    background: #218838;
}

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

    /* Calendar Styles */
    .calendar {
        margin: 20px auto;
        max-width: 600px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .calendar-header {
        background-color: #1abc9c;
        color: white;
        text-align: center;
        padding: 10px;
        font-size: 1.5em;
    }

    .calendar-section h2 {
        text-align: center; /* Centers the heading */
        margin-bottom: 20px; /* Adds spacing below the heading */
    }
    

    .calendar-days,
    .calendar-dates {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
    }

    .calendar-days div,
    .calendar-dates div {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .calendar-days {
        background-color: #f4f4f4;
        font-weight: bold;
    }

    .calendar-dates div {
        min-height: 40px;
    }

    .calendar-dates div.today {
        background-color: #ffeb3b;
        font-weight: bold;
    }

    /* Tooltip Styles */
    .tooltip {
        display: none; /* Hidden by default */
        position: absolute;
        top: -50px; /* Position above the date */
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: white;
        padding: 5px;
        border-radius: 5px;
        font-size: 0.9em;
        z-index: 1000; /* Ensures it appears above other elements */
    }

    .calendar-dates div:hover .tooltip {
        display: block; /* Show tooltip on hover */
    }


