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

/* ===================================
   BODY
=================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3fb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ===================================
   CONTAINER
=================================== */

.container {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ===================================
   HEADER
=================================== */

.header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.logo {
    width: 140px;
}

.header-text h1 {
    font-size: 3rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.header-text p {
    font-size: 1.2rem;
    color: #64748b;
}

/* ===================================
   INPUT SECTION
=================================== */
.task-input-card{
    background:#fff;
    padding:20px;
    border-radius:18px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);

    display:flex;
    gap:15px;
    align-items:center;

    margin-bottom:25px;
}

.add-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 18px 30px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.add-btn:hover{
    background: #16a34a;
    transform: translateY(-1px);
}

.plus-icon{
    width: 22px;
    height: 22px;
}

.task-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 18px 18px 50px;
    font-size: 18px;
    border: 2px solid #dbe3f3;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

.input-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.6;
}

.task-input button {
    padding: 18px 30px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.task-input button:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

#task-list li:last-child{
    border-bottom: none;
}
/* ===================================
   TASK INFO
=================================== */
.divider{
    height: 1px;
    background: #dbe3f3;
    margin: 20px 0;
}

.task-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-icon {
    width: 22px;
    height: 22px;
}
.task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.task-info h2 {
    color: #0f172a;
}

.counts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.counts p {
    background: #edf2fb;
    padding: 10px 18px;
    border-radius: 20px;
    color: #475569;
    font-weight: bold;
}

/* ===================================
   TASK LIST
=================================== */
.circle {
    width: 22px;
    height: 22px;
    border: 2px solid #2563eb; /* Blue border */
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
    flex-shrink: 0;

}
.completed {
    background: #e8f8ee;
}

.completed span {
    text-decoration: line-through;
    color: #6b7280;
}
.completed-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 14px;
    font-weight: bold;
}
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-btn img {
    width: 22px;
    height: 22px;
}

.delete-btn:hover {
    transform: scale(1.15);
};

#task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-box{
    background: #ffffff;
    border: 1px solid #dbe3f3;
    border-radius: 16px;
    overflow: hidden;
}

#task-list li{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 20px;
    font-size: 18px;
    transition: 0.3s;

    border-bottom: 1px solid #dbe3f3;
}

.task-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

#task-list li:hover {
    background: #f8fbff;
    transform: translateX(3px);
}


.completed {
    background: #e8f8ee !important;
    color: #6b7280;
    text-decoration: line-through;
}

/* ===================================
   FOOTER
=================================== */

.instruction {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 30px;

    color: #64748b;
    font-size: 15px;
    text-align: center;
}

.instruction-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    .header-text h1 {
        font-size: 2.2rem;
    }

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

    .task-input button {
        width: 100%;
    }
}