/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #667eea;
    overflow-x: auto;
    min-height: 100vh;
    transition: background 0.5s ease;
}

/* Neutral Gradient Background */
.wooden-background {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    transition: background 0.5s ease;
}

/* Background Theme Classes */
.wooden-background.purple-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wooden-background.ocean {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.wooden-background.sunset {
    background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
}

.wooden-background.forest {
    background: linear-gradient(135deg, #81ecec 0%, #00b894 100%);
}

.wooden-background.slate {
    background: linear-gradient(135deg, #b2bec3 0%, #636e72 100%);
}

.wooden-background.rose {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

/* Header Styles */
.app-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.app-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.app-title i {
    color: #FFD700;
    margin-right: 15px;
}

.app-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 20px;
}

/* Background Selector */
.background-selector {
    margin-top: 20px;
}

.background-selector label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.theme-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-options input[type="radio"] {
    display: none;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-option:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.theme-options input[type="radio"]:checked + .theme-option {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

/* Theme Option Colors */
.theme-option.purple-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-option.ocean {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.theme-option.sunset {
    background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
}

.theme-option.forest {
    background: linear-gradient(135deg, #81ecec 0%, #00b894 100%);
}

.theme-option.slate {
    background: linear-gradient(135deg, #b2bec3 0%, #636e72 100%);
}

.theme-option.rose {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

/* Task Board */
.task-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Task Columns */
.task-column {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.task-column:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.column-header h2 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.column-header i {
    margin-right: 10px;
    color: #FFD700;
}

/* Add Task Button */
.add-task-btn {
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #32CD32, #228B22);
}

/* Task Lists */
.task-list {
    min-height: 300px;
    position: relative;
}

/* Post-it Note Styles */
.task-note {
    background: #FFEB3B;
    margin: 15px 0;
    padding: 15px;
    border-radius: 0;
    position: relative;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transform: rotate(-1deg);
    font-family: 'Caveat', cursive;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.task-note:nth-child(even) {
    transform: rotate(1deg);
}

.task-note:nth-child(3n) {
    transform: rotate(-0.5deg);
}

.task-note:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Post-it Note Colors */
.task-note.yellow { background: #FFEB3B; }
.task-note.pink { background: #E91E63; color: white; }
.task-note.blue { background: #2196F3; color: white; }
.task-note.green { background: #4CAF50; color: white; }
.task-note.orange { background: #FF9800; color: white; }
.task-note.purple { background: #9C27B0; color: white; }

/* Post-it Note Tape Effect */
.task-note::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.task-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.task-description {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

.task-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.task-btn {
    background: none;
    border: 2px solid currentColor;
    color: inherit;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.task-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    background: currentColor;
    color: white;
}

.task-btn.move-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
}

.task-btn.delete-btn {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
    border: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #F4E4BC, #E6D3A3);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid #8B4513;
}

.modal-header {
    background: linear-gradient(145deg, #8B4513, #654321);
    color: #F4E4BC;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 600;
}

.close {
    color: #F4E4BC;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #FFD700;
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #654321;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #D2691E;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

/* Color Picker */
.color-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-picker input[type="radio"]:checked + .color-option {
    border-color: #654321;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.color-option.yellow { background: #FFEB3B; }
.color-option.pink { background: #E91E63; }
.color-option.blue { background: #2196F3; }
.color-option.green { background: #4CAF50; }
.color-option.orange { background: #FF9800; }
.color-option.purple { background: #9C27B0; }

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-cancel,
.btn-create {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f44336;
    color: white;
}

.btn-cancel:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.btn-create {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn-create:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
}

/* Animation Styles */
#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    animation: confetti-fall 3s linear forwards;
}

.firework {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FF6B6B;
    border-radius: 50%;
    animation: firework-burst 2s ease-out forwards;
}

.heart {
    position: absolute;
    font-size: 20px;
    color: #E91E63;
    animation: hearts-float 3s ease-out forwards;
}

.star {
    position: absolute;
    font-size: 16px;
    color: #FFD700;
    animation: stars-twinkle 2s ease-in-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes firework-burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes hearts-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

@keyframes stars-twinkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .task-board {
        grid-template-columns: 1fr;
    }
    
    .app-title {
        font-size: 2.5rem;
    }
    
    .column-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .theme-options {
        gap: 8px;
    }
    
    .theme-option {
        width: 35px;
        height: 35px;
    }
}

/* Drag and Drop Styles */
.task-note.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(1.05);
}

.task-list.drag-over {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #FFD700;
    border-radius: 8px;
}

/* Drop Indicator */
.drop-indicator {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    margin: 5px 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: pulse-indicator 1s ease-in-out infinite alternate;
}

@keyframes pulse-indicator {
    0% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.5);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}
