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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    min-height: 100vh;
    padding: 20px;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    margin: 10% auto;
    padding: 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.auth-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#usernameInput {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: center;
}

#usernameInput:focus {
    border-color: #4ecdc4;
}

.auth-btn {
    padding: 15px 30px;
    background: linear-gradient(145deg, #4ecdc4, #45b7d1);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.user-list {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.user-list h3 {
    color: #666;
    margin-bottom: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateX(5px);
}

.user-item .user-name {
    font-weight: bold;
    color: #333;
}

.user-item .user-tasks {
    font-size: 0.9rem;
    color: #666;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.logout-link {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.logout-link:hover { color: #c0392b; }

.user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.user-welcome {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.switch-user-btn {
    padding: 6px 12px;
    background: linear-gradient(145deg, #96ceb4, #85c4a0);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-user-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(150, 206, 180, 0.3);
}

.title {
    text-align: left;
    margin: 0;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.title {
    font-size: 2.5rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.toggles {
    display: flex;
    gap: 20px;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.toggle input {
    position: absolute;
    opacity: 0;
}

.slider {
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    position: relative;
    transition: 0.3s;
}

.slider:before {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle input:checked + .slider {
    background: #ff6b6b;
}

.toggle input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-selector label {
    font-weight: bold;
    color: #333;
}

.theme-selector select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.theme-selector select:focus {
    border-color: #4ecdc4;
}

.top-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 300px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#newTask {
    border-color: #ff6b6b;
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.1), rgba(255, 255, 255, 0.9));
}

#interesting {
    border-color: #4ecdc4;
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.1), rgba(255, 255, 255, 0.9));
}

#boring {
    border-color: #96ceb4;
    background: linear-gradient(145deg, rgba(150, 206, 180, 0.1), rgba(255, 255, 255, 0.9));
}

#leadership {
    border-color: #feca57;
    background: linear-gradient(145deg, rgba(254, 202, 87, 0.1), rgba(255, 255, 255, 0.9));
}

.parking-lot {
    border-color: #45b7d1;
    background: linear-gradient(145deg, rgba(69, 183, 209, 0.1), rgba(255, 255, 255, 0.9));
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-weight: bold;
    font-family: inherit;
    cursor: text;
}

.section-title:focus {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 5px;
}

.section-title.read-only {
    cursor: default;
    pointer-events: none;
}

.task-name.read-only {
    cursor: default;
    pointer-events: none;
}

.add-task-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.tasks-container {
    min-height: 200px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#parkingLotTasks, #completedTasks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#parkingLotTasks .task, #completedTasks .task {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    max-width: 300px;
    margin: 0 7.5px 15px 7.5px;
}

#parkingLotTasks .task-back, #completedTasks .task-back {
    width: 100%;
}

#parkingLotTasks .task-notes, #completedTasks .task-notes {
    width: 100%;
    box-sizing: border-box;
}

.task {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    border-left: 5px solid;
    min-height: 35px;
    height: auto;
    overflow: visible;
    padding: 4px;
    padding-top: 18px;
    word-wrap: break-word;
}

.task-actions {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 3px;
    z-index: 10;
}

.task-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-left: 8px;
}

.edit-notes-btn {
    background: #4ecdc4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-notes-btn:hover {
    background: #45b7d1;
    transform: scale(1.1);
}

.task:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.task.dragging {
    opacity: 0.7;
    transform: rotate(2deg) scale(0.98);
    z-index: 1000;
}

.task.editing-title {
    cursor: default;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.2);
}

.task.greyed-out {
    opacity: 0.5;
    background: #f0f0f0;
    color: #666;
}

.task.greyed-out .task-name {
    text-decoration: line-through;
}


.task-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    background: none;
    border: none;
    outline: none;
    width: 100%;
    margin-bottom: 6px;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    resize: none;
    draggable: false;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    min-height: 20px;
    line-height: 1.2;
    overflow: visible;
    height: auto;
    padding: 2px;
    font-family: inherit;
    vertical-align: top;
    box-sizing: border-box;
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.complete-btn {
    background: #2ed573;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.complete-btn:hover {
    background: #1dd1a1;
    transform: scale(1.1);
}

