/* MudBlazor border radius overrides */
:root {
    --mud-default-borderradius: 10px;
}

.mud-button-root {
    border-radius: 10px !important;
}

.mud-input-outlined .mud-input-outlined-border {
    border-radius: 10px !important;
}

.mud-paper {
    border-radius: 16px !important;
}

.mud-card {
    border-radius: 16px !important;
}

.mud-dialog {
    border-radius: 20px !important;
}

/* Loading screen */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #6C63FF;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Carregando");
}

/* Blazor error UI */
#blazor-error-ui {
    background: #fee2e2;
    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;
    color: #991b1b;
    font-family: Inter, Roboto, sans-serif;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   Landing page
   ═══════════════════════════════════════════════════════════ */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
}

.landing-hero {
    padding: 6rem 1rem 5rem;
}

.landing-hero-title {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.landing-hero-subtitle {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 50%, #43D9AD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-section {
    padding: 5rem 1rem;
}

.landing-section-alt {
    background: rgba(108, 99, 255, 0.03);
}

.landing-card {
    border: 1px solid rgba(128, 128, 128, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.10);
}

.landing-feature-avatar {
    flex-shrink: 0;
}

.landing-cta {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.06) 0%, rgba(255, 101, 132, 0.06) 100%);
}

.landing-footer {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.12);
    margin-top: auto;
}

.h-100 {
    height: 100%;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Responsivo */
@media (max-width: 600px) {
    .landing-hero {
        padding: 3.5rem 0.5rem 3rem;
    }

    .landing-hero-title {
        font-size: 1.75rem !important;
    }

    .landing-section {
        padding: 3rem 0.5rem;
    }

    .landing-cta {
        padding: 3rem 0.5rem;
    }
}
