﻿.navbar-toggler {
    display: none !important;
}
html, body {
    font-family: 'Sora', 'Inter', sans-serif;
    background: #0e0814;
    color: #f8f2fb;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* =====================================================
   DASHBOARD (ClientZone) – scoped inside .dash-wrap
   ===================================================== */

/* Hard reset ONLY inside dashboard */
.dash-wrap,
.dash-wrap * {
    text-transform: none !important;
    letter-spacing: normal !important;
    box-sizing: border-box;
}

/* Layout */
.dash-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

    /* Section headers */
    .dash-wrap .home-header h1 {
        font-size: 18px;
        line-height: 1.15;
        margin: 0;
        font-weight: 800;
        color: #f2f4ff;
    }

    .dash-wrap .muted {
        font-size: 10px;
        opacity: .7;
        color: #aab0cc;
        margin-top: 4px;
    }

    /* Cards */
    .dash-wrap .card {
        border-radius: 14px;
        padding: 14px;
        background: linear-gradient( 180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04) );
        border: 1px solid rgba(255,255,255,0.14);
    }

    /* Profile */
    .dash-wrap .profile-top {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .dash-wrap .avatar {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #5b2cff, #8b5cf6);
        font-size: 18px;
    }

    .dash-wrap .profile-name {
        font-size: 10px;
        font-weight: 800;
        color: #fff;
    }

    .dash-wrap .profile-sub {
        font-size: 10px;
        color: #aab0cc;
        margin-top: 3px;
    }

    /* Buttons */
    .dash-wrap .profile-actions {
        display: flex;
        gap: 2px;
        margin-top: 5px;
    }

    .dash-wrap .pill {
        padding: 8px 8px;
        border-radius: 999px;
        font-weight: 800;
        border: none;
        cursor: pointer;
        background: rgba(255,255,255,.08);
        color: #fff;
    }

        .dash-wrap .pill.primary {
            background: #6a00ff;
        }

        .dash-wrap .pill.warn {
            background: #ff8a00;
        }

    /* Children */
    .dash-wrap .children-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 8px;
    }

@media (max-width: 1100px) {
    .dash-wrap .children-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .dash-wrap .children-grid {
        grid-template-columns: 1fr;
    }
}

.dash-wrap .child-tile {
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    cursor: pointer;
}
/* =========================
   FINAL FIXES – align card + tame SolidState button styles
   ========================= */