.task-actions.notes-editing .complete-btn,
.task-actions.notes-editing .delete-btn {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.progress-row {
    display: flex;
    gap: 15px;
    margin: 0px 0 20px 0;
}

.progress-container {
    flex: 1;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0px;
    color: #555;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    position: relative;
}

.progress-bar:active {
    cursor: grabbing;
}

.progress-bar:hover {
    height: 10px;
    transition: height 0.2s ease;
}

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

.priority-fill {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.completion-fill {
    background: linear-gradient(90deg, #feca57, #ff9ff3);
}

.task-notes-container {
    margin-top: 4px;
    margin-bottom: 15px;
    width: 100%;
}

.task-notes {
    padding: 6px;
    background: rgba(240, 240, 240, 0.7);
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.75rem;
    resize: vertical;
    min-height: 40px;
    max-height: none;
    height: auto;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease;
    line-height: 1.3;
    overflow: visible;
}

.task-notes:focus {
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.9);
}

.task-notes-display {
    margin-top: 4px;
    margin-bottom: 15px;
    overflow: visible;
    max-height: none;
    height: auto;
}

.notes-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.notes-content {
    font-size: 0.75rem;
    color: #333;
    line-height: 1.3;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none;
    overflow: visible;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    cursor: pointer;
    user-select: none;
}

.checklist-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.checklist-item span {
    flex: 1;
    transition: all 0.3s ease;
}

.checklist-item span.checked {
    text-decoration: line-through;
    color: #888;
    opacity: 0.7;
}

.task-notes-readonly {
    padding: 10px;
    padding-bottom: 20px;
    background: rgba(240, 240, 240, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    flex: 1;
    margin-top: 5px;
}

.task-notes-readonly::-webkit-scrollbar {
    width: 6px;
}

.task-notes-readonly::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.task-notes-readonly::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.task-notes-readonly::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.task-notes-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
    background: rgba(240, 240, 240, 0.2);
    border-radius: 8px;
    flex: 1;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.tasks-container.drag-over {
    background: rgba(69, 183, 209, 0.1);
    border-color: #45b7d1;
    border-style: solid;
}

.section.drag-over {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(69, 183, 209, 0.2);
    border-color: #45b7d1;
}

.hidden {
    display: none !important;
}

#newTask .task {
    border-left-color: #ff6b6b;
}

#interesting .task {
    border-left-color: #4ecdc4;
}

#boring .task {
    border-left-color: #96ceb4;
}

#leadership .task {
    border-left-color: #feca57;
}

#parkingLot .task {
    border-left-color: #45b7d1;
}

/* Theme Variables */
:root {
    --bg-gradient: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    --newTask-color: #ff6b6b;
    --interesting-color: #4ecdc4;
    --boring-color: #96ceb4;
    --leadership-color: #feca57;
    --parking-color: #45b7d1;
}

