body {
    background-color: #030303;
}

a,
.btn-link {
    color: #0071c1;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU5QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.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: #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");
}

code {
    color: #c02d76;
}

.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;
}



/* Animation for highlighting elements */
@keyframes highlight-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.highlight-pulse {
    animation: highlight-pulse 0.6s ease-out;
}


/* Utility for hover scale effect */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* ========================================= */
/* INDUSTRIAL GARAGE THEME OVERRIDES         */
/* ========================================= */
.theme-industrial {
    background-color: #18181b !important;
    /* bg-zinc-900 */
    color: #d4d4d8 !important;
    /* text-zinc-300 */
    font-family: 'Courier Prime', monospace !important;
    --mud-palette-surface: #27272a !important;
    /* bg-zinc-800 */
    --mud-palette-background: #18181b !important;
    /* bg-zinc-900 */
    --mud-palette-text-primary: #d4d4d8 !important;
    /* text-zinc-300 */
    --mud-palette-text-secondary: #a1a1aa !important;
    /* text-zinc-400 */
    --mud-palette-lines-default: #3f3f46 !important;
    /* border-zinc-700 */
}

/* Headings */
.theme-industrial h1,
.theme-industrial h2,
.theme-industrial h3,
.theme-industrial h4,
.theme-industrial h5,
.theme-industrial h6,
.theme-industrial .mud-typography-h6 {
    color: #f4f4f5 !important;
    /* text-zinc-100 */
}

/* Navigation & Drawer */
.theme-industrial .mud-drawer,
.theme-industrial .mud-appbar {
    background-color: #18181b !important;
    /* bg-zinc-900 */
    border-right: 1px solid #3f3f46 !important;
    /* border-zinc-700 */
    border-bottom: 2px solid #27272a !important;
    /* bar: border-b-2 border-zinc-800 */
}

/* Nav Links */
.theme-industrial .mud-nav-link {
    color: #52525b !important;
    /* navInactive: text-zinc-600 */
}

.theme-industrial .mud-nav-link.active {
    color: #a3e635 !important;
    /* navActive: text-lime-400 */
}

/* Cards / Papers */
.theme-industrial .mud-paper,
.theme-industrial .mud-card {
    background-color: #27272a !important;
    /* bg-zinc-800 */
    border: 2px solid #3f3f46 !important;
    /* border-2 border-zinc-700 */
    border-radius: 2px !important;
    /* rounded-sm */
    box-shadow: none !important;
}

/* Primary Button (The Lime one) */
.theme-industrial .mud-button-filled-primary,
.theme-industrial .mud-button-filled {
    background-color: #a3e635 !important;
    /* bg-lime-400 */
    color: #000000 !important;
    /* text-black */
    border: 2px solid #84cc16 !important;
    /* border-lime-500 */
    font-weight: 700 !important;
    /* font-bold */
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    /* tracking-wider */
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.15s ease-out !important;
}

.theme-industrial .mud-button-filled-primary:active,
.theme-industrial .mud-button-filled:active {
    transform: translateY(2px) !important;
    box-shadow: none !important;
}

.theme-industrial .mud-button-filled-primary:hover,
.theme-industrial .mud-button-filled:hover {
    background-color: #a3e635 !important;
    /* Optional: slightly lighten/darken on hover if desired, but user didn't specify hover change other than transition */
}

/* Secondary Button */
.theme-industrial .mud-button-outlined,
.theme-industrial .mud-button-text {
    background-color: #27272a !important;
    /* bg-zinc-800 */
    color: #a1a1aa !important;
    /* text-zinc-400 */
    border: 2px solid #52525b !important;
    /* border-zinc-600 */
}

.theme-industrial .mud-button-outlined:hover,
.theme-industrial .mud-button-text:hover {
    border-color: #a1a1aa !important;
    /* hover:border-zinc-400 */
}

