/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-x1e0e8q2g9] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--ab-body-bg);
}

/* Glavni content wrapper */
main[b-x1e0e8q2g9] {
    flex: 1;
    background: transparent;
}

/* Sidebar = naš meda / navigacija */
.sidebar[b-x1e0e8q2g9] {
    background: linear-gradient( 180deg, var(--ab-sidebar-start) 0%, var(--ab-sidebar-mid) 40%, var(--ab-sidebar-end) 100% );
    border-right: 1px solid var(--ab-border-soft);
}


/* Po defaultu content koristi celu širinu <main>-a */
article.content[b-x1e0e8q2g9] {
    width: 100%;
    margin: 0;
    padding: 1.75rem 1.75rem 3rem 1.75rem;
}

/* Širi ekrani: sidebar levo, content desno – više "Kraken" osećaj */
@media (min-width: 641px) {
    .page[b-x1e0e8q2g9] {
        flex-direction: row;
    }

    .sidebar[b-x1e0e8q2g9] {
        width: 250px; /* ← ovo je već full širina */
        height: 100vh;
        position: sticky;
        top: 0;
    }

    main[b-x1e0e8q2g9] {
        display: flex;
        flex: 1;
        justify-content: flex-start;
    }

    article.content[b-x1e0e8q2g9] {
        max-width: 1360px; /* veliki, ali ne beskonačan "canvas" */
        margin-left: 0; /* poravnaj uz sidebar */
        margin-right: auto; /* višak širine ide na desnu stranu */
        padding: 2rem 2.25rem 3rem 2.25rem;
    }
}

/* Error UI (ostaje isto) */
#blazor-error-ui[b-x1e0e8q2g9] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-x1e0e8q2g9] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-9daaamhkc9] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-9daaamhkc9] {
    background-color: rgba(255, 255, 255, 0.5);
}

/* === AnxietyBear header u sidebaru === */
.ab-nav-header[b-9daaamhkc9] {
    padding: 1.25rem 1.25rem 0.5rem;
}

.ab-nav-logo[b-9daaamhkc9] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ab-nav-avatar[b-9daaamhkc9] {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #facc15, #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ab-nav-app[b-9daaamhkc9] {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--ab-text-main);
}

.ab-nav-sub[b-9daaamhkc9] {
    font-size: 0.8rem;
    color: var(--ab-text-muted);
}


.top-row[b-9daaamhkc9] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-9daaamhkc9] {
    font-size: 1.1rem;
}

.bi[b-9daaamhkc9] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-9daaamhkc9] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-9daaamhkc9] {
    font-size: 1.02rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-9daaamhkc9] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-9daaamhkc9] {
        padding-bottom: 1rem;
    }

    /* osnovni izgled linka u meniju */
    .nav-item[b-9daaamhkc9]  .nav-link {
        color: var(--ab-text-muted);
        background: none;
        border: none;
        border-radius: 999px;
        height: 2.75rem;
        display: flex;
        align-items: center;
        width: 100%;
        padding-inline: 0.3rem 0.9rem;
        column-gap: 0.6rem;
    }

        /* ikonice kao mali �pill� u okviru linka */
        .nav-item[b-9daaamhkc9]  .nav-link .bi {
            width: 1.8rem;
            height: 1.8rem;
            border-radius: 999px;
            background-color: var(--ab-accent-soft);
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
            margin-right: 0.4rem;
        }

    /* aktivni link � jasno ali ne�no */
    .nav-item[b-9daaamhkc9]  a.active {
        background: linear-gradient( 90deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.16) );
        color: var(--ab-text-main);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
    }

        .nav-item[b-9daaamhkc9]  a.active .bi {
            background-color: #2563eb;
        }

    /* hover stanje za neaktivne */
    .nav-item[b-9daaamhkc9]  .nav-link:hover:not(.active) {
        background-color: rgba(15, 23, 42, 0.03);
        color: var(--ab-text-main);
    }


.nav-scrollable[b-9daaamhkc9] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-9daaamhkc9] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-9daaamhkc9] {
        display: none;
    }

    .nav-scrollable[b-9daaamhkc9] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Modules/ModuleCard.razor.rz.scp.css */