/* Wildlife Theme */
.theme-wildlife {
    --bg-gradient: linear-gradient(135deg, #8B4513, #228B22, #4682B4, #D2691E, #CD853F);
    --newTask-color: #8B4513;
    --interesting-color: #FF8C00;
    --boring-color: #228B22;
    --leadership-color: #DAA520;
    --parking-color: #4682B4;
}

.theme-wildlife .section {
    border-radius: 30px 10px 30px 10px;
    transform: rotate(-0.5deg);
}

.theme-wildlife .section:nth-child(even) {
    transform: rotate(0.5deg);
}

.theme-wildlife .task {
    border-radius: 25px 5px 25px 5px;
}

/* Ocean Theme */
.theme-ocean {
    --bg-gradient: linear-gradient(135deg, #0077be, #00a8cc, #40e0d0, #20b2aa, #4682b4);
    --newTask-color: #0077be;
    --interesting-color: #00a8cc;
    --boring-color: #40e0d0;
    --leadership-color: #20b2aa;
    --parking-color: #4682b4;
}

.theme-ocean .section {
    border-radius: 50px 20px 50px 20px;
    position: relative;
    overflow: visible;
}

.theme-ocean .section::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent, rgba(64, 224, 208, 0.3), transparent);
    border-radius: 50px 20px 50px 20px;
    z-index: -1;
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.theme-ocean .task {
    border-radius: 40px 10px 40px 10px;
}

/* Space Theme */
.theme-space {
    --bg-gradient: linear-gradient(135deg, #2c3e50, #8e44ad, #3498db, #9b59b6, #34495e);
    --newTask-color: #2c3e50;
    --interesting-color: #8e44ad;
    --boring-color: #3498db;
    --leadership-color: #9b59b6;
    --parking-color: #34495e;
}

.theme-space .section {
    border-radius: 15px;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    position: relative;
}

.theme-space .section::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        10px 8px 0 #fff,
        -5px 15px 0 #fff,
        20px 20px 0 #fff,
        -10px 5px 0 #fff;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.theme-space .task {
    border-radius: 8px;
    position: relative;
    overflow: visible;
}

.theme-space .task::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid rgba(156, 89, 182, 0.3);
    border-radius: 4px;
    clip-path: polygon(0 3px, 3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px));
    pointer-events: none;
    z-index: 1;
}

.theme-space .task .task-actions {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 20;
}

/* Forest Theme */
.theme-forest {
    --bg-gradient: linear-gradient(135deg, #27ae60, #2ecc71, #16a085, #1abc9c, #229954);
    --newTask-color: #27ae60;
    --interesting-color: #2ecc71;
    --boring-color: #16a085;
    --leadership-color: #1abc9c;
    --parking-color: #229954;
}

.theme-forest .section {
    border-radius: 60px 20px 60px 20px;
    position: relative;
}

.theme-forest .section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(39, 174, 96, 0.2) 0%, 
        rgba(46, 204, 113, 0.2) 25%, 
        rgba(22, 160, 133, 0.2) 50%, 
        rgba(26, 188, 156, 0.2) 75%, 
        rgba(34, 153, 84, 0.2) 100%);
    border-radius: 60px 20px 60px 20px;
    z-index: -1;
    filter: blur(2px);
}

.theme-forest .task {
    border-radius: 30px 8px 30px 8px;
    position: relative;
}

.theme-forest .task::after {
    content: '🍃';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 10px;
    opacity: 0.3;
}

/* Girly/Princess Theme */
.theme-girly {
    --bg-gradient: linear-gradient(135deg, #ffcccb, #ffb6c1, #ffc0cb, #f8bbd9, #ffe4e6);
    --newTask-color: #ffb6c1;
    --interesting-color: #ffc0cb;
    --boring-color: #f8bbd9;
    --leadership-color: #ff69b4;
    --parking-color: #dda0dd;
}

.theme-girly .section {
    border-radius: 25px;
    position: relative;
    box-shadow: 0 8px 32px rgba(255, 192, 203, 0.3);
}

.theme-girly .section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 182, 193, 0.3) 0%, 
        rgba(255, 192, 203, 0.3) 25%, 
        rgba(248, 187, 217, 0.3) 50%, 
        rgba(255, 105, 180, 0.3) 75%, 
        rgba(221, 160, 221, 0.3) 100%);
    border-radius: 25px;
    z-index: -1;
    filter: blur(1px);
}

.theme-girly .task {
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 192, 203, 0.2);
}

.theme-girly .task::after {
    content: '✨';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 12px;
    opacity: 0.4;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

body {
    background: var(--bg-gradient);
}

#newTask {
    border-color: var(--newTask-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--newTask-color) 10%, transparent), rgba(255, 255, 255, 0.9));
}

#interesting {
    border-color: var(--interesting-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--interesting-color) 10%, transparent), rgba(255, 255, 255, 0.9));
}