/* Inputs */
.theme-industrial .mud-input-control-input-container {
    background-color: #27272a !important;
    /* Match card bg */
    border: 1px solid #3f3f46 !important;
    color: #d4d4d8 !important;
}

.theme-industrial .mud-input-control-input-container:focus-within {
    border-color: #a3e635 !important;
}

/* Scrollbar */
.theme-industrial ::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border: 1px solid #27272a;
}

.theme-industrial ::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* Selection */
.theme-industrial ::selection {
    background-color: #a3e635;
    color: #000;
}


/* ========================================= */
/* STEALTH MODE THEME OVERRIDES              */
/* ========================================= */
/* ========================================= */
/* STEALTH MODE THEME OVERRIDES              */
/* ========================================= */
.theme-stealth {
    background-color: #000000 !important;
    /* bg-black */
    color: #9ca3af !important;
    /* text-gray-400 */
    font-family: 'Roboto', sans-serif !important;
    /* font-sans */

    --mud-palette-surface: #171717 !important;
    /* bg-neutral-900 */
    --mud-palette-background: #000000 !important;
    /* bg-black */
    --mud-palette-text-primary: #9ca3af !important;
    /* text-gray-400 */
    --mud-palette-text-secondary: #525252 !important;
    /* text-neutral-600 */
    --mud-palette-lines-default: #262626 !important;
    /* border-neutral-800 */
}

/* Headings: Italic White */
.theme-stealth h1,
.theme-stealth h2,
.theme-stealth h3,
.theme-stealth h4,
.theme-stealth h5,
.theme-stealth h6,
.theme-stealth .mud-typography-h6,
.theme-stealth .mud-typography-h5,
.theme-stealth .mud-typography-h4 {
    color: #ffffff !important;
    /* text-white */
    font-style: italic !important;
    /* italic */
}

/* App Bar & Drawer */
.theme-stealth .mud-appbar,
.theme-stealth .mud-drawer {
    background-color: #000000 !important;
    border-right: 1px solid #262626 !important;
    /* border-neutral-800 */
    border-bottom: 1px solid #171717 !important;
    /* bar: border-b border-neutral-900 */
    box-shadow: none !important;
}

/* Navigation Links */
.theme-stealth .mud-nav-link {
    color: #525252 !important;
    /* text-neutral-600 */
}

.theme-stealth .mud-nav-link.active {
    color: #2563eb !important;
    /* text-blue-600 */
}

/* Cards / Papers */
.theme-stealth .mud-paper,
.theme-stealth .mud-card {
    background-color: #171717 !important;
    /* bg-neutral-900 */
    border: 1px solid #262626 !important;
    /* border-neutral-800 */
    border-radius: 8px !important;
    /* rounded-lg */
    box-shadow: none !important;
}

/* Primary Button: Skewed, Blue, Uppercase, Italic */
.theme-stealth .mud-button-filled-primary,
.theme-stealth .mud-button-filled {
    background-color: #2563eb !important;
    /* bg-blue-600 */
    color: #ffffff !important;
    /* text-white */
    font-weight: 700 !important;
    /* font-bold */
    text-transform: uppercase !important;
    font-style: italic !important;
    letter-spacing: -0.05em !important;
    /* tracking-tighter */
    border-radius: 0 !important;
    /* Reset radius for skew consistency if needed, but JSON implies shape */
    transform: skewX(-10deg) !important;
    /* skew-x-[-10deg] */
    transition: all 0.2s ease !important;
    margin-left: 5px;
    margin-right: 5px;
    /* Spacing for skew */
}

.theme-stealth .mud-button-filled:hover {
    background-color: #3b82f6 !important;
    /* hover:bg-blue-500 */
}

/* Inner label counter-skew to straighten text */
.theme-stealth .mud-button-label {
    transform: skewX(10deg) !important;
    display: inline-block;
}

