/* /Components/Layout/MainLayout.razor.rz.scp.css */
.topbar[b-19znsmy7zu] {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 3.75rem;
    padding: 0 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--bs-border-color);
}

.brand[b-19znsmy7zu] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    color: #1e1b4b;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
}

.brand-logo[b-19znsmy7zu] {
    flex-shrink: 0;
    border-radius: 8px;
}

.actions[b-19znsmy7zu] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.languages[b-19znsmy7zu] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Flag buttons: 44px touch target around a 30x20 flag. */
.flag[b-19znsmy7zu] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.flag svg[b-19znsmy7zu] {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    opacity: 0.55;
    transition: opacity 0.12s ease;
}

.flag:hover svg[b-19znsmy7zu],
.flag.active svg[b-19znsmy7zu] {
    opacity: 1;
}

.flag.active[b-19znsmy7zu] {
    background: #ede9fe;
}

.flag:focus-visible[b-19znsmy7zu],
.icon-btn:focus-visible[b-19znsmy7zu] {
    outline: 2px solid #4f46e5;
    outline-offset: 1px;
}

.divider[b-19znsmy7zu] {
    width: 1px;
    height: 1.5rem;
    margin: 0 0.35rem;
    background: var(--bs-border-color);
}

.icon-btn[b-19znsmy7zu] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

.icon-btn:hover[b-19znsmy7zu] {
    background: #f1f5f9;
    color: #1e1b4b;
}

.icon-btn svg[b-19znsmy7zu] {
    width: 22px;
    height: 22px;
}

.content[b-19znsmy7zu] {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.75rem 1rem 3rem;
}

/* Narrow phones: the logo alone carries the brand (name kept for screen readers),
   so flags + three icon buttons still fit at 360-390px. */
@media (max-width: 479.98px) {
    .topbar[b-19znsmy7zu] {
        padding: 0 0.5rem 0 0.75rem;
        gap: 0.5rem;
    }

    .brand-name[b-19znsmy7zu] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .actions[b-19znsmy7zu],
    .languages[b-19znsmy7zu] {
        gap: 0;
    }

    .divider[b-19znsmy7zu] {
        margin: 0 0.15rem;
    }
}

@media (min-width: 768px) {
    .topbar[b-19znsmy7zu] {
        padding: 0 1.5rem;
    }

    .content[b-19znsmy7zu] {
        padding: 2.25rem 1.5rem 3rem;
    }
}

#blazor-error-ui[b-19znsmy7zu] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-19znsmy7zu] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-0ttwj593zo],
.components-reconnect-repeated-attempt-visible[b-0ttwj593zo],
.components-reconnect-failed-visible[b-0ttwj593zo],
.components-pause-visible[b-0ttwj593zo],
.components-resume-failed-visible[b-0ttwj593zo],
.components-rejoining-animation[b-0ttwj593zo] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-retrying[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-failed[b-0ttwj593zo],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-0ttwj593zo] {
    display: block;
}


#components-reconnect-modal[b-0ttwj593zo] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-0ttwj593zo 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-0ttwj593zo 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-0ttwj593zo 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-0ttwj593zo]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-0ttwj593zo 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-0ttwj593zo {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-0ttwj593zo {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-0ttwj593zo {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-0ttwj593zo] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-0ttwj593zo] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-0ttwj593zo] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-0ttwj593zo] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-0ttwj593zo] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-0ttwj593zo] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-0ttwj593zo] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-0ttwj593zo 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-0ttwj593zo] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-0ttwj593zo {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.module-grid[b-x4870iy1d6] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 44rem;
}

@media (min-width: 992px) {
    .module-grid[b-x4870iy1d6] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: none;
    }
}

