html, body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

#blazor-error-ui {
    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 {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}

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

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            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, "Loading");
    }

/* Icon Picker Styles */
.icon-picker-item {
    transition: all 0.2s ease;
}

.icon-picker-item:hover {
    border: 2px solid var(--mud-palette-primary, #1976d2) !important;
    border-radius: 6px;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Footer Styles - Theme Aware - Soft and Subtle */
.app-footer {
    background-color: var(--theme-bg-secondary, #1D1D1D) !important;
    border-top: 1px solid var(--theme-border, rgba(212, 175, 55, 0.1)) !important;
    min-height: 48px !important;
}

/* Fixed to viewport bottom (semantic footer — not MudAppBar) */
footer.site-footer-bar.app-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 1000 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Reserve space so page content is not hidden behind the fixed footer */
.mud-layout > .mud-main-content {
    padding-bottom: 56px !important;
}

.app-footer .footer-text {
    color: var(--theme-text-muted, #888888) !important;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* GoldBlackLuxe Theme Footer */
[data-theme="GoldBlackLuxe"] .app-footer {
    background-color: var(--theme-bg-secondary, #1D1D1D) !important;
    border-top-color: rgba(212, 175, 55, 0.08) !important;
}

[data-theme="GoldBlackLuxe"] .app-footer .footer-text {
    color: var(--theme-text-muted, #666666) !important;
    opacity: 0.5;
}

/* ModernFlatCinema Theme Footer */
[data-theme="ModernFlatCinema"] .app-footer {
    background-color: var(--flat-bg-secondary, #FAFAFA) !important;
    border-top-color: rgba(224, 224, 224, 0.5) !important;
}

[data-theme="ModernFlatCinema"] .app-footer .footer-text {
    color: var(--flat-text-muted, #999999) !important;
    opacity: 0.55;
}

/* NeonCinema Theme Footer */
[data-theme="NeonCinema"] .app-footer {
    background-color: var(--neon-bg-secondary, #0F0F1A) !important;
    border-top-color: rgba(42, 42, 62, 0.5) !important;
}

[data-theme="NeonCinema"] .app-footer .footer-text {
    color: var(--neon-text-muted, #808080) !important;
    opacity: 0.5;
}

/* JoomlaCinema Theme Footer */
[data-theme="JoomlaCinema"] .app-footer {
    background-color: var(--joomla-bg-footer, #1A1A1A) !important;
    border-top-color: rgba(222, 226, 230, 0.1) !important;
}

[data-theme="JoomlaCinema"] .app-footer .footer-text {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.5;
}

.app-footer-inner {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0.75rem;
}

.app-footer .footer-text-sep {
    opacity: 0.45;
    user-select: none;
}

.app-footer .footer-policy-link {
    opacity: 0.75;
}

.app-footer .footer-policy-link:hover {
    opacity: 1;
}

/* Public legal pages (privacy / refund) */
.legal-policy-page .legal-list {
    margin: 0.25rem 0 0.75rem 1.25rem;
    padding: 0;
}

.legal-policy-page .legal-list li {
    margin-bottom: 0.35rem;
}

/* Footer policy link: match muted footer text (avoid default anchor blue) */
.app-footer .footer-policy-link.mud-link,
.app-footer .footer-policy-link.mud-link:visited {
    color: inherit !important;
}

footer.app-footer .mud-container.app-footer-inner {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

