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

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    color: white;

    background: linear-gradient(160deg, #0a1f0d 0%, #0f2a14 50%, #0c1e10 100%);

    padding: 30px;
}

.app {
    max-width: 1380px;
    margin: auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
}
.sidebar {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    padding: 28px;
    height: fit-content;

    /* Ostaje vidljiv pri scrollanju */
    position: sticky;
    top: 20px;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.9rem;
    margin-bottom: 14px;
    line-height: 1.2;
}
.subtitle {
    color: #b8ccbb;
    line-height: 1.75;
    font-size: .92rem;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 14px;
}

.progress-wrapper {
    margin-top: 26px;
}

.progress-label {
    font-size: .85rem;
    color: #a0b8a3;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6dde5a, #2e8b3a);
    border-radius: 999px;
    transition: width .4s ease;
}

.progress-percent {
    margin-top: 8px;
    font-size: .9rem;
    color: #8eda78;
    font-weight: 600;
}
.controls {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="text"],
select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.07);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    outline: none;
}

input::placeholder {
    color: rgba(255,255,255,.35);
}


option {
    color: black;
    background: white;
}
.btn-add {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #4db84e, #2a7a2e);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
}

.btn-add:hover {
    transform: translateY(-2px);
    opacity: .92;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 42px 48px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero p {
    max-width: 680px;
    line-height: 1.8;
    color: #ccd9ce;
    font-size: .95rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 24px;
    text-align: center;
}

.stat-card h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    margin-bottom: 6px;
}

.stat-card p {
    color: #a0b8a3;
    font-size: .88rem;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.category {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 22px;
}

.category h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.badge {
    display: inline-block;
    background: rgba(110,220,90,.12);
    color: #8eda78;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    margin-bottom: 14px;
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.item:last-child {
    border-bottom: none;
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #59d66f;
    cursor: pointer;
    flex-shrink: 0;
}

.item span {
    flex: 1;
    font-size: .92rem;
}

.checked {
    text-decoration: line-through;
    opacity: .45;
}

.btn-delete {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255,80,80,.25);
    background: rgba(255,80,80,.12);
    color: #ffaaaa;
    font-size: .9rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

.btn-delete:hover {
    background: rgba(255,80,80,.25);
}

footer {
    text-align: center;
    opacity: .5;
    font-size: .85rem;
    margin-top: 10px;
}

/* RESPONSIVE (manji ekrani)*/
@media (max-width: 980px) {
    .app {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: auto;
    }
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 560px) {
    .stats {
        grid-template-columns: 1fr;
    }
    body {
        padding: 16px;
    }
}