/* Make the profile card a 2-column layout on desktop */
.dash-wrap .profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Keep avatar+meta together */
.dash-wrap .profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* Buttons on the right, not below */
.dash-wrap .profile-actions {
    margin-top: 0;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

/* Fix SolidState button typography bleed */
.dash-wrap button {
    font: inherit;
    line-height: 1.1;
}

/* Make pills consistent size */
.dash-wrap .pill {
    font-size: 10px;
    padding: 2px 10px;
    height: 2.75em;
    border-radius: 999px;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Slightly larger name (yours is a bit too tiny now) */
.dash-wrap .profile-name {
    font-size: 14px;
}

/* Responsive: stack cleanly on small screens */
@media (max-width: 700px) {
    .dash-wrap .profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-wrap .profile-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
/* =========================
   CHILD TILE FIX
   ========================= */

.dash-wrap .child-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

/* Left side (icon + text) */
.dash-wrap .child-tile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Icon block */
.dash-wrap .child-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

/* Text column */
.dash-wrap .child-info {
    min-width: 0;
}

.dash-wrap .child-name {
    font-size: 14px;
    line-height: 1.1;
    margin: 0;
}

.dash-wrap .child-sub {
    font-size: 12px;
    line-height: 1.2;
    margin-top: 4px;
}

/* "Open →" aligns to the right */
.dash-wrap .child-open {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0.9;
}

/* Remove weird button defaults */
.dash-wrap .child-tile {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    text-align: left;
}

/* Mobile stack */
@media (max-width: 650px) {
    .dash-wrap .child-tile {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-wrap .child-open {
        margin-left: 0;
        margin-top: 8px;
    }
}
/* =========================
   CHILD TILE – FINAL FIX
   ========================= */

.dash-wrap .child-tile {
    width: 100%;
    border-radius: 18px;
    padding: 14px 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    cursor: pointer;
    /* Kill SolidState button behaviour */
    appearance: none;
    text-align: left;
}

/* One horizontal row */
.dash-wrap .child-tile-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Avatar */
.dash-wrap .child-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    font-size: 20px;
    flex-shrink: 0;
}

/* Text block */
.dash-wrap .child-info {
    flex: 1;
    min-width: 0;
}

.dash-wrap .child-name {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}

.dash-wrap .child-sub {
    font-size: 13px;
    margin-top: 4px;
    opacity: .75;
    color: #aab0cc;
}

/* Open → on the right */
.dash-wrap .child-open {
    margin-left: auto;
    font-weight: 700;
    color: #8aa2ff;
    white-space: nowrap;
    font-size: 14px;
}

/* Hover */
.dash-wrap .child-tile:hover {
    background: rgba(255,255,255,.07);
}
/* Make footer sit at bottom when content is short */
#page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    /* Your dashboard/content area should take available space */
    #page-wrapper .dash-wrap {
        flex: 1;
    }

/* Push footer to the bottom */
#footer {
    margin-top: auto;
}

/* ClientZone product shell */
.clientx { --cx-panel:rgba(27,17,34,.88); --cx-line:rgba(255,255,255,.09); --cx-soft:#ae9ab9; }
.clientx *, .clientx *::before, .clientx *::after { box-sizing:border-box; }
.clientx .mud-main-content { overflow-x:hidden; }
.clientx button.mud-icon-button,
.clientx button.mud-icon-button-root {
    appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.09) !important;
    border-radius:10px !important;
    box-shadow:none !important;
    font:inherit !important;
    line-height:1 !important;
    letter-spacing:normal !important;
    text-transform:none !important;
}
.clientx button.mud-icon-button:hover,
.clientx button.mud-icon-button-root:hover { background:rgba(255,255,255,.055) !important; }
.clientx button.mud-icon-button .mud-icon-root,
.clientx button.mud-icon-button-root .mud-icon-root { margin:0 !important; }
.dash-wrap { max-width:1120px; margin:0 auto; padding:0 !important; font-family:'Sora','Inter',sans-serif !important; }
.dash-hero { position:relative; overflow:hidden; display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; min-height:205px; margin-bottom:1.5rem; padding:clamp(1.35rem,4vw,2.4rem); border:1px solid var(--cx-line); border-radius:1.35rem; background:linear-gradient(120deg,rgba(92,48,164,.75),rgba(84,26,100,.7) 52%,rgba(190,37,128,.34)); box-shadow:0 24px 80px rgba(0,0,0,.28); }
.dash-hero::after { content:""; position:absolute; width:260px; height:260px; right:-60px; top:-125px; border-radius:50%; background:rgba(255,85,190,.2); }
.dash-hero > * { position:relative; z-index:1; }
.dash-eyebrow,.section-kicker { display:block; color:#eebde1; font-size:.62rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.dash-hero h1 { margin:.45rem 0 .55rem; color:#fff; font-size:clamp(1.7rem,4vw,2.75rem); line-height:1.06; letter-spacing:-.055em; }
.dash-hero p { max-width:620px; margin:0; color:#d9c9df; font-size:.82rem; line-height:1.65; }
.dash-date { color:#decce6; font-size:.68rem; white-space:nowrap; }
.dash-wrap .parent-home { display:grid; gap:1rem; }
.dash-wrap .home-header { margin:1rem 0 0; }
.dash-wrap .home-header h2 { margin:.35rem 0 .15rem; color:#fff; font-size:1.15rem; letter-spacing:-.035em; }
.dash-wrap .muted { margin:.25rem 0 0; color:var(--cx-soft); font-size:.7rem; opacity:1; }
.dash-wrap .card { border:1px solid var(--cx-line); border-radius:1.1rem; background:linear-gradient(145deg,rgba(31,20,39,.96),rgba(24,14,31,.9)); box-shadow:0 16px 45px rgba(0,0,0,.2); }
.dash-wrap .profile { min-height:125px; padding:1.2rem 1.3rem; }
.dash-wrap .avatar,.dash-wrap .child-avatar { color:#fff; font-weight:800; font-size:.72rem; background:linear-gradient(135deg,#8b5cf6,#f0399b); box-shadow:0 8px 24px rgba(176,51,183,.22); }
.dash-wrap .profile-name { color:#fff; font-size:.94rem; }
.dash-wrap .profile-sub { color:#aa98b5; font-size:.68rem; }
.dash-wrap .profile-actions { gap:.6rem; }
.dash-wrap .pill { min-width:105px; height:38px; padding:0 .9rem; border:1px solid var(--cx-line); border-radius:.7rem; color:#fff; font-size:.68rem; transition:transform .18s ease,filter .18s ease; }
.dash-wrap .pill:hover { transform:translateY(-2px); filter:brightness(1.12); }
.dash-wrap .pill.primary { background:linear-gradient(100deg,#9252e8,#f0399b); }
.dash-wrap .pill.warn { background:rgba(255,255,255,.055); }
.dash-wrap .children-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.dash-wrap .child-tile { min-height:92px; border:1px solid var(--cx-line); border-radius:1rem; background:var(--cx-panel); box-shadow:0 12px 35px rgba(0,0,0,.16); color:#fff; transition:transform .18s ease,border-color .18s ease,background .18s ease; }
.dash-wrap .child-tile:hover { transform:translateY(-3px); border-color:rgba(220,100,255,.35); background:rgba(39,23,48,.95); }
.dash-wrap .child-name { font-size:.82rem; }
.dash-wrap .child-sub { color:#a995b5; font-size:.65rem; opacity:1; }
.dash-wrap .child-open { color:#ee8aca; font-size:.66rem; }
.dash-loading { padding:2rem; text-align:center; color:#b9a7c3; }
@media(max-width:720px){.dash-hero{align-items:flex-start;flex-direction:column;min-height:230px}.dash-date{order:-1}.dash-wrap .children-grid{grid-template-columns:1fr}.dash-wrap .profile{align-items:flex-start}.dash-wrap .profile-actions{width:100%}.dash-wrap .pill{flex:1}.dash-wrap .child-tile{flex-direction:row;align-items:center}.dash-wrap .child-open{margin-left:auto;margin-top:0}}
@media(prefers-reduced-motion:reduce){.clientx *{scroll-behavior:auto!important;transition:none!important}}

/* Friendly Blazor circuit reconnect state. The framework changes the modal's
   components-reconnect-* class as the WebSocket reconnects. */
#components-reconnect-modal { position:fixed; inset:0; z-index:10000; align-items:center; justify-content:center; padding:1rem; background:rgba(8,3,12,.62); backdrop-filter:blur(8px); }
#components-reconnect-modal.components-reconnect-hide { display:none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display:flex; }
.cx-reconnect-card { width:min(360px,100%); padding:1.35rem; border:1px solid rgba(255,255,255,.1); border-radius:1rem; background:linear-gradient(145deg,#211329,#160c1d); box-shadow:0 28px 90px rgba(0,0,0,.5); text-align:center; }
.cx-reconnect-card strong { display:block; margin:.75rem 0 .35rem; color:#fff; font-size:.85rem; }
.cx-reconnect-card p { margin:0; color:#ae9ab9; font-size:.68rem; line-height:1.6; }
.cx-reconnect-spinner { display:inline-block; width:34px; height:34px; border:3px solid rgba(255,255,255,.12); border-top-color:#ee45a5; border-radius:50%; animation:cx-spin .85s linear infinite; }
#components-reconnect-button { display:none; width:auto; height:38px; margin:.9rem auto 0; padding:0 1rem; border:0; border-radius:.65rem; box-shadow:none; background:linear-gradient(100deg,#8d55df,#f0399b); color:#fff; font:700 .66rem 'Sora','Inter',sans-serif; line-height:1; letter-spacing:normal; text-transform:none; }
.components-reconnect-failed #components-reconnect-button,
.components-reconnect-rejected #components-reconnect-button { display:inline-flex; align-items:center; justify-content:center; }
.components-reconnect-failed .cx-reconnect-spinner,
.components-reconnect-rejected .cx-reconnect-spinner { animation:none; border-color:#ff6b8a; }
.components-reconnect-failed .cx-reconnect-message::after { content:" Select Retry now to continue."; }
@keyframes cx-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce){.cx-reconnect-spinner{animation-duration:1.8s}}

.cx-whatsapp { position:fixed; right:1.25rem; bottom:1.25rem; z-index:900; display:flex; align-items:center; gap:.65rem; min-height:52px; padding:.6rem .9rem .6rem .72rem; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:linear-gradient(115deg,#18a957,#25d366); color:#fff!important; text-decoration:none!important; box-shadow:0 16px 45px rgba(8,76,39,.38),inset 0 1px rgba(255,255,255,.2); transition:transform .2s ease,filter .2s ease; }
.cx-whatsapp:hover { transform:translateY(-3px) scale(1.015); filter:brightness(1.06); }
.cx-whatsapp svg { width:29px; height:29px; flex:0 0 auto; }
.cx-whatsapp-copy strong,.cx-whatsapp-copy small { display:block; white-space:nowrap; }
.cx-whatsapp-copy strong { color:#fff; font-size:.68rem; line-height:1.2; }
.cx-whatsapp-copy small { margin-top:.13rem; color:rgba(255,255,255,.8); font-size:.53rem; }
.cx-whatsapp-pulse { position:absolute; top:2px; left:2px; width:9px; height:9px; border:2px solid #25d366; border-radius:50%; background:#d8ffe8; box-shadow:0 0 0 0 rgba(37,211,102,.55); animation:cx-wa-pulse 2s infinite; }
@keyframes cx-wa-pulse { 70% { box-shadow:0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow:0 0 0 0 rgba(37,211,102,0); } }
@media(max-width:600px){.cx-whatsapp{right:.8rem;bottom:.8rem;width:52px;height:52px;padding:0;justify-content:center}.cx-whatsapp-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.cx-whatsapp svg{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.cx-whatsapp-pulse{animation:none}}