/* Module cards on Challenge Overview */

.mod-card[b-yzy1h5qgyv] {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    margin-bottom: 0.6rem;
    border-left: 4px solid var(--ab-sky-3); /* “shirt” plava traka */
}


.mod-top[b-yzy1h5qgyv] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.mod-main[b-yzy1h5qgyv] {
    flex: 1;
    min-width: 0;
}

.mod-title[b-yzy1h5qgyv] {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mod-sub[b-yzy1h5qgyv] {
    font-size: 0.86rem;
    color: #6b7280;
    margin-bottom: 0;
}

.mod-badge[b-yzy1h5qgyv] {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.mod-actions[b-yzy1h5qgyv] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    opacity: 0.8;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Kad pređeš mišem ili fokusiraš, akcije postaju najjasnije */
.mod-card:hover .mod-actions[b-yzy1h5qgyv],
.mod-card:focus-within .mod-actions[b-yzy1h5qgyv] {
    opacity: 1;
    transform: translateY(-1px);
}


/* diskretna dugmad */
.mod-btn[b-yzy1h5qgyv],
.mod-btn-danger[b-yzy1h5qgyv] {
    border-radius: 999px;
    font-size: 0.8rem; /* malo veći tekst */
    padding: 0.18rem 0.7rem;
    border: none;
    background: transparent;
    font-weight: 500; /* polu‑bold, čitljivo ali ne vrišti */
}


.mod-btn[b-yzy1h5qgyv] {
    color: #4b5563;
}

    .mod-btn:hover[b-yzy1h5qgyv] {
        background: #e5e7eb;
    }

.mod-btn-danger[b-yzy1h5qgyv] {
    color: #b91c1c;
}

    .mod-btn-danger:hover[b-yzy1h5qgyv] {
        background: #fee2e2;
    }


.mod-rename[b-yzy1h5qgyv] {
    margin-top: 0.6rem;
}

/* Mobile tweak */
@media (max-width: 768px) {
    .mod-top[b-yzy1h5qgyv] {
        flex-direction: column;
        align-items: flex-start;
    }

    .mod-actions[b-yzy1h5qgyv] {
        flex-direction: row;
    }
}
/* /Components/Pages/ChallengeDetails.razor.rz.scp.css */
/* ChallengeDetails page (scoped CSS)
   - Header card: lavender
   - All other cards: white (no "shock" when switching tabs)
   - Range pills like DiaryArchive (30d / 90d / YTD / All)
   - Keep dropdown arrow on Module select (DO NOT override background-image)
*/

.cdl-container[b-og3fvtb0z1] {
    max-width: 1320px;
    margin-left: 0;
    margin-right: auto;
    padding: 0.75rem 0.75rem 2.5rem 0.75rem;
}

/* Loading */
.cdl-loading[b-og3fvtb0z1] {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
}

/* ---------------- HEADER CARD (lavender) ---------------- */

.cdl-header-card[b-og3fvtb0z1] {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(196, 181, 253, 0.70);
    background: linear-gradient(135deg, rgba(221, 214, 254, 0.88), rgba(237, 233, 254, 0.96));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.cdl-header[b-og3fvtb0z1] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    margin-bottom: 14px;
}

.cdl-h-left[b-og3fvtb0z1] {
    min-width: 0;
}

.cdl-h-right[b-og3fvtb0z1] {
    width: 100%;
}

.cdl-title[b-og3fvtb0z1] {
    font-size: 2.35rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.cdl-desc[b-og3fvtb0z1] {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.45;
}

.cdl-meta[b-og3fvtb0z1] {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: #64748b;
}

.cdl-hero[b-og3fvtb0z1] {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(196, 181, 253, 0.55);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

/* Tabs – lavender pill style */
.cdl-tabs[b-og3fvtb0z1] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 181, 253, 0.70);
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.cdl-tab[b-og3fvtb0z1] {
    border: 1px solid transparent;
    background: transparent;
    padding: 0.36rem 0.95rem;
    font-size: 0.92rem;
    border-radius: 999px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.05s ease;
}

    .cdl-tab:hover[b-og3fvtb0z1] {
        background: rgba(221, 214, 254, 0.60);
        color: #4c1d95;
    }

    .cdl-tab:active[b-og3fvtb0z1] {
        transform: translateY(1px);
    }

    .cdl-tab:focus[b-og3fvtb0z1] {
        outline: none;
    }

    .cdl-tab:focus-visible[b-og3fvtb0z1] {
        outline: 2px solid rgba(139, 92, 246, 0.45);
        outline-offset: 2px;
    }

    .cdl-tab.active[b-og3fvtb0z1] {
        background: rgba(221, 214, 254, 0.95);
        border-color: rgba(167, 139, 250, 0.90);
        color: #5b21b6;
    }

/* ---------------- BODY LAYOUT ---------------- */

.cdl-body[b-og3fvtb0z1] {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem;
}

.cdl-col-left[b-og3fvtb0z1],
.cdl-col-right[b-og3fvtb0z1] {
    min-width: 0;
}

/* Right column (DiaryForm) sticky – desktop only */
.cdl-col-right[b-og3fvtb0z1] {
    position: sticky;
    top: 24px;
    align-self: start;
}

.cdl-overview-panel[b-og3fvtb0z1] {
    height: 100%;
}

/* Section titles */
.cdl-section-title[b-og3fvtb0z1] {
    font-size: 1.25rem;
    margin-bottom: .5rem;
    font-weight: 600;
}

.cdl-section-title-sm[b-og3fvtb0z1] {
    font-size: 1.05rem;
    margin-bottom: .4rem;
    font-weight: 600;
}

/* Modules */
.cdl-modules[b-og3fvtb0z1] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Diary list */
.cdl-diary-list[b-og3fvtb0z1] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-diary-item[b-og3fvtb0z1] {
    border-radius: .5rem;
    padding: .5rem .7rem;
    margin-bottom: .25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.cdl-diary-clickable[b-og3fvtb0z1] {
    cursor: pointer;
    transition: background-color .12s ease, box-shadow .12s ease;
}

    .cdl-diary-clickable:hover[b-og3fvtb0z1] {
        background-color: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0,0,0,.04);
    }

.cdl-diary-row[b-og3fvtb0z1] {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .9rem;
}

.cdl-diary-date[b-og3fvtb0z1] {
    color: #6c757d;
    white-space: nowrap;
}

.cdl-diary-title[b-og3fvtb0z1] {
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.cdl-diary-meta[b-og3fvtb0z1] {
    font-size: .8rem;
    color: #999;
    margin-top: .2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.cdl-diary-meta-pill[b-og3fvtb0z1] {
    background: #f1f3f5;
    border-radius: 999px;
    padding: .1rem .5rem;
}

/* Modal */
.cdl-modal[b-og3fvtb0z1] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.cdl-modal-dialog[b-og3fvtb0z1] {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    overflow: hidden;
}

.cdl-modal-header[b-og3fvtb0z1],
.cdl-modal-footer[b-og3fvtb0z1] {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border-bottom: 1px solid #e5e5e5;
}

.cdl-modal-footer[b-og3fvtb0z1] {
    border-top: 1px solid #e5e5e5;
    border-bottom: none;
}

.cdl-modal-body[b-og3fvtb0z1] {
    padding: .75rem 1rem 1rem 1rem;
}

/* ---------------- PROGRESS (WHITE CARD) ---------------- */

.cdl-progress[b-og3fvtb0z1] {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.cdl-progress-header[b-og3fvtb0z1] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .9rem;
}

.cdl-progress-filters[b-og3fvtb0z1] {
    display: flex;
    gap: .9rem;
    align-items: flex-end;
}

.cdl-filter-item[b-og3fvtb0z1] {
    min-width: 150px;
}

.cdl-filter-item-module[b-og3fvtb0z1] {
    min-width: 240px;
}

.cdl-filter-label[b-og3fvtb0z1] {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 .25rem .1rem;
}

/* Range pills (like DiaryArchive) */
.cdl-range-pills[b-og3fvtb0z1] {
    display: inline-flex;
    gap: .35rem;
    padding: .22rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(241, 245, 249, 0.92);
}

.cdl-range-pill[b-og3fvtb0z1] {
    border: 1px solid transparent;
    background: transparent;
    padding: .32rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 650;
    color: #6b7280;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .05s ease;
}

    .cdl-range-pill:hover[b-og3fvtb0z1] {
        background: rgba(221, 214, 254, 0.55);
        color: #4c1d95;
    }

    .cdl-range-pill:active[b-og3fvtb0z1] {
        transform: translateY(1px);
    }

    .cdl-range-pill:focus[b-og3fvtb0z1] {
        outline: none;
    }

    .cdl-range-pill:focus-visible[b-og3fvtb0z1] {
        outline: 2px solid rgba(139, 92, 246, 0.35);
        outline-offset: 2px;
    }

    .cdl-range-pill.active[b-og3fvtb0z1] {
        background: rgba(221, 214, 254, 0.95);
        border-color: rgba(167, 139, 250, 0.90);
        color: #5b21b6;
    }

/* Module select – keep dropdown arrow (DON'T use background shorthand) */
.cdl-filter-select[b-og3fvtb0z1] {
    border-radius: 0.6rem;
    border-color: rgba(148, 163, 184, 0.55);
    background-color: rgba(255, 255, 255, 0.95); /* keeps bootstrap arrow */
}

    .cdl-filter-select:focus[b-og3fvtb0z1] {
        border-color: rgba(124, 58, 237, 0.55);
        box-shadow: 0 0 0 .2rem rgba(124, 58, 237, 0.16);
    }

/* ---------------- SUMMARY CARDS (existing “premium” look) ---------------- */

.cdl-summary-grid[b-og3fvtb0z1] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: .75rem;
    margin-bottom: 1.25rem;
}

.cdl-summary-card[b-og3fvtb0z1] {
    position: relative;
    border-radius: 1rem;
    padding: 0.9rem 1.05rem;
    background: #fdfdff;
    border: 1px solid rgba(148, 163, 184, 0.40);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

    .cdl-summary-card[b-og3fvtb0z1]::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.14), rgba(236, 72, 153, 0.02) 55%, transparent 70%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    .cdl-summary-card:hover[b-og3fvtb0z1] {
        box-shadow: 0 22px 40px rgba(15, 23, 42, 0.10);
        transform: translateY(-1px);
        border-color: rgba(129, 140, 248, 0.70);
    }

        .cdl-summary-card:hover[b-og3fvtb0z1]::before {
            opacity: 1;
        }

    .cdl-summary-card:nth-child(-n+2)[b-og3fvtb0z1] {
        background: linear-gradient(135deg, rgba(129, 140, 248, 0.11), rgba(236, 72, 153, 0.03));
        border-color: rgba(129, 140, 248, 0.70);
    }

.cdl-summary-label[b-og3fvtb0z1] {
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 650;
    color: #6b7280;
    margin-bottom: .22rem;
}

.cdl-summary-value[b-og3fvtb0z1] {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
    margin-bottom: .05rem;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.cdl-summary-sub[b-og3fvtb0z1] {
    font-size: .85rem;
    color: #6b7280;
    margin-top: .18rem;
    line-height: 1.35;
}

.cdl-summary-card-sleep[b-og3fvtb0z1] {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.03));
    border-color: rgba(56, 189, 248, 0.60);
}

.cdl-summary-card-cycle[b-og3fvtb0z1] {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.16), rgba(129, 140, 248, 0.04));
    border-color: rgba(244, 114, 182, 0.65);
}

.cdl-summary-card-triggers[b-og3fvtb0z1] {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.09), rgba(248, 250, 252, 1));
    border-color: rgba(248, 113, 113, 0.50);
}