/* Secondary Button */
.theme-stealth .mud-button-outlined,
.theme-stealth .mud-button-text {
    background-color: transparent !important;
    border: 1px solid #404040 !important;
    /* border-neutral-700 */
    color: #a3a3a3 !important;
    /* text-neutral-400 */
    font-style: italic !important;
    transform: skewX(-10deg) !important;
}

.theme-stealth .mud-button-outlined:hover,
.theme-stealth .mud-button-text:hover {
    border-color: #ffffff !important;
    /* hover:border-white */
    color: #ffffff !important;
    /* hover:text-white */
}

/* Inputs */
.theme-stealth .mud-input-control-input-container {
    background-color: #171717 !important;
    border: 1px solid #262626 !important;
    color: #9ca3af !important;
    border-radius: 8px !important;
}

.theme-stealth .mud-input-control-input-container:focus-within {
    border-color: #2563eb !important;
}

/* Scrollbar */
.theme-stealth ::-webkit-scrollbar-thumb {
    background: #262626;
    border: 1px solid #171717;
}

/* Selection */
.theme-stealth ::selection {
    background-color: #2563eb;
    color: #ffffff;
}

/* Hide branding header in Stealth theme */
.theme-stealth .app-header-branding {
    display: none !important;
}

/* Elements visible ONLY in Stealth theme */
.stealth-only {
    display: none !important;
}


/* ========================================= */
/* PLATINUM ATELIER THEME OVERRIDES          */
/* ========================================= */
.theme-default {
    background-color: #ffffff !important;
    color: #171717 !important;
    /* text-neutral-900 */
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.05em !important;
    /* tracking-tighter */

    --mud-palette-surface: #ffffff !important;
    --mud-palette-background: #ffffff !important;
    --mud-palette-text-primary: #171717 !important;
    --mud-palette-text-secondary: #737373 !important;
    /* text-neutral-500 */
    --mud-palette-lines-default: #e5e5e5 !important;
    /* neutral-200 */
}

/* Headings */
.theme-default h1,
.theme-default h2,
.theme-default h3,
.theme-default h4,
.theme-default h5,
.theme-default h6,
.theme-default .mud-typography-h6,
.theme-default .mud-typography-h5,
.theme-default .mud-typography-h4 {
    color: #000000 !important;
    font-weight: 700 !important;
    letter-spacing: -0.05em !important;
}

/* Navigation & Drawer */
.theme-default .mud-appbar,
.theme-default .mud-drawer {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border-right: 1px solid #e5e5e5 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    /* border-neutral-200 */
    box-shadow: none !important;
}

/* Nav Links */
.theme-default .mud-nav-link {
    color: #737373 !important;
    /* text-neutral-500 */
}

.theme-default .mud-nav-link.active {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Cards / Papers */
.theme-default .mud-paper,
.theme-default .mud-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    /* border-neutral-200 */
    border-radius: 0 !important;
    /* rounded-none */
    box-shadow: none !important;
    /* shadow-none */
    transition: all 0.3s ease;
}

/* Active/Hover Cards (Optional enhancement) */
.theme-default .mud-card:hover {
    border-color: #000000 !important;
}

/* Primary Button: Black bg, White text, Invert on hover */
.theme-default .mud-button-filled-primary,
.theme-default .mud-button-filled {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    /* rounded-none */
    font-weight: 600 !important;
    text-transform: none !important;
    /* Optional: Keep text case natural or make uppercase if strictly fashion */
    letter-spacing: -0.02em !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.theme-default .mud-button-filled-primary:hover,
.theme-default .mud-button-filled:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
}

/* Secondary Button: White bg, Black text */
.theme-default .mud-button-outlined,
.theme-default .mud-button-text {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d4d4d4 !important;
    /* neutral-300 */
    border-radius: 0 !important;
}

.theme-default .mud-button-outlined:hover,
.theme-default .mud-button-text:hover {
    border-color: #000000 !important;
    background-color: #ffffff !important;
    /* keep white base */
}

