html@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: block;
    src: url(/Roboto-Italic-VariableFont_wdth,wght.ttf) format('opentype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: block;
    src: url(/Roboto-VariableFont_wdth,wght.ttf) format('opentype');
}

* {
    --mud-appbar-height: 90px;
    --mud-drawer-width-left: 325px;
    --mud-palette-action-default-hover: #00000000;
    --mud-default-borderradius: 25px;
}

html {
    height: 100vh;
    width: 100vw;
    background-color: #000;
}

body {
    height: 100%;
    width: 100%;
    background-color: #000;
}

#main {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.mud-main-content {
    background-image: url('/assets/layout/background.png'), linear-gradient(90deg, black 5%, transparent 30%, transparent 70%, black 95%);
    background-blend-mode: multiply;
    background-size: 1920px 2160px;
    background-position-x: 50%;
    background-repeat: repeat-y;
    min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    outline: none;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi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uMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#components-reconnect-modal {
    background-color: white !important;
}

/* Blazor reconnection UI styling */
#blazor-error-ui {
    background: #f44336;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    padding: 16px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.43;
    letter-spacing: 0.01071em;
}

    #blazor-error-ui:not([data-nosnippet]) {
        display: flex;
    }

    #blazor-error-ui .reload {
        color: white;
        text-decoration: underline;
        margin-left: 8px;
        cursor: pointer;
        font-weight: 600;
    }

        #blazor-error-ui .reload:hover {
            text-decoration: none;
            opacity: 0.9;
        }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        margin-left: 24px;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s;
        font-size: 1.2rem;
        line-height: 1;
        min-width: 32px;
        text-align: center;
    }

        #blazor-error-ui .dismiss:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

    /* Reconnecting state - show as warning/info instead of error */
    #blazor-error-ui[data-status="reconnecting"] {
        background: #ff9800;
    }

    #blazor-error-ui[data-status="rejected"] {
        background: #d32f2f;
    }


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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

/* Global MudButton styling - rounded edges */
.mud-button {
    text-transform: none !important;
    transition: all 0.2s ease !important;
    transform-origin: center !important;
}

    .mud-button:hover {
        transform: scale(1.02);
    }

    .mud-button:active {
        transform: scale(0.98);
        animation: button-click 0.3s ease;
    }

/*    .mud-button.mud-button-filled-tertiary {
        border-radius: 25px;
        padding: 8px 40px;
    }*/

@keyframes button-click {
    0% {
        transform: scale(1.02);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1.02);
    }
}


.mud-typography-body1.mud-primary-text {
    font-weight: 400;
}

.mud-nav-link {
    padding: 16px 16px 16px 16px;
}

    .mud-nav-link .mud-nav-link-text {
        margin-left: 24px;
    }

.mud-nav-item:not(#menu-button):hover {
    background-color: #FFFFFF10 !important;
}

.mud-nav-item > a {
    text-wrap: nowrap;
    text-overflow: clip;
}

.mud-tabs-tabbar {
    background-color: inherit !important;
}

.mud-input-filled-with-label {
    margin-top: 15px !important;
    padding-top: 0px !important;
}

    .mud-input-filled-with-label .mud-input-root-filled {
        padding-top: 10px !important;
    }

label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-filled {
    transform: translate(0px, 0px) scale(0.75) !important
}


/* Nav link selected state - icon should match text color */
.mud-nav-link-selected .mud-icon-root,
.mud-nav-link.active .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

/* Collapse button icon rotation and hover effect */
.collapse-button .mud-icon-root {
    transition: transform 0.3s ease;
}

.collapse-button:hover .mud-icon-root {
    transform: scale(1.3);
}

.collapse-button.collapsed .mud-icon-root {
    transform: rotate(-90deg);
}

.collapse-button.collapsed:hover .mud-icon-root {
    transform: rotate(-90deg) scale(1.3);
}

.mud-input-numeric-spin > .mud-button {
    border: none;
}

.mud-list-item-text p {
    font-weight: 500;
}

.anchor-target {
    scroll-margin-top: calc(var(--mud-appbar-height) + 20px);
}

/* MANUAL APP CSS */

ul {
    padding-left: 40px;
}

#language-select-button p {
    height: 24px;
    width: 24px;
}

.glass-card {
    position: relative;
    width: 100%;
    background: rgba(20, 20, 20, 0);
    backdrop-filter: blur(20px) brightness(1.8);
    border-radius: 20px;
}

    .glass-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 1px;
        background: conic-gradient(from 0, transparent 0deg, rgba(211, 245, 255, 0.4) 60deg, transparent 120deg, rgba(211, 245, 255, 0.4) 180deg, transparent 240deg, rgba(211, 245, 255, 0.4) 300deg, transparent 360deg);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }


