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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#todo-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 1rem;
}

#todo-input::placeholder {
    color: #666;
}

#due-date-input {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 1rem;
}

#category-select,
#priority-select {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 1rem;
    cursor: pointer;
}

#add-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #0f3460;
    color: #eee;
    font-size: 1rem;
    cursor: pointer;
}

#add-btn:hover {
    background: #1a5276;
}

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

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #16213e;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid transparent;
}

.todo-item.priority-high {
    border-left-color: #e94560;
}

.todo-item.priority-medium {
    border-left-color: #f39c12;
}

.todo-item.priority-low {
    border-left-color: #27ae60;
}

.todo-item.overdue {
    background: #2d1b1b;
}

.todo-item.due-today {
    background: #2d2b1b;
}

.todo-item.due-soon {
    background: #1b2d2b;
}

.todo-item.done .todo-text {
    text-decoration: line-through;
    opacity: 0.5;
}

.category-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-transform: capitalize;
    font-weight: bold;
}

.category-badge.category-work {
    background: #3498db;
    color: white;
}

.category-badge.category-personal {
    background: #9b59b6;
    color: white;
}

.category-badge.category-health {
    background: #2ecc71;
    color: white;
}

.category-badge.category-finance {
    background: #e67e22;
    color: white;
}

.category-badge.category-learning {
    background: #f1c40f;
    color: black;
}

.priority-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.priority-badge.priority-high {
    background: #e94560;
    color: white;
}

.priority-badge.priority-medium {
    background: #f39c12;
    color: white;
}

.priority-badge.priority-low {
    background: #27ae60;
    color: white;
}

.todo-text {
    flex: 1;
}

.due-date {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: #0f3460;
    color: #ccc;
}

.due-date.overdue {
    background: #e94560;
    color: white;
}

.due-date.due-today {
    background: #f39c12;
    color: white;
}

.due-date.due-soon {
    background: #3498db;
    color: white;
}

.delete-btn {
    background: none;
    border: none;
    color: #e94560;
    cursor: pointer;
    font-size: 1.2rem;
}