/* Professional Deep-Dark Theme */
:root {
    --bg-main: #0b0e14;         /* Very dark navy/black */
    --bg-card: #161b22;         /* GitHub-style dark grey */
    --bg-input: #0d1117;        /* Inset dark */
    --text-primary: #e6edf3;    /* Soft white */
    --text-secondary: #8b949e;  /* Muted grey */
    --accent: #2ea043;          /* Success green (easier on eyes than neon) */
    --accent-hover: #3fb950;
    --danger: #f85149;
    --border: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Glassmorphism Container */
.container-base {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.container {
    width: 100%;
}

/* Stats Section - Redesigned for a cleaner look */
.stats-container {
    background: var(--bg-input);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
   
}

.details{
    flex: 1; 
}
.details h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

#progressBar {
   
    height: 6px;
    background-color: var(--border);
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

#progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #58a6ff);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#numbers {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    margin: 2px;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(46, 160, 67, 0.15);
}

/* Input Area */
form {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
     margin: 20px 5px;
}

input[type="text"] {
   flex-grow: 1;
 
   min-width: 85%;
}

input {
    
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
   
}

input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

button#newTask {
   
   min-width: 46px;
    height: 46px;
    margin-top: 2px;
    /* border-radius: 8px; */
    padding-bottom:6px;
    border: none;
    background-color: var(--accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

button#newTask:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

button#newTask:active {
   
    transform: translateY(1px);
}

/* Task List Items */
#task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taskItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-input);
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.taskItem:hover {
    border-color: var(--border);
    background-color: #1c2128;
}

.task {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Checkbox Appearance */
.checkbox {
    appearance: none;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox:checked::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 12px;
    left: 5px; 
   
    top: 2px;
}

.task.completed p {
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.6;
}

.task p {
    font-size: 0.95rem;
    transition: color 0.3s;
}

/* Icons */
.icons {
    display: flex;
    gap: 12px;
    opacity: 0.4; /* Hidden until hover */
    transition: opacity 0.2s;
}

.taskItem:hover .icons {
    opacity: 1;
}

.icons img {
    width: 22px;
    height: 22px;
    /* filter: invert(1); Makes black icons white for dark mode */

    cursor: pointer;
    transition: transform 0.2s;
}

.icons img:hover {
    transform: scale(1.2);

}