.title-gradient {
    background: linear-gradient(90deg, #f0eeec, #735a87);
    color: transparent;
    background-clip: text;
}

.gradient-container {
    display: flex;
    position: relative;
    border-radius: 30px;
    background-color: #0000;
}

    .gradient-container::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 33px;
        padding: 8px;
        background: linear-gradient(120deg, #8e6285 0%, #c6a9b5 29%, #ddbca6 45%, #f7d291 61%, #ef9150 87%, #CB7232 100%);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }

    .gradient-container::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 32px;
        margin: 1px;
        padding: 6px;
        background: rgba(0, 0, 0, 0.4);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        mix-blend-mode: multiply;
        pointer-events: none;
    }

#layout-background-overlay {
    --bg-position-x: 50%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background-image: url('/assets/layout/header_glow.png');
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position-x: var(--bg-position-x);
    background-position-y: 50%;
    will-change: background-position;
    transition: background-position 0.1s ease-out;
    pointer-events: none;
}

.rounded-button {
    height: calc(var(--mud-default-borderradius) * 2);
    border-radius: 25px;
    padding: 0 25px;
    font-size: 20px;
    min-width: 200px;
    text-align: center;
    margin: 0;
    border: 1px solid var(--mud-palette-primary);
    color: var(--mud-palette-text-primary);
}

    .rounded-button:hover {
        color: var(--mud-palette-text-primary);
        background-color: var(--mud-palette-primary);
    }

.filled-button {
    color: var(--mud-palette-text-secondary);
    background-color: var(--mud-palette-secondary);
}

.warning-button {
    color: var(--mud-palette-error);
    border: 1px solid var(--mud-palette-error);
}

    .warning-button:hover {
        color: var(--mud-palette-text-primary);
        background-color: var(--mud-palette-error);
    }

.cornea-input-header {
    font-weight: 400;
}

.mud-input {
    color: black;

    .mud-input-outlined-border {
        background-color: white;
        border-style: none !important;
        z-index: 0;
    }

    input, textarea {
        text-align: center;
        position: relative;
        background-color: transparent;
        z-index: 1;
    }
}

    .mud-input:has(input) {
        height: calc(var(--mud-default-borderradius) * 2);
    }

.mud-input-helper-text {
    color: grey;
}

.mud-input.mud-disabled {
    color: grey;

    .mud-input-outlined-border {
        background-color: lightgray;
    }
}

.mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border {
    border-color: var(--mud-palette-primary) !important;
    border-style: solid !important;
}

.section-header {
    font-size: 24px;
    font-weight: 500;
    color: #d9cdff;
}


/* Dialog */

.dialog {
    text-align: center;
    border-radius: 10px !important;
    border: 1px solid var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-background-gray) 50%, transparent) !important;
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.mud-dialog {
    padding: 140px 80px;
}

/* link element */
.mud-link {
    color: #d9cdff !important;
}

/* select element */

.cornea-select {
    div.mud-input {
        color: #d9cdff;
        background-color: #1a1d26;
        border-radius: 15px;
    }

        div.mud-input:hover {
            background-color: #1c1f27;
        }

    svg {
        color: #d9cdff;
    }

    div.mud-select-input.mud-input-slot {
        padding: 0 2rem !important;
    }
}

.cornea-select-item {
    color: #735a86;
    background-color: #1a1d26;
    padding-left: 2rem;
}

    .cornea-select-item:hover {
        background-color: #3a3747;
    }


div:has(.cornea-select-item) {
    border-radius: 15px;
}

.cornea-select-item.mud-selected-item {
    color: #d9cdff !important;
}

/* Table */

.table-container {
    width: 100%;
    background-color: #1a1d26;
    border-radius: 20px;
    padding-bottom: 20px;

    .mud-table {
        padding-top: 24px;
        border-radius: 0;
        background-color: #1d2029;

        .mud-table-root {
            border-collapse: separate;
            border-spacing: 0 15px;
        }

        tbody tr {
            background-color: #1a1d26;
        }

        td, th {
            border-bottom: none;
        }
    }
}

.table-button {
    height: 48px;
    justify-content: left;
    padding-left: 2rem;
    color: #d9cdff;
}



/* Main Layout */
.main-layout-button {
    padding: 6px 18px;
    color: #d9cdff;
}

    .main-layout-button.active {
        background-color: #FFFFFF30;
    }