/* Inputs */
.theme-default .mud-input-control-input-container {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    color: #171717 !important;
    border-radius: 0 !important;
}

.theme-default .mud-input-control-input-container:focus-within {
    border-bottom-color: #000000 !important;
}

/* Scrollbar */
.theme-default ::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 0;
}

.theme-default ::selection {
    background-color: #000000;
    color: #ffffff;
}

/* Platinum: Fix for Active/Selected States to ensure contrast */
.theme-default .mud-chip-selected,
.theme-default .mud-toggle-item-selected,
.theme-default .mud-list-item-selected,
.theme-default .mud-list-item.mud-selected-item,
.theme-default .mud-button-filled:active,
.theme-default .mud-button-filled-primary:active {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.theme-default .mud-chip-selected:hover,
.theme-default .mud-toggle-item-selected:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Platinum: Specific fix for Date Cards and Time Slots */
.theme-default .date-card.selected,
.theme-default .time-slot.selected {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Force children elements (like p, h6 with inline styles) to be white when selected */
.theme-default .date-card.selected *,
.theme-default .time-slot.selected * {
    color: #ffffff !important;
}

/* Platinum Atelier Navigation Button Fix */
.theme-default .app-bottom-nav .mud-icon-button,
.theme-default .mud-appbar .mud-icon-button {
    color: #737373 !important;
    /* Default/Inactive: Neutral 500 */
}

.theme-default .app-bottom-nav .mud-icon-button.mud-primary-text,
.theme-default .mud-appbar .mud-icon-button.mud-primary-text {
    color: #000000 !important;
    /* Active: Black */
}

/* Ensure SVG fills match */
.theme-default .app-bottom-nav .mud-icon-button svg,
.theme-default .mud-appbar .mud-icon-button svg {
    fill: currentColor !important;
}

.theme-default .app-bottom-nav .mud-icon-button:hover,
.theme-default .mud-appbar .mud-icon-button:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
}

/* ========================================= */
/* OBSIDIAN ASPHALT THEME OVERRIDES          */
/* ========================================= */
.theme-obsidian {
    background-color: #0a0a0a !important;
    /* bg-neutral-950 */
    color: #d4d4d8 !important;
    /* text-neutral-300 */
    font-family: 'Inter', sans-serif !important;

    --mud-palette-surface: #171717 !important;
    /* bg-neutral-900 */
    --mud-palette-background: #0a0a0a !important;
    /* bg-neutral-950 */
    --mud-palette-text-primary: #d4d4d8 !important;
    /* text-neutral-300 */
    --mud-palette-text-secondary: #525252 !important;
    /* text-neutral-600 */
    --mud-palette-lines-default: #262626 !important;
    /* border-neutral-800 */
}

/* Headings: Bold, Uppercase, Tracking-wide */
.theme-obsidian h1,
.theme-obsidian h2,
.theme-obsidian h3,
.theme-obsidian h4,
.theme-obsidian h5,
.theme-obsidian h6,
.theme-obsidian .mud-typography-h6,
.theme-obsidian .mud-typography-h5,
.theme-obsidian .mud-typography-h4 {
    color: #ffffff !important;
    font-weight: 900 !important;
    /* font-black */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    /* tracking-wide */
}

/* Navigation & Drawer */
.theme-obsidian .mud-appbar,
.theme-obsidian .mud-drawer {
    background-color: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-right: 1px solid #262626 !important;
    /* border-neutral-800 */
    border-bottom: 1px solid #262626 !important;
    box-shadow: none !important;
}

/* Nav Links */
.theme-obsidian .mud-nav-link {
    color: #525252 !important;
    /* text-neutral-600 */
}

.theme-obsidian .mud-nav-link.active {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Cards / Papers */
.theme-obsidian .mud-paper,
.theme-obsidian .mud-card {
    background-color: #171717 !important;
    /* bg-neutral-900 */
    border: 1px solid #262626 !important;
    /* border-neutral-800 */
    border-radius: 12px !important;
    /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1) !important;
    /* shadow-2xl black */
}

/* Active Card State (if applicable) */
.theme-obsidian .mud-card:hover {
    border-color: #525252 !important;
    /* active border neutral-600 */
    background-color: #262626 !important;
    /* active bg neutral-800 */
}

/* Primary Button */
.theme-obsidian .mud-button-filled-primary,
.theme-obsidian .mud-button-filled {
    background-color: #262626 !important;
    /* bg-neutral-800 */
    color: #ffffff !important;
    border: 1px solid #404040 !important;
    /* border-neutral-700 */
    border-radius: 12px !important;
    /* rounded-xl */
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.theme-obsidian .mud-button-filled-primary:hover,
.theme-obsidian .mud-button-filled:hover {
    background-color: #404040 !important;
    /* hover:bg-neutral-700 */
    border-color: #737373 !important;
    /* hover:border-neutral-500 */
}

/* Secondary Button */
.theme-obsidian .mud-button-outlined,
.theme-obsidian .mud-button-text {
    background-color: transparent !important;
    color: #a3a3a3 !important;
    /* text-neutral-400 */
    border: 1px solid #262626 !important;
    /* border-neutral-800 */
    border-radius: 12px !important;
}

.theme-obsidian .mud-button-outlined:hover,
.theme-obsidian .mud-button-text:hover {
    color: #ffffff !important;
    border-color: #525252 !important;
}

/* Inputs */
.theme-obsidian .mud-input-control-input-container {
    background-color: #171717 !important;
    border: 1px solid #262626 !important;
    color: #d4d4d8 !important;
    border-radius: 12px !important;
}

.theme-obsidian .mud-input-control-input-container:focus-within {
    border-color: #ffffff !important;
}

/* Scrollbar */
.theme-obsidian ::-webkit-scrollbar-thumb {
    background: #404040;
    border: 1px solid #262626;
    border-radius: 6px;
}

.theme-obsidian ::selection {
    background-color: #ffffff;
    color: #000000;
}

/* ========================================= */
/* OBSIDIAN: HIGH CONTRAST SELECTION STATES  */
/* ========================================= */

/* Fix for Button Active/Pressed State */
.theme-obsidian .mud-button-filled:active,
.theme-obsidian .mud-button-filled-primary:active,
.theme-obsidian .mud-icon-button:active {
    background-color: #ffffff !important;
    color: #000000 !important;
    transition: none !important;
    /* Instant feedback */
}

/* Fix for Selected Items (Chips, Toggles, List Items) */
.theme-obsidian .mud-chip-selected,
.theme-obsidian .mud-toggle-item-selected,
.theme-obsidian .mud-list-item-selected,
.theme-obsidian .mud-list-item.mud-selected-item {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Fix for Hover on Selected Items to maintain contrast */
.theme-obsidian .mud-chip-selected:hover,
.theme-obsidian .mud-toggle-item-selected:hover,
.theme-obsidian .mud-list-item-selected:hover {
    background-color: #e5e5e5 !important;
    /* Slightly darker white */
    color: #000000 !important;
}

/* Fix for BookingWizard Custom Classes (.date-card, .time-slot) */
.theme-obsidian .date-card.selected,
.theme-obsidian .time-slot.selected {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
}

.theme-obsidian .date-card.selected *,
.theme-obsidian .time-slot.selected * {
    color: #000000 !important;
}

/* Ensure hover on selected maintains contrast */
.theme-obsidian .date-card.selected:hover,
.theme-obsidian .time-slot.selected:hover {
    background-color: #e5e5e5 !important;
}


/* ========================================= */
/* CRYSTAL PRISM THEME OVERRIDES             */
/* ========================================= */
.theme-crystal-prism {
    background-color: #f8fafc !important;
    /* Slate-50 */
    font-family: 'Quicksand', sans-serif !important;

    --mud-palette-surface: rgba(255, 255, 255, 0.6) !important;
    --mud-palette-background: #f8fafc !important;
    --mud-palette-text-primary: #1e293b !important;
    /* Slate-800 */
    --mud-palette-text-secondary: #64748b !important;
    /* Slate-500 */
    --mud-palette-action-default: #7c3aed !important;
    /* Violet-600 */
}

/* Cards / Papers (Glassmorphism) */
.theme-crystal-prism .mud-paper,
.theme-crystal-prism .mud-card {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    border-radius: 32px !important;
}

/* Buttons (Vibrant Gradients) */
.theme-crystal-prism .mud-button-filled-primary,
.theme-crystal-prism .mud-button-filled {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3) !important;
    border-radius: 9999px !important;
    /* Fully rounded caps by default for soft look */
    transition: transform 0.2s ease !important;
    border: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.theme-crystal-prism .mud-button-filled-primary:hover,
.theme-crystal-prism .mud-button-filled:hover {
    transform: translateY(-2px) !important;
    /* Maintain gradient on hover */
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%) !important;
}

/* Secondary Buttons */
.theme-crystal-prism .mud-button-outlined {
    border: 2px solid #7c3aed !important;
    color: #7c3aed !important;
    border-radius: 9999px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 600 !important;
}

.theme-crystal-prism .mud-button-outlined:hover {
    background-color: rgba(124, 58, 237, 0.1) !important;
}

/* App Bar & Navigation */


.theme-crystal-prism .mud-drawer {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.theme-crystal-prism .mud-nav-link {
    color: #64748b !important;
    border-radius: 16px !important;
    transition: all 0.2s ease !important;
}

.theme-crystal-prism .mud-nav-link:hover {
    background-color: rgba(124, 58, 237, 0.1) !important;
    color: #7c3aed !important;
}

.theme-crystal-prism .mud-nav-link.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%) !important;
    color: #7c3aed !important;
    font-weight: 700 !important;
}

/* Headings */
.theme-crystal-prism h1,
.theme-crystal-prism h2,
.theme-crystal-prism h3,
.theme-crystal-prism h4,
.theme-crystal-prism h5,
.theme-crystal-prism h6 {
    color: #4c1d95 !important;
    /* Very dark violet */
    font-weight: 700 !important;
}

/* Inputs */
.theme-crystal-prism .mud-input-control-input-container {
    background-color: rgba(255, 255, 255, 0.5) !important;
    /* border: 1px solid rgba(124, 58, 237, 0.2) !important; REMOVED to avoid double-border */
    border-radius: 32px !important;
    backdrop-filter: blur(10px) !important;
}

.theme-crystal-prism .mud-input-control-input-container:focus-within {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}

/* Selection and Chips */
.theme-crystal-prism .mud-chip {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(124, 58, 237, 0.1) !important;
    backdrop-filter: blur(5px) !important;
}

.theme-crystal-prism .mud-chip-selected {
    background-color: #7c3aed !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3) !important;
}

/* ========================================= */
/* CRYSTAL PRISM: ADVANCED ANIMATIONS        */
/* ========================================= */

/* Aurora Background */
.theme-crystal-prism::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%,
            rgba(253, 164, 175, 0.4) 0%,
            /* Rosa Pastel #fda4af */
            rgba(125, 211, 252, 0.4) 30%,
            /* Azul Cielo #7dd3fc */
            rgba(196, 181, 253, 0.4) 60%,
            /* Violeta #c4b5fd */
            transparent 80%);
    filter: blur(60px);
    animation: aurora-move 20s ease-in-out infinite alternate;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes aurora-move {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    100% {
        transform: rotate(45deg) translate(-20px, 20px);
    }
}