.cdl-summary-card-highdays[b-og3fvtb0z1] {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(217, 249, 157, 0.04));
    border-color: rgba(96, 165, 250, 0.60);
}

.cdl-summary-card-streak[b-og3fvtb0z1] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(129, 140, 248, 0.03));
    border-color: rgba(16, 185, 129, 0.65);
}

.cdl-badge-zone[b-og3fvtb0z1] {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .78rem;
    font-weight: 500;
}

    .cdl-badge-zone.good[b-og3fvtb0z1] {
        background: #e6f4ea;
        color: #15803d;
    }

    .cdl-badge-zone.anxious[b-og3fvtb0z1] {
        background: #fef3c7;
        color: #92400e;
    }

    .cdl-badge-zone.panic[b-og3fvtb0z1] {
        background: #fee2e2;
        color: #b91c1c;
    }

/* Triggers */
.cdl-summary-card-triggers .cdl-trigger-row[b-og3fvtb0z1] {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.cdl-summary-card-triggers .cdl-trigger-name[b-og3fvtb0z1] {
    font-weight: 500;
}

.cdl-summary-card-triggers .cdl-trigger-delta[b-og3fvtb0z1] {
    font-size: .85rem;
    color: #dc3545;
    white-space: nowrap;
}

.cdl-summary-card-triggers .cdl-factor-pills[b-og3fvtb0z1] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .15rem;
    margin-top: .25rem;
}

