/* Main Styles */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-text);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: var(--font-size-xl);
    color: #667eea;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Task Form */
.task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.task-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: var(--font-size-base);
    transition: all 0.3s;
}

.task-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.add-button:active {
    transform: translateY(0);
}

/* Sections */
.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.completed-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

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

.toggle-button {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.toggle-button:hover {
    background: #f1f5f9;
    color: #667eea;
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.task-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.completed-section .task-item {
    opacity: 0.7;
}

.completed-section .task-item:hover {
    opacity: 1;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.task-title {
    flex: 1;
    font-size: var(--font-size-base);
    color: #1e293b;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: #94a3b8;
}

.delete-button {
    width: 32px;
    height: 32px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    list-style: none;
}

/* Actions */
.actions {
    margin-top: 20px;
    text-align: center;
}

.clear-all-button {
    padding: 12px 24px;
    background: transparent;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-all-button:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: var(--font-size-lg);
    }
}