#boring {
    border-color: var(--boring-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--boring-color) 10%, transparent), rgba(255, 255, 255, 0.9));
}

#leadership {
    border-color: var(--leadership-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--leadership-color) 10%, transparent), rgba(255, 255, 255, 0.9));
}

.parking-lot {
    border-color: var(--parking-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--parking-color) 10%, transparent), rgba(255, 255, 255, 0.9));
}

#newTask .task {
    border-left-color: var(--newTask-color);
}

#interesting .task {
    border-left-color: var(--interesting-color);
}

#boring .task {
    border-left-color: var(--boring-color);
}

#leadership .task {
    border-left-color: var(--leadership-color);
}

#parkingLot .task {
    border-left-color: var(--parking-color);
}

#completed .task {
    border-left-color: #95a5a6;
}

/* Completed Tasks Styling */
.completed-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(149, 165, 166, 0.3);
}

.completed-section .task {
    opacity: 0.6;
    background: rgba(189, 195, 199, 0.3);
    border-left: 4px solid #95a5a6;
}

.completed-section .task .task-name {
    color: #7f8c8d;
    /* Remove strikethrough for completed tasks - they should just be greyed */
}

.completed-section .task .progress-fill {
    background: #95a5a6;
}

/* Hide progress bars for completed tasks */
.completed-section .task .progress-row {
    display: none !important;
}

/* Greyed out tasks (for delete functionality) */
.task.greyed-out {
    opacity: 0.4;
    background: rgba(127, 140, 141, 0.2);
}

.task.greyed-out .task-name {
    color: #95a5a6;
    text-decoration: line-through; /* Only deleted tasks get strikethrough */
}

/* Completion Animation */
.task.completing {
    animation: taskComplete 0.6s ease-in-out forwards;
    transform-origin: center;
}

@keyframes taskComplete {
    0% {
        transform: scale(1);
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
    }
    25% {
        transform: scale(1.05);
        background: rgba(46, 213, 115, 0.3);
        box-shadow: 0 0 20px rgba(46, 213, 115, 0.6);
    }
    50% {
        transform: scale(1.1);
        background: rgba(46, 213, 115, 0.5);
        box-shadow: 0 0 30px rgba(46, 213, 115, 0.8);
    }
    75% {
        transform: scale(1.05);
        background: rgba(46, 213, 115, 0.3);
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
        background: rgba(46, 213, 115, 0.2);
    }
}

@media (max-width: 768px) {
    .top-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .controls {
        align-items: center;
    }
    
    #parkingLotTasks .task, #completedTasks .task {
        flex: 0 0 calc(50% - 5px);
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    #parkingLotTasks .task, #completedTasks .task {
        flex: 0 0 100%;
        min-width: unset;
        max-width: unset;
    }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(78, 205, 196, 0.4);
    border-color: #4ecdc4;
    color: #333;
}

.tab-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    background: transparent;
}

/* Scheduler Styles */
#scheduler-tab {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.scheduler-container {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    background: transparent;
}

.scheduler-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-btn.active {
    background: #4a5568;
    color: white;
    border-color: #4a5568;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
}

.view-btn:hover {
    background: #718096;
    color: white;
    border-color: #718096;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.date-navigation button {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 2px;
}

.date-navigation button:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#currentDateDisplay {
    margin: 0 15px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.scheduler-content {
    display: flex;
    flex: 1;
    gap: 25px;
    background: transparent;
}

.schedule-grid-container {
    flex: 2.5;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: visible;
    position: relative;
}