.cdl-factor-pill[b-og3fvtb0z1] {
    font-size: .8rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #fff;
    cursor: default;
}

.cdl-insight-delta[b-og3fvtb0z1] {
    color: #dc3545;
}

/* Streak */
.cdl-summary-card-streak .cdl-streak-main[b-og3fvtb0z1] {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: .1rem;
}

.cdl-streak-big[b-og3fvtb0z1] {
    font-size: 1.6rem;
    font-weight: 700;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.cdl-streak-label[b-og3fvtb0z1] {
    font-size: .88rem;
    color: #6c757d;
    font-weight: 500;
}

/* Soft panels (chart/timeline) */
.cdl-panel-soft[b-og3fvtb0z1] {
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.9rem 1rem 1rem;
}

.cdl-chart-wrapper[b-og3fvtb0z1] {
    position: relative;
    height: 260px;
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem 0.75rem;
    overflow: hidden;
}

.cdl-chart-section[b-og3fvtb0z1] {
    margin-top: .25rem;
}

.cdl-timeline-section[b-og3fvtb0z1] {
    margin-bottom: .25rem;
}

/* Tab transition polish (fade + subtle slide) */
.cdl-tab-panel[b-og3fvtb0z1] {
    animation: cdlFadeSlideIn-b-og3fvtb0z1 180ms ease both;
    will-change: opacity, transform;
}

@keyframes cdlFadeSlideIn-b-og3fvtb0z1 {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .cdl-tab-panel[b-og3fvtb0z1] {
        animation: none;
        transform: none;
    }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
    .cdl-header[b-og3fvtb0z1] {
        grid-template-columns: 1fr;
    }

    .cdl-title[b-og3fvtb0z1] {
        font-size: 1.85rem;
    }

    .cdl-hero[b-og3fvtb0z1] {
        height: 180px;
    }

    .cdl-body[b-og3fvtb0z1] {
        grid-template-columns: minmax(0, 1fr);
    }

    .cdl-col-right[b-og3fvtb0z1] {
        position: static;
    }

    .cdl-progress-filters[b-og3fvtb0z1] {
        flex-direction: column;
        align-items: stretch;
    }

    .cdl-filter-item[b-og3fvtb0z1],
    .cdl-filter-item-module[b-og3fvtb0z1] {
        min-width: 0;
    }

    .cdl-range-pills[b-og3fvtb0z1] {
        width: fit-content;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* --------------------------
   Glavni layout dashboard-a
   -------------------------- */

.ab-dashboard[b-urbq5wl1td] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ab-dashboard-header[b-urbq5wl1td] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

    .ab-dashboard-header h1[b-urbq5wl1td] {
        margin: 0;
        font-size: 1.8rem;
    }

.ab-dashboard-subtitle[b-urbq5wl1td] {
    margin: 0.25rem 0 0 0;
    color: #555;
}

.ab-section-title[b-urbq5wl1td] {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

/* --------------------------
   Banner – Add your first challenge
   -------------------------- */

.ab-first-banner[b-urbq5wl1td] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffe6d5 0%, #fff5e9 45%, #ffffff 100%);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    align-items: center;
}

.ab-first-banner-text h2[b-urbq5wl1td] {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.ab-first-banner-text p[b-urbq5wl1td] {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #444;
}

.ab-first-banner-bear[b-urbq5wl1td] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Placeholder za buduću 3D/illustration medu */
.ab-bear-placeholder[b-urbq5wl1td] {
    width: 140px;
    height: 140px;
    border-radius: 1.5rem;
    border: 2px dashed rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255,255,255,0.6);
}

/* --------------------------
   Challenge kartice – HORIZONTALNO
   -------------------------- */

.ab-challenge-list[b-urbq5wl1td] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* GRID za aktivne challenge kartice – simetričan raspored */
.ab-challenge-grid[b-urbq5wl1td] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

/* Kartica unutar grida */
.ab-challenge-card[b-urbq5wl1td] {
    cursor: pointer;
    border-radius: 1.1rem;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: row; /* slika levo, tekst desno */
    align-items: stretch;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.1s ease-out;
    width: 100%;
    max-width: 100%;
}

    .ab-challenge-card:hover[b-urbq5wl1td] {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
        border-color: rgba(0,0,0,0.1);
    }

/* Na manjim ekranima, kartica postaje vertikalna (slika gore) */
@media (max-width: 768px) {
    .ab-challenge-card[b-urbq5wl1td] {
        flex-direction: column;
        max-width: 100%;
    }
}

/* --------------------------
   MEDA – slika levo u kartici
   -------------------------- */

.ab-challenge-cover[b-urbq5wl1td] {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

/* Desktop: fiksna kolona za sliku, visina se prilagođava kartici */
@media (min-width: 769px) {
    .ab-challenge-cover[b-urbq5wl1td] {
        flex: 0 0 210px; /* širina slike */
    }
}

/* Mobile: slika gore, full width */
@media (max-width: 768px) {
    .ab-challenge-cover[b-urbq5wl1td] {
        width: 100%;
        height: 220px;
    }
}

.ab-challenge-cover img[b-urbq5wl1td] {
    width: 100%;
    height: 100%;
    object-fit: cover; /* popunjava ceo okvir, nema belina */
    object-position: center;
    display: block;
}

/* --------------------------
   Telo kartice (tekst deo)
   -------------------------- */

.ab-challenge-body[b-urbq5wl1td] {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

/* Naslov + badge u jednom redu, sa mogućim prelomom */
.ab-challenge-title-row[b-urbq5wl1td] {
    display: flex;
    flex-wrap: wrap; /* dozvoli da badge padne u drugi red */
    align-items: flex-start;
    column-gap: 0.5rem;
    row-gap: 0.15rem;
}

    .ab-challenge-title-row h3[b-urbq5wl1td] {
        margin: 0;
        font-size: 1rem;
        flex: 1 1 auto;
        min-width: 0; /* da se naslov lepo lomi, a ne da gura badge napolje */
    }

/* Datum badge – sada sme da pređe u 2 reda umesto da se iseče */
.ab-challenge-badge[b-urbq5wl1td] {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(129, 140, 248, 0.14);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: auto; /* drži ga desno */
    white-space: normal; /* ✨ više NIJE nowrap – može da se prelomi */
    max-width: 100%;
}

.ab-challenge-desc[b-urbq5wl1td] {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.ab-challenge-meta[b-urbq5wl1td] {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #777;
}

/* --------------------------
   Dugmići
   -------------------------- */

.ab-btn-primary[b-urbq5wl1td],
.ab-btn-secondary[b-urbq5wl1td] {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.ab-btn-primary[b-urbq5wl1td] {
    background-color: #1b6ec2;
    color: #fff;
}

    .ab-btn-primary:disabled[b-urbq5wl1td] {
        opacity: 0.7;
        cursor: default;
    }

.ab-btn-secondary[b-urbq5wl1td] {
    background-color: #f3f4f6;
    color: #111827;
}

    .ab-btn-secondary:hover:not(:disabled)[b-urbq5wl1td] {
        background-color: #e5e7eb;
    }

/* --------------------------
   Modal
   -------------------------- */

.ab-modal-backdrop[b-urbq5wl1td] {
    position: fixed;
    inset: 0;
    background-color: rgba(15,23,42,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.ab-modal[b-urbq5wl1td] {
    width: min(900px, 100% - 2rem);
    max-height: min(85vh, 720px);
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ab-modal-header[b-urbq5wl1td] {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ab-modal-header h2[b-urbq5wl1td] {
        margin: 0;
        font-size: 1.2rem;
    }

.ab-modal-close[b-urbq5wl1td] {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.ab-modal-body[b-urbq5wl1td] {
    padding: 0.9rem 1.2rem;
    overflow-y: auto;
}

.ab-modal-footer[b-urbq5wl1td] {
    padding: 0.75rem 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* --------------------------
   Available challenges – MODAL KARTICE (HORIZONTALNO)
   -------------------------- */

.ab-available-grid[b-urbq5wl1td] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ab-available-card[b-urbq5wl1td] {
    border-radius: 0.9rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f9fafb;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: row; /* slika levo, tekst desno u modalu */
    align-items: stretch;
    transition: border-color 0.1s ease, box-shadow 0.1s ease, transform 0.1s ease;
}

    .ab-available-card:hover[b-urbq5wl1td] {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(15,23,42,0.12);
    }

    .ab-available-card.selected[b-urbq5wl1td] {
        border-color: #1b6ec2;
        box-shadow: 0 0 0 2px rgba(27,110,194,0.4);
        background: #eef5ff;
    }

    /* Used (već dodat) challenge u modalu */
    .ab-available-card.used[b-urbq5wl1td] {
        opacity: 0.45;
        cursor: default;
        box-shadow: none;
        background: #f3f4f6;
    }

        .ab-available-card.used:hover[b-urbq5wl1td] {
            transform: none;
            box-shadow: none;
        }

/* Slika mede u modalu – levo */

.ab-available-cover[b-urbq5wl1td] {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    flex: 0 0 140px;
}

    .ab-available-cover img[b-urbq5wl1td] {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* Tekst deo u modalu */

.ab-available-body[b-urbq5wl1td] {
    padding: 0.7rem 0.9rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

    .ab-available-body h3[b-urbq5wl1td] {
        margin: 0;
        font-size: 0.95rem;
    }

.ab-available-desc[b-urbq5wl1td] {
    margin: 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.ab-available-bullets[b-urbq5wl1td] {
    margin: 0.2rem 0 0 1rem;
    padding: 0;
    font-size: 0.8rem;
    color: #4b5563;
}

    .ab-available-bullets li + li[b-urbq5wl1td] {
        margin-top: 0.1rem;
    }

/* Mala "pill" oznaka da je već dodat */

.ab-chip-disabled[b-urbq5wl1td] {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
}

/* Na manjim ekranima – modalu kartice postaju vertikalne */

@media (max-width: 600px) {
    .ab-available-card[b-urbq5wl1td] {
        flex-direction: column;
    }

    .ab-available-cover[b-urbq5wl1td] {
        width: 100%;
        height: 180px;
        flex: 0 0 auto;
    }
}

/* --------------------------
   Loading / unauth
   -------------------------- */

.ab-dashboard-loading[b-urbq5wl1td],
.ab-dashboard-unauth[b-urbq5wl1td] {
    padding: 2rem 0.5rem;
}

    .ab-dashboard-unauth h1[b-urbq5wl1td] {
        margin-top: 0;
    }

/* --------------------------
   Responsive tweaks
   -------------------------- */

@media (max-width: 768px) {
    .ab-first-banner[b-urbq5wl1td] {
        grid-template-columns: 1fr;
    }

    .ab-first-banner-bear[b-urbq5wl1td] {
        justify-content: flex-start;
    }

    .ab-modal[b-urbq5wl1td] {
        max-height: 100vh;
        border-radius: 0;
    }
}
