@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.84wtju4z0n.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-5va8ixofgk] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-5va8ixofgk] {
    flex: 1;
}

.sidebar[b-5va8ixofgk] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-5va8ixofgk] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-5va8ixofgk]  a, .top-row[b-5va8ixofgk]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-5va8ixofgk]  a:hover, .top-row[b-5va8ixofgk]  .btn-link:hover {
    text-decoration: underline;
}

.top-row[b-5va8ixofgk]  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row[b-5va8ixofgk] {
        justify-content: space-between;
    }

    .top-row[b-5va8ixofgk]  a, .top-row[b-5va8ixofgk]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-5va8ixofgk] {
        flex-direction: row;
    }

    .sidebar[b-5va8ixofgk] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-5va8ixofgk] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-5va8ixofgk]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-5va8ixofgk], article[b-5va8ixofgk] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-5va8ixofgk] {
    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-5va8ixofgk] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Pages/Vote.razor.rz.scp.css */
/* ========================================
   HERO SECTION — Full-viewport animated background
   ======================================== */
.hero-section[b-o7o62893k2] {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

/* SVG background layers — fill the entire hero.
   object-position: left center keeps the left side (where the triangles converge)
   always visible at any viewport aspect ratio. */
.hero-bg[b-o7o62893k2] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-bg-static[b-o7o62893k2] {
    z-index: 1;
}

.hero-bg-animated[b-o7o62893k2] {
    z-index: 2;
    animation: fadeInOut-b-o7o62893k2 6s linear infinite;
}

@keyframes fadeInOut-b-o7o62893k2 {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Logo — same 3840×2160 coordinate space as the background SVGs.
   - object-fit: cover + object-position: left center ensures the same SVG
     pixels map to the same screen pixels as the background.
   - translateX(2.891vw) corrects for the offset between the C ring center
     (SVG x=681.7) and the triangle convergence point (SVG x=792.7):
     Δx = 111 / 3840 × 100vw = 2.891vw (wide viewports, scale-by-width).
   - On tall viewports (< 16:9) the SVG scales by height instead:
     Δx = 111 / 3840 × (3840/2160) × 100vh = 111/2160 × 100vh = 5.139vh.
*/
.hero-logo[b-o7o62893k2] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 3;
    pointer-events: none;
    transform: translateX(2.891vw);
}

/* Tall viewports (portrait / narrower than 16:9): SVG scales by height */
@media (max-aspect-ratio: 16/9) {
    .hero-logo[b-o7o62893k2] {
        transform: translateX(5.139vh);
    }
}

/* ========================================
   VOTE OVERLAY — Right-side column
   vote-right-col groups the partner logos + form card so they
   can be centered vertically together and move as one unit.
   ======================================== */
.vote-overlay[b-o7o62893k2] {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;      /* vertical centering */
    align-items: flex-end;        /* anchor to right */
    min-height: 100vh;
    padding: 1.5rem clamp(24px, 4%, 80px);  /* capped: less movement on resize */
}

/* Right-side column: partner logos stacked above the form card */
.vote-right-col[b-o7o62893k2] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    width: 440px;
    min-width: 350px;
    max-width: 100%;
}

/* ========================================
   PARTNER LOGOS — Top of right column (no longer absolute)
   ======================================== */
.partner-logos[b-o7o62893k2] {
    display: flex;
    align-items: center;
    gap: 20px;
}

