body {
    margin: 0;
    padding: 0;
}

/* Shared header and theme styles are applied by main.css */

nav {
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

#task-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#task-text, #task-priority {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

button {
    background-color: var(--section-accent);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

button:hover {
    opacity: 0.95;
}

#filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background-color: #ddd;
}

.filter-btn.active {
    background-color: var(--section-accent);
    color: white;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.task-content {
    flex-grow: 1;
}

.task-text {
    margin-bottom: 0.5rem;
}

.task-priority {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: white;
}

.priority-low {
    background-color: #4CAF50;
}

.priority-medium {
    background-color: #ff9800;
}

.priority-high {
    background-color: #f44336;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--muted);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.complete-btn {
    background-color: #2196F3;
}

.complete-btn:hover {
    background-color: #1976D2;
}

.delete-btn {
    background-color: #f44336;
}

.delete-btn:hover {
    background-color: #d32f2f;
}