/* Shine Effect on Cards */
.theme-crystal-prism .mud-paper {
    position: relative;
    overflow: hidden;
    /* Ensure shine doesn't spill out */
}

.theme-crystal-prism .mud-paper::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 10;
}

.theme-crystal-prism .mud-paper:hover::after {
    animation: shine-sweep 0.75s ease-in-out;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Floating Navbar (Pill Style) */
/* We target .mud-appbar and force it to look like a floating glass pill */


/* Default Bottom Nav Styling (Base) */
.app-bottom-nav {
    /* Restore proper mobile spacing and safe area */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    height: calc(64px + env(safe-area-inset-bottom)) !important;
}

/* Ensure the inner flex container takes full width and distributes items */
.app-bottom-nav>div {
    display: flex !important;
    width: 100% !important;
    justify-content: space-around !important;
    align-items: center !important;
}

/* Force items to take available space evenly */
.app-bottom-nav .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: var(--mud-palette-text-secondary) !important;

    /* Improved Sizing */
    flex: 1 1 0px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 8px 0 !important;
    transition: all 0.2s ease-in-out !important;
}

.app-bottom-nav .mobile-nav-item .mobile-nav-label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.app-bottom-nav .mobile-nav-item .mud-icon-root {
    font-size: 1.75rem !important;
    /* Larger icons (28px) */
}