.module-tile[b-x4870iy1d6] {
    --accent: var(--bs-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 10rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-align: center;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.module-tile:hover[b-x4870iy1d6] {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

.module-tile:focus-visible[b-x4870iy1d6] {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.module-icon[b-x4870iy1d6] {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.module-icon[b-x4870iy1d6]  svg {
    width: 1.75rem;
    height: 1.75rem;
}

.module-title[b-x4870iy1d6] {
    font-weight: 600;
    font-size: 1.05rem;
}

.module-desc[b-x4870iy1d6] {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.module-calendar[b-x4870iy1d6] { --accent: #2563eb; }
.module-passwords[b-x4870iy1d6] { --accent: #7c3aed; }
.module-shopping[b-x4870iy1d6] { --accent: #059669; }
.module-cards[b-x4870iy1d6] { --accent: #d97706; }
/* /Components/Pages/Modules/Calendar.razor.rz.scp.css */
.calendar[b-pqu15whryx] {
    --accent: #2563eb;
    --shared: #7c3aed;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .calendar[b-pqu15whryx] {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* ---- Month ---- */

.month[b-pqu15whryx] {
    /* Horizontal swipes change the month (calendar-swipe.js); vertical still scrolls. */
    touch-action: pan-y;
    overflow: hidden;
}

.month-header[b-pqu15whryx] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.month-title[b-pqu15whryx] {
    flex: 1;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.nav-btn[b-pqu15whryx] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #334155;
}

.nav-btn:hover[b-pqu15whryx] {
    background: #f1f5f9;
}

.nav-btn svg[b-pqu15whryx] {
    width: 20px;
    height: 20px;
}

.today-btn[b-pqu15whryx] {
    margin-left: 0.25rem;
    min-height: 36px;
}

.weekdays[b-pqu15whryx],
.days[b-pqu15whryx] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.weekdays span[b-pqu15whryx] {
    padding-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.days.slide-next[b-pqu15whryx] {
    animation: slide-from-right-b-pqu15whryx 0.22s ease-out;
}

.days.slide-prev[b-pqu15whryx] {
    animation: slide-from-left-b-pqu15whryx 0.22s ease-out;
}

@keyframes slide-from-right-b-pqu15whryx {
    from { transform: translateX(32px); opacity: 0.25; }
    to { transform: none; opacity: 1; }
}

@keyframes slide-from-left-b-pqu15whryx {
    from { transform: translateX(-32px); opacity: 0.25; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .days.slide-next[b-pqu15whryx],
    .days.slide-prev[b-pqu15whryx] {
        animation: none;
    }
}

.day[b-pqu15whryx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    aspect-ratio: 1 / 1;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.day:hover[b-pqu15whryx] {
    background: #f1f5f9;
}

.day:focus-visible[b-pqu15whryx],
.nav-btn:focus-visible[b-pqu15whryx],
.icon:focus-visible[b-pqu15whryx] {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.day.other[b-pqu15whryx] {
    color: #94a3b8;
}

.day.today[b-pqu15whryx] {
    box-shadow: inset 0 0 0 2px var(--accent);
    font-weight: 700;
}

.day.selected[b-pqu15whryx] {
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.dots[b-pqu15whryx] {
    display: flex;
    gap: 3px;
    height: 6px;
}

.dot[b-pqu15whryx] {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.dot.shared[b-pqu15whryx] {
    background: var(--shared);
}

.dot.none[b-pqu15whryx] {
    display: none;
}

.day.selected .dot[b-pqu15whryx] {
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.day.selected .dot.shared[b-pqu15whryx] {
    background: #ddd6fe;
}

.legend[b-pqu15whryx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.legend > span[b-pqu15whryx] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@media (min-width: 992px) {
    .day[b-pqu15whryx] {
        aspect-ratio: auto;
        height: 4.25rem;
    }
}

/* ---- Day panel ---- */

.day-panel[b-pqu15whryx] {
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: #ffffff;
}

.day-title[b-pqu15whryx] {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.empty[b-pqu15whryx] {
    margin-bottom: 1rem;
}

.items[b-pqu15whryx] {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.items li[b-pqu15whryx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    border-bottom: 1px solid #eef2f6;
}

.items li.from-other[b-pqu15whryx] {
    margin: 2px 0;
    padding: 0.35rem 0.6rem;
    border-bottom: 0;
    border-radius: 10px;
    background: #f5f3ff;
}

.time[b-pqu15whryx] {
    flex: 0 0 3rem;
    color: var(--accent);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.from-other .time[b-pqu15whryx] {
    color: var(--shared);
}

.title[b-pqu15whryx] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.owner[b-pqu15whryx] {
    font-size: 0.8rem;
    color: #6d28d9;
}

.icon[b-pqu15whryx] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
}

.icon svg[b-pqu15whryx] {
    width: 18px;
    height: 18px;
}

.share:hover[b-pqu15whryx] {
    background: #f5f3ff;
    color: var(--shared);
}

.share.on[b-pqu15whryx] {
    background: #ede9fe;
    color: var(--shared);
}

.remove:hover[b-pqu15whryx] {
    background: #fef2f2;
    color: #dc2626;
}

.add-row[b-pqu15whryx] {
    display: flex;
    gap: 0.5rem;
}

.time-field[b-pqu15whryx] {
    flex: 0 0 7.5rem;
}

.title-field[b-pqu15whryx] {
    flex: 1;
    min-width: 0;
}

/* ---- Delete confirmation ---- */

.dialog-backdrop[b-pqu15whryx] {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.dialog[b-pqu15whryx] {
    width: 100%;
    max-width: 22rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.dialog-title[b-pqu15whryx] {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.dialog-actions[b-pqu15whryx] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.dialog-actions .btn[b-pqu15whryx] {
    min-height: 44px;
}

/* ---- Reminders ---- */

.bell[b-pqu15whryx] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    color: #b45309;
}

.bell svg[b-pqu15whryx] {
    width: 15px;
    height: 15px;
}

.reminder-field[b-pqu15whryx] {
    margin-top: 0.5rem;
}
/* /Components/Pages/Modules/ReminderNotifications.razor.rz.scp.css */
.notify[b-wyhipta1aa] {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f6;
}

.notify-text[b-wyhipta1aa] {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.notify-text.on[b-wyhipta1aa] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #15803d;
}

.notify-text svg[b-wyhipta1aa] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.notify-actions[b-wyhipta1aa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.notify .btn[b-wyhipta1aa] {
    min-height: 36px;
}