.schedule-grid {
    display: grid;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.task-sidebar {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.task-filters h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #4a5568;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.filter-group select:focus {
    border-color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
}

.task-list {
    flex: 1;
    overflow: visible;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 15px;
}

.sidebar-task {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #4299e1;
    border: 1px solid #e2e8f0;
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-task:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
    border-left-color: #4299e1;
}

.sidebar-task.dragging {
    opacity: 0.7;
    transform: rotate(2deg);
    z-index: 1000;
}

.sidebar-task-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sidebar-task-meta {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    gap: 12px;
    font-weight: 500;
}

/* Schedule Grid Cells */
.time-header, .day-header {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 8px;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    color: #4a5568;
    height: 40px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-cell {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    height: 35px;
    min-height: 35px;
    background: white;
    transition: all 0.2s ease;
}

.grid-cell:nth-child(even) {
    background: #fafbfc;
}

.grid-cell:hover {
    background: #ebf8ff;
    border-color: #90cdf4;
}

.grid-cell.drop-zone {
    background: #e6fffa !important;
    border: 2px dashed #4299e1;
}

.scheduled-task {
    position: absolute;
    left: 3px;
    right: 3px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #2b77cb;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: move;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(66, 153, 225, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.scheduled-task:hover {
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

.scheduled-task.dragging {
    opacity: 0.8;
    z-index: 1001;
}

.scheduled-task.resizing {
    border: 2px solid #ff6b6b;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: rgba(78, 205, 196, 0.8);
    cursor: ns-resize;
    border-radius: 0 0 4px 0;
}

/* Theme-based Scheduler Styling */

/* Wildlife Theme Scheduler */
.theme-wildlife .view-btn {
    border-radius: 12px 4px 12px 4px;
    background: white;
    border: 2px solid #d69e2e;
    color: #975a16;
}

.theme-wildlife .view-btn.active {
    background: #d69e2e;
    border-color: #b7791f;
    color: white;
}

.theme-wildlife .view-btn:hover {
    background: #ed8936;
    border-color: #dd6b20;
    color: white;
}

.theme-wildlife .sidebar-task {
    border-radius: 12px 4px 12px 4px;
    border-left: 4px solid #d69e2e;
    border: 1px solid #f7e6d3;
    background: #fffaf0;
}

.theme-wildlife .sidebar-task:hover {
    background: #fef5e7;
    border-left-color: #d69e2e;
    border-color: #f6e3c5;
}

.theme-wildlife .filter-group select {
    border-radius: 8px 4px 8px 4px;
    border-color: #d69e2e;
}

.theme-wildlife .filter-group select:focus {
    border-color: #d69e2e;
    box-shadow: 0 4px 12px rgba(214, 158, 46, 0.15);
}

.theme-wildlife .time-header,
.theme-wildlife .day-header {
    background: #fffaf0;
    border-color: #f7e6d3;
    color: #975a16;
}

.theme-wildlife .grid-cell {
    border-color: #f7e6d3;
}

.theme-wildlife .grid-cell:nth-child(even) {
    background: #fffbf5;
}

.theme-wildlife .grid-cell:hover {
    background: #fef5e7;
    border-color: #d69e2e;
}

.theme-wildlife .scheduled-task {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    border-color: #975a16;
    color: white;
}

.theme-wildlife .sidebar-task-title {
    color: #975a16;
}

.theme-wildlife .sidebar-task-meta {
    color: #b7791f;
}

/* Ocean Theme Scheduler */
.theme-ocean .view-btn {
    border-radius: 20px 8px 20px 8px;
    background: white;
    border: 2px solid #3182ce;
    color: #2c5282;
}

.theme-ocean .view-btn.active {
    background: #3182ce;
    border-color: #2c5282;
    color: white;
}

.theme-ocean .view-btn:hover {
    background: #4299e1;
    border-color: #3182ce;
    color: white;
}

.theme-ocean .sidebar-task {
    border-radius: 16px 6px 16px 6px;
    border-left: 4px solid #3182ce;
    border: 1px solid #bee3f8;
    background: #ebf8ff;
    position: relative;
}

.theme-ocean .sidebar-task:hover {
    background: #e6f6ff;
    border-left-color: #3182ce;
    border-color: #90cdf4;
}

.theme-ocean .sidebar-task::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(49, 130, 206, 0.1), transparent);
    border-radius: 16px 6px 16px 6px;
    z-index: -1;
    animation: wave 3s ease-in-out infinite;
}

.theme-ocean .filter-group select {
    border-radius: 12px 6px 12px 6px;
    border-color: #3182ce;
}

.theme-ocean .filter-group select:focus {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
}

.theme-ocean .time-header,
.theme-ocean .day-header {
    background: #ebf8ff;
    border-color: #bee3f8;
    color: #2c5282;
}

.theme-ocean .grid-cell {
    border-color: #bee3f8;
}

.theme-ocean .grid-cell:nth-child(even) {
    background: #f7fafc;
}

.theme-ocean .grid-cell:hover {
    background: #e6f6ff;
    border-color: #3182ce;
}

.theme-ocean .scheduled-task {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    border-color: #2b77cb;
    color: white;
}

.theme-ocean .sidebar-task-title {
    color: #2c5282;
}

.theme-ocean .sidebar-task-meta {
    color: #3182ce;
}

/* Space Theme Scheduler */
.theme-space .view-btn {
    border-radius: 6px;
    background: white;
    border: 2px solid #805ad5;
    color: #553c9a;
    clip-path: polygon(0 4px, 4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}

.theme-space .view-btn.active {
    background: #805ad5;
    border-color: #553c9a;
    color: white;
}

.theme-space .view-btn:hover {
    background: #9f7aea;
    border-color: #805ad5;
    color: white;
}

.theme-space .sidebar-task {
    border-radius: 6px;
    border-left: 4px solid #805ad5;
    border: 1px solid #e9d8fd;
    background: #faf5ff;
    position: relative;
    clip-path: polygon(0 4px, 4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}

.theme-space .sidebar-task:hover {
    background: #f3e8ff;
    border-left-color: #805ad5;
    border-color: #d6bcfa;
}

.theme-space .sidebar-task::after {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    opacity: 0.8;
    color: #ffd700;
    animation: twinkle 2s infinite alternate;
}

.theme-space .filter-group select {
    border-radius: 6px;
    border-color: #805ad5;
    clip-path: polygon(0 3px, 3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px));
}

.theme-space .filter-group select:focus {
    border-color: #805ad5;
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.15);
}

.theme-space .time-header,
.theme-space .day-header {
    background: #faf5ff;
    border-color: #e9d8fd;
    color: #553c9a;
    clip-path: polygon(0 3px, 3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px));
}