/* Active State */
.app-bottom-nav .mobile-nav-item.active {
    color: var(--mud-palette-primary) !important;
}

.app-bottom-nav .mobile-nav-item.active .mobile-nav-label {
    font-weight: 700 !important;
}

/* Crystal Prism: Floating Bottom Navigation Pill */
/* This specifically targets the bottom app bar we added in MainLayout */
@media (max-width: 959.98px) {
    .theme-crystal-prism .app-bottom-nav {
        position: fixed !important;
        bottom: 24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 400px !important;
        border-radius: 9999px !important;

        background-color: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;

        /* Ensure content is centered and clean */
        padding: 0 !important;
        height: auto !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}

/* Reset inner items for the pill look */
/* Reset inner items for the pill look - TARGETING ACTUAL MUD CLASSES */
.theme-crystal-prism .app-bottom-nav .mud-icon-button {
    transition: all 0.2s ease !important;
}

/* Inactive State: FORCE BLACK for Maximum Contrast against White/Glass */
/* We target the button, the icon root, and the svg path to override any inheritance */
.theme-crystal-prism .app-bottom-nav .mud-icon-button.mud-inherit-text,
.theme-crystal-prism .app-bottom-nav .mud-icon-button.mud-inherit-text .mud-icon-root,
.theme-crystal-prism .app-bottom-nav .mud-icon-button.mud-inherit-text svg {
    color: #000000 !important;
    /* Pure Black */
    fill: #000000 !important;
}

/* Active State: Violet */
.theme-crystal-prism .app-bottom-nav .mud-icon-button.mud-primary-text {
    color: #7c3aed !important;
    /* Violet-600 */
    transform: scale(1.1);
}

.theme-crystal-prism .app-bottom-nav .mud-icon-button:hover {
    color: #6d28d9 !important;
    /* Violet-700 */
    background-color: rgba(124, 58, 237, 0.05) !important;
}

/* Forzar distribución en todo el ancho */
.app-bottom-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-evenly !important;
    /* La clave para separarlos */
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Asegurar que el contenedor interno de MudBlazor también se expanda */
.app-bottom-nav .mud-toolbar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-evenly !important;
    padding: 0 !important;
}

/* Aumentar la zona táctil de los botones */
.app-bottom-nav .mud-icon-button {
    flex: 1 !important;
    /* Ocupar espacio disponible */
    max-width: 80px;
    /* Evitar que se estiren demasiado */
}

/* Ajuste específico para iconos SVG si siguen viéndose chicos */
.app-bottom-nav .mud-icon-button svg {
    font-size: 2rem !important;
    /* 32px forzado */
}