:root {
    --primary: #00f2ff;
    --danger: #ff4757;
    --bg: #121212;
    --card: #1e1e1e;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    padding-top: 60px;
    margin: 0;
}

.todo-app {
    background: var(--card);
    width: 420px;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

header p { color: #666; font-size: 0.9rem; margin-bottom: 25px; }

/* Control Layout */
.scheduler-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }

#taskInput {
    background: #252525;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.logic-row { display: flex; gap: 10px; align-items: flex-end; }

.input-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }

.input-group label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
}

.input-group input {
    background: #252525;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
}

.add-btn {
    background: var(--primary);
    border: none;
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* List Styling */
ul { list-style: none; padding: 0; }

.task-item {
    background: #252525;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid transparent;
    transition: 0.3s;
}

.task-item.completed { opacity: 0.4; text-decoration: line-through; border-left-color: #444; }

.task-item.overdue { border-left-color: var(--danger); animation: pulse 2s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.deadline-badge { font-size: 11px; color: var(--primary); margin-top: 5px; opacity: 0.8; }

.delete-btn { color: #555; cursor: pointer; }
.delete-btn:hover { color: var(--danger); }

.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

.clear-btn { background: none; border: 1px solid #333; color: #666; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.clear-btn:hover { color: white; border-color: white; }