.theme-space .grid-cell {
    border-color: #e9d8fd;
}

.theme-space .grid-cell:nth-child(even) {
    background: #fffcff;
}

.theme-space .grid-cell:hover {
    background: #f3e8ff;
    border-color: #805ad5;
}

.theme-space .scheduled-task {
    background: linear-gradient(135deg, #805ad5, #553c9a);
    border-color: #553c9a;
    color: white;
}

.theme-space .sidebar-task-title {
    color: #553c9a;
}

.theme-space .sidebar-task-meta {
    color: #805ad5;
}

/* Forest Theme Scheduler */
.theme-forest .view-btn {
    border-radius: 24px 8px 24px 8px;
    background: white;
    border: 2px solid #38a169;
    color: #2f855a;
}

.theme-forest .view-btn.active {
    background: #38a169;
    border-color: #2f855a;
    color: white;
}

.theme-forest .view-btn:hover {
    background: #48bb78;
    border-color: #38a169;
    color: white;
}

.theme-forest .sidebar-task {
    border-radius: 20px 6px 20px 6px;
    border-left: 4px solid #38a169;
    border: 1px solid #c6f6d5;
    background: #f0fff4;
    position: relative;
}

.theme-forest .sidebar-task:hover {
    background: #e6ffed;
    border-left-color: #38a169;
    border-color: #9ae6b4;
}

.theme-forest .sidebar-task::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(56, 161, 105, 0.05) 0%, 
        rgba(72, 187, 120, 0.05) 25%, 
        rgba(56, 161, 105, 0.05) 50%, 
        rgba(47, 133, 90, 0.05) 75%, 
        rgba(56, 161, 105, 0.05) 100%);
    border-radius: 20px 6px 20px 6px;
    z-index: -1;
    filter: blur(0.5px);
}

