: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; }

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

#taskInput, .input-group input {
    background: #252525;
    border: 1px solid #333;
    color: white;
    outline: none;
    transition: 0.3s;
}

#taskInput { padding: 15px; border-radius: 10px; font-size: 1rem; }
#taskInput:focus { border-color: var(--primary); }

.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 { padding: 10px; border-radius: 8px; font-size: 0.8rem; }

.add-btn {
    background: var(--primary);
    border: none;
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.add-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

/* Task Items */
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;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.task-item:hover {
    background: #2d2d2d;
    transform: translateX(5px);
}

.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-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary);
    background: rgba(0,0,0,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
}

.delete-btn { color: #555; font-size: 18px; padding: 5px; transition: 0.2s; }
.delete-btn:hover { color: var(--danger); transform: scale(1.2); }

.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 { border-color: white; color: white; }