/* My Palette */
:root {
    --bg-color: #f0f2f5;       
    --card-bg: #ffffff;
    --text-main: #1e293b;      
    --text-muted: #64748b;     
    --accent: #0f172a;         
    --success: #10b981;        
    --danger: #ef4444;
    --low-priority: #f1f5f9;   
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* The Card Container (Responsiveness) */
.todo-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px; /* Designer's choice for readability */
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.2s ease;
}

/* Header & Checkbox Styling */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.title-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Custom Checkbox - Human Touch */
#todo-toggle {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--success); 
}

#task-title {
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Completed State Style */
.completed-text {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Badges & Tags */
.priority-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    background: #e1fdf4;
    color: #00b894;
    background: var(--low-priority);
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap; 
    gap: 8px;
    margin-top: 16px;
}

.tag-list li {
    font-size: 0.75rem;
    background: #f1f2f6;
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--text-muted);
}

/* Footer & Actions */
.card-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #dfe6e9;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

time {
    display: block;
    font-size: 0.85rem;
}

#time-remaining {
    font-weight: 600;
    color: var(--text-main);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--text-muted);
}

.btn-icon:hover {
    background: #f1f2f6;
}

.btn-icon:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.delete:hover {
    color: var(--danger);
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    background: var(--accent); 
    color: white;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}