.theme-forest .sidebar-task::after {
    content: '🌿';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    opacity: 0.7;
}

.theme-forest .filter-group select {
    border-radius: 16px 6px 16px 6px;
    border-color: #38a169;
}

.theme-forest .filter-group select:focus {
    border-color: #38a169;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.15);
}

.theme-forest .time-header,
.theme-forest .day-header {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #2f855a;
}

.theme-forest .grid-cell {
    border-color: #c6f6d5;
}

.theme-forest .grid-cell:nth-child(even) {
    background: #fafffe;
}

.theme-forest .grid-cell:hover {
    background: #e6ffed;
    border-color: #38a169;
}

.theme-forest .scheduled-task {
    background: linear-gradient(135deg, #38a169, #2f855a);
    border-color: #2f855a;
    color: white;
}

.theme-forest .sidebar-task-title {
    color: #2f855a;
}

.theme-forest .sidebar-task-meta {
    color: #38a169;
}

/* Girly/Princess Theme Scheduler */
.theme-girly .view-btn {
    border-radius: 16px;
    background: white;
    border: 2px solid #d53f8c;
    color: #b83280;
    box-shadow: 0 3px 12px rgba(213, 63, 140, 0.15);
}

.theme-girly .view-btn.active {
    background: #d53f8c;
    border-color: #b83280;
    color: white;
    box-shadow: 0 5px 16px rgba(213, 63, 140, 0.3);
}

.theme-girly .view-btn:hover {
    background: #e53e3e;
    border-color: #d53f8c;
    color: white;
}

.theme-girly .sidebar-task {
    border-radius: 12px;
    border-left: 4px solid #d53f8c;
    border: 1px solid #fed7e2;
    background: #fffaf0;
    position: relative;
    box-shadow: 0 3px 12px rgba(213, 63, 140, 0.1);
}

.theme-girly .sidebar-task:hover {
    background: #fef5e7;
    border-left-color: #d53f8c;
    border-color: #fbb6ce;
}

.theme-girly .sidebar-task::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(213, 63, 140, 0.05) 0%, 
        rgba(237, 100, 166, 0.05) 25%, 
        rgba(213, 63, 140, 0.05) 50%, 
        rgba(184, 50, 128, 0.05) 75%, 
        rgba(213, 63, 140, 0.05) 100%);
    border-radius: 12px;
    z-index: -1;
    filter: blur(0.5px);
}

.theme-girly .sidebar-task::after {
    content: '💖';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    opacity: 0.8;
    animation: sparkle 2s ease-in-out infinite;
}

.theme-girly .filter-group select {
    border-radius: 12px;
    border-color: #d53f8c;
    box-shadow: 0 3px 8px rgba(213, 63, 140, 0.1);
}

.theme-girly .filter-group select:focus {
    border-color: #d53f8c;
    box-shadow: 0 4px 12px rgba(213, 63, 140, 0.2);
}

.theme-girly .time-header,
.theme-girly .day-header {
    background: #fffaf0;
    border-color: #fed7e2;
    color: #b83280;
    box-shadow: 0 3px 8px rgba(213, 63, 140, 0.1);
}

.theme-girly .grid-cell {
    border-color: #fed7e2;
}

.theme-girly .grid-cell:nth-child(even) {
    background: #fffcfa;
}

.theme-girly .grid-cell:hover {
    background: #fef5e7;
    border-color: #d53f8c;
}

.theme-girly .scheduled-task {
    background: linear-gradient(135deg, #d53f8c, #b83280);
    border-color: #b83280;
    color: white;
}

.theme-girly .sidebar-task-title {
    color: #b83280;
}

.theme-girly .sidebar-task-meta {
    color: #d53f8c;
}