html,
body {
    font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f6f8f6;
    color: #0d1b12;
}

/* Ambient Orb Backgrounds */
.ambient-bg {
    position: relative;
    overflow: hidden;
}

.ambient-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(210, 231, 90, 0.15) 0%, rgba(210, 231, 90, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.ambient-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 154, 102, 0.1) 0%, rgba(76, 154, 102, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 6rem 1rem;
    background-color: transparent;
    z-index: 1;
}

/* Selection Card Styles */
.selection-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #cfe7d7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.selection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: #d2e75a;
}

.selection-card-active {
    border-color: #d2e75a !important;
    background-color: #fcfdf5 !important;
    box-shadow: 0 0 0 2px #d2e75a !important;
}

/* Upload Zone Styles */
.upload-zone {
    border: 2px dashed #cfe7d7;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s;
    background-color: #ffffff;
}

.upload-zone:hover {
    border-color: #d2e75a;
    background-color: #fcfdf5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cfe7d7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bdd248;
}

/* Loading Progress */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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: #d2e75a;
    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");
}

#blazor-error-ui {
    background: #1a1a1a;
    color: #ffffff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
}

#blazor-error-ui a {
    color: #d2e75a;
    text-decoration: underline;
    font-weight: 600;
}

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

/* Fix for MudSelect popover inside dialogs */
.select-popover-fix {
    z-index: 10000 !important;
}

/* Button styling improvements for better readability */
.mud-button-filled.mud-button-primary {
    color: #000000 !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

.mud-button-filled.mud-button-primary .mud-icon-root {
    color: #000000 !important;
}

/* Ensure outlined buttons have visible borders */
.mud-button-outlined {
    border-width: 2px !important;
}

/* Mobile responsive improvements */
@media (max-width: 600px) {
    .gap-6 {
        gap: 1rem !important;
    }

    .gap-4 {
        gap: 0.75rem !important;
    }
}

/* Frosted Glass Drawer Styles */
.mud-drawer.frosted-drawer {
    background-color: transparent !important;
}

.frosted-drawer .mud-drawer-content {
    /* Green gradient background */
    background: linear-gradient(135deg, rgba(231, 243, 235, 0.95) 0%, rgba(207, 231, 215, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Frosted Layout Overlay - only for drawer overlay, not menus/popovers */
.frosted-layout > .mud-overlay {
    background-color: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(5px);
}

/* Frosted Nav Link Styles */
.frosted-nav-link {
    color: #1a422a !important;
    /* Darker green-black for better contrast on green */
    font-weight: 700;
    margin: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.frosted-nav-link .mud-nav-link-text {
    font-weight: 800 !important;
}

.frosted-nav-link.active {
    background-color: #ffffff !important;
    /* White active background */
    color: #0b2e1e !important;
    box-shadow: 0 2px 8px rgba(11, 46, 30, 0.08);
}

.frosted-nav-link.active .mud-icon-root {
    color: #0b2e1e !important;
}

.frosted-nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Ensure drawer is above other content */
.mud-drawer.frosted-drawer {
    z-index: 1400 !important;
}