/* Home page */

.gradient-header {
    font-size: clamp(20px, 6cqw, 78px);
    font-weight: 600;
    line-height: 100%;
    padding-bottom: 2%;
}

.subline {
    color: #d1c9d3;
    font-size: clamp(10px, 4cqw, 25px);
}

.small-subline {
    color: #d1c9d3;
    font-size: clamp(10px, 4cqw, 20px);
}

.gc-t1 {
    width: 100%;
    font-size: clamp(60px, 15cqw, 100px);
    font-weight: 600;
    line-height: 1;
    color: #d1c9fcE0;
}

.gc-t2 {
    width: fit-content;
    font-size: clamp(15px, 5cqw, 30px);
    font-weight: 400;
    line-height: 1;
    color: #d1c9fcE0;
}

.gc-t3 {
    vertical-align: top;
}

.gc-t4 {
    position: relative;
    font-size: clamp(90px, 25cqw, 150px);
    font-weight: 600;
    margin-top: -10%;
    color: #d1c9fcE0;
    text-shadow: 0 0 20px #d1c9fcE0;
    filter: brightness(1.1);
}

.gc-t5 {
    position: relative;
    font-size: clamp(6px, 5cqw, 30px);
    bottom: 1em;
    text-wrap: nowrap;
}

.mud-input-label-outlined {
    transform: translate(17px, 17px) scale(1);
}

.home-fade-in {
    opacity: 0;
    animation: homeFadeIn 2s cubic-bezier(0, 0.8, 0.2, 1) forwards;
}

@keyframes homeFadeIn {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile */

.profile-panel-header {
    color: #d9cdff;
}

/* Menu */

.menu-button svg {
    border-radius: 5px;
}

    .menu-button svg:hover {
        background-color: #6a6a6a80;
    }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    padding: 0px;
}

@media only screen and (max-width: 767px) {
    .menu-overlay {
        overflow-y: scroll;
        align-items: flex-start;
    }

    .menu-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.menu-glass-button {
    color: #d9cdff;
    background: #FFFFFF20;
    border-radius: 40px;
    width: 330px;
    height: 200px;
    text-transform: none;
    border: #6a6a6a80 solid 1px;
    opacity: 0;
    animation: fallIn 0.8s cubic-bezier(0, 0.8, 0.2, 1) forwards;
}

    .menu-glass-button:hover {
        background-color: #6846fe20;
        transition: background-color 0.3s ease;
    }

    .menu-glass-button:nth-child(1) {
        animation-delay: 0s;
    }

    .menu-glass-button:nth-child(2) {
        animation-delay: 0.1s;
    }

    .menu-glass-button:nth-child(3) {
        animation-delay: 0.2s;
    }

    .menu-glass-button:nth-child(4) {
        animation-delay: 0.3s;
    }

    .menu-glass-button:disabled {
        cursor: not-allowed;
    }

        .menu-glass-button:disabled:hover {
            background-color: #FFFFFF20;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fallIn {
    0% {
        opacity: 0;
        transform: scale(1.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-glass-button-icon {
    height: 60px;
    width: 60px;
}

.menu-glass-button-text {
    font-size: 30px;
    font-weight: 400
}

/* Dashboard */

.dashboard-card {
    width: 350px;
    height: 230px;
    padding: 40px;
}

/* Expansion panel */

.mud-expansion-panels > .mud-expand-panel:not(:last-child) {
    margin-bottom: 35px;
}

.mud-expand-panel {
    color: #d9cdff;
}

    .mud-expand-panel.mud-expand-panel-border {
        border: none;
    }

    /* Smooth expand/collapse animation for expansion panels */
    .mud-expand-panel .mud-collapse-wrapper-inner > [hidden] {
        display: block !important;
    }

    .mud-expand-panel .mud-collapse-container {
        display: grid;
        grid-template-rows: minmax(0, 0fr);
        transition: grid-template-rows 300ms ease-in-out;
        overflow: hidden;
    }

        .mud-expand-panel .mud-collapse-container:has(.mud-expand-panel-content:not([hidden])) {
            grid-template-rows: minmax(0, 1fr);
        }

    .mud-expand-panel .mud-collapse-wrapper {
        overflow: hidden;
    }

/* Honeypot Fields */
/* Decoy field - looks like username input but hidden via positioning */
.form-field-username {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Verification field - looks like CSRF/form token, completely hidden */
.form-security-token {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* END MANUAL CSS */
