*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI, sans-serif;
}

body{
    background:#0f1117;
    color:white;
    min-height:100vh;
    padding:40px;
}

.container{
    max-width:1200px;
    margin:auto;
}

header{
    text-align:center;
    margin-bottom:40px;
}

header h1{
    font-size:3rem;
    margin-bottom:10px;
}

header p{
    color:#a0a0a0;
}

.add-task{
    display:flex;
    gap:15px;
    margin-bottom:30px;
}

.add-task input{
    flex:1;
    padding:15px;
    border:none;
    outline:none;
    background:#1a1d24;
    color:white;
    border-radius:10px;
}

.add-task button{
    padding:15px 30px;
    border:none;
    border-radius:10px;
    background:#3b82f6;
    color:white;
    cursor:pointer;
    font-weight:600;
}

.add-task button:hover{
    opacity:.9;
}

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:40px;
}

.card{
    background:#1a1d24;
    padding:25px;
    border-radius:15px;
    text-align:center;
}

.card h3{
    color:#9ca3af;
    margin-bottom:15px;
}

.card span{
    font-size:2rem;
    font-weight:bold;
    color:#22c55e;
}

.task-section{
    background:#1a1d24;
    padding:25px;
    border-radius:15px;
}

.task-section h2{
    margin-bottom:20px;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:15px;
    border-bottom:1px solid #2a2f38;
    text-align:left;
}

th{
    color:#cbd5e1;
}

input[type="checkbox"]{
    width:18px;
    height:18px;
    cursor:pointer;
}

.progress{
    width:100%;
    height:8px;
    background:#2a2f38;
    border-radius:20px;
    overflow:hidden;
}

.bar{
    height:100%;
    background:#22c55e;
    border-radius:20px;
}

tr:hover{
    background:#222733;
}

@media(max-width:768px){

    .add-task{
        flex-direction:column;
    }

    table{
        font-size:14px;
    }

    header h1{
        font-size:2rem;
    }
}