.partner-logo[b-o7o62893k2] {
    height: 40px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.partner-logo:hover[b-o7o62893k2] {
    opacity: 1;
}

.partner-logo-wide[b-o7o62893k2] {
    height: 36px;
}

/* ========================================
   VOTE CARD
   ======================================== */
.vote-card[b-o7o62893k2] {
    width: 100%;
    background: rgba(12, 22, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--color-text-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* First field label needs no top margin — sits right at top of card */
.vote-card .field-label:first-of-type[b-o7o62893k2] {
    margin-top: 0;
}

/* ========================================
   SELECTED VALUE — inline label + value
   ======================================== */
.vote-selected-value[b-o7o62893k2] {
    margin-top: 8px;
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ========================================
   VOTE BUTTONS — side-by-side layout
   ======================================== */
.vote-buttons[b-o7o62893k2] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ========================================
   FIELD LABELS — External labels for dark theme
   ======================================== */
.field-label[b-o7o62893k2] {
    display: block;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 12px;
}

/* ========================================
   FORM FIELD STYLES
   ======================================== */
.span-required[b-o7o62893k2] {
    color: var(--color-error);
}

.vote-field[b-o7o62893k2] {
    width: 100%;
}

.invalid-field[b-o7o62893k2] {
    border: 2px solid var(--color-error) !important;
    border-radius: 4px;
}

.alert-div[b-o7o62893k2] {
    margin-top: 2px;
    width: 100%;
}

.button-alert-div[b-o7o62893k2] {
    display: flex;
    justify-content: end;
}

/* Loading spinner */
.loading-animation[b-o7o62893k2] {
    margin-left: 10px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border-top: 4px solid var(--color-accent);
    width: 40px;
    height: 40px;
    animation: spin-b-o7o62893k2 2s linear infinite;
}

@keyframes spin-b-o7o62893k2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CNote partner logo at bottom */
.vote-card .pull-center[b-o7o62893k2] {
    text-align: center;
}

.vote-card .muted[b-o7o62893k2] {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE — Tablet (stacked layout)
   ======================================== */
@media screen and (max-width: 991px) {
    .hero-section[b-o7o62893k2] {
        min-height: auto;
    }

    /* Logo becomes a ribbon at top — object-fit keeps the left portion visible */
    .hero-logo[b-o7o62893k2] {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16/5;
        transform: none;   /* reset desktop transform */
    }

    .vote-overlay[b-o7o62893k2] {
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
        padding: var(--spacing-lg);
    }

    .vote-right-col[b-o7o62893k2] {
        width: 100%;
        max-width: 500px;
        align-items: center;
    }

    .partner-logos[b-o7o62893k2] {
        justify-content: center;
        padding: 12px 16px;
        width: 100%;
        background: rgba(12, 22, 36, 0.7);
        border-radius: 8px;
    }

    .vote-card[b-o7o62893k2] {
        background: rgba(12, 22, 36, 0.95);
        max-height: none;
    }
}

/* ========================================
   RESPONSIVE — Mobile (phone)
   ======================================== */
@media screen and (max-width: 767px) {
    /* Reduce overlay padding to maximise form width */
    .vote-overlay[b-o7o62893k2] {
        padding: 8px !important;
    }

    /* Smaller hero image strip — leaves more room for the form */
    .hero-bg[b-o7o62893k2] {
        height: 180px;
    }

    /* Hide hero logo on phones to maximise space for the form */
    .hero-logo[b-o7o62893k2] {
        display: none;
    }

    /* Compact card: tighter padding, no max-height clipping */
    .vote-card[b-o7o62893k2] {
        padding: 14px;
        border-radius: 12px;
        max-height: none;
    }

    /* Override min-width so it doesn't cause overflow at ~384px */
    .vote-right-col[b-o7o62893k2] {
        min-width: 0;
    }

    /* Tighter field spacing */
    .field-label[b-o7o62893k2] {
        margin-top: 6px;
        margin-bottom: 2px;
    }

    .partner-logo[b-o7o62893k2] {
        height: 28px;
    }

    .partner-logo-wide[b-o7o62893k2] {
        height: 24px;
    }

    .partner-logos[b-o7o62893k2] {
        gap: 12px;
        padding: 8px 12px;
    }

    /* Force buttons side-by-side: each takes equal width */
    .vote-buttons[b-o7o62893k2] {
        flex-wrap: nowrap;
    }
}
