:root {
    --bg: #f7f7fb;
    --card: rgba(255, 255, 255, 0.78);
    /* lighter glass */
    --accent: #e3a6dc;
    /* softer, grounded pink */
    --accent-strong: #c987c0;
    --muted: #5f6673;
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}


/* =========================
   BODY + BACKGROUND IMAGE
========================= */

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: #111;
    margin: 24px;
    background-image: linear-gradient( rgba(247, 247, 251, 0.75), rgba(247, 247, 251, 0.75)), url("image/image1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


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

.app {
    max-width: 720px;
    margin: 0 auto;
}


/* =========================
   CARD (PROPER GLASS EFFECT)
========================= */

.card {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.08);
}


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

.app__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.app__title {
    margin: 0;
    font-size: 1.75rem;
    text-align: center;
    margin-left: 25%;
}

.app__subtitle {
    color: #4b5563;
    margin-top: 6px;
    text-align: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}


/* =========================
   ADD TASK FORM
========================= */

.add__form {
    display: flex;
    gap: 12px;
}

#taskInput {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

#addBtn {
    background: var(--accent);
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(201, 135, 192, 0.45);
}

#addBtn:hover {
    background: var(--accent-strong);
}


/* =========================
   TASK LIST
========================= */

.task-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.task__label {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.task__text {
    font-size: 0.95rem;
}

.task__text.is-done {
    text-decoration: line-through;
    color: #9ca3af;
}

.stat {
    font-size: 0.9rem;
    color: black;
    margin-top: 12px;
    font-weight: 500;
}

.stats {
    text-align: center;
}

.filters {
    text-align: center;
}


/* =========================
   DELETE BUTTON
========================= */

.delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
}


/* =========================
   FILTER CHIPS
========================= */

.chip {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 25px;
    margin-right: 30px;
}

.chip.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}


/* =========================
   TEXT / HELPERS
========================= */

.hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.empty {
    padding: 22px;
    text-align: center;
    color: var(--muted);
}


/* =========================
   ACCESSIBILITY
========================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}