﻿/* visually disables elements in a mud container */
.disabled-container {
    pointer-events: none;
    opacity: 0.5;
}

.scrollable-datagrid {
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents row wrapping */
    display: block;
}

.compact-column {
    min-width: 85px !important; /* Compact width */
    width: 100px !important;
    max-width: 100px !important;
    white-space: normal;
}

.mud-input-numeric-spin {
    visibility: hidden;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: none !important;
}

.error-asterisk {
    color: var(--mud-palette-info, red);
    font-weight: 500;
}

.mud-input-required .mud-input-label::after {
    color: var(--mud-palette-info, red) !important;
    font-weight: 500;
    content: "*"; /* Ensure asterisk is present */
}

.font-weight-bold {
    font-weight: 500 !important;
}

.font-weight-medium {
    font-weight: 400 !important;
}

.height-165 {
    height: 165px !important;
}

.padding-right-0 {
    padding-right: 0 !important;
}

.lightened-input .mud-input-root {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Lightened input field */
}
.lightened-input .mud-input-control-input-container {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Lightened input field */
}

.lightened-input .mud-input {
    background-color: transparent !important; /* Ensures nested input remains consistent */
}

.lightened-input label {
    background-color: transparent !important; /* Prevents labels from being affected */
}
.lightened-input .mud-input-adornment-icon-button {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Lightened input field */
}
.lightened-input .mud-input-adornment-end {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Lightened input field */
}

.mud-table-cell.edit-mode-cell {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Lightened background */
    padding: 3px !important;
}

.lightened.mud-table-cell {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Lightened background */
    padding: 3px !important;
}



/* Ensure nav links have correct styles, but don't affect Logout */
.mud-nav-link {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif !important;
    font-size: 1rem !important;
}

    .mud-nav-link.active,
    .mud-nav-link.mud-nav-link-active {
        color: #E0F2F1 !important;
        background-color: #1E7D73 !important;
    }

    .mud-nav-link:hover,
    .mud-nav-link.mud-ripple:hover {
        background-color: #196A61 !important;
    }

div[role="toolbar"].mud-toolbar.mud-toolbar-gutters.mud-toolbar-appbar {
    padding-right: 0px;
}

/* Wizard */
.wizard-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .wizard-controls button {
        font-size: 1.1rem; /* Slightly larger */
        font-weight: bold;
        padding: 0.6rem 1.3rem;
        min-width: 180px;
    }


/* Results Page */

.results-completion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

.completion-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loading-text {
    font-weight: bold;
    color: var(--mud-palette-primary);
    animation: pulse 2s infinite;
}

.loading-subtext {
    color: var(--mud-palette-text-secondary);
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
.results-page {
    background-color: #f5f5f5;
}

.results-container {
    max-width: 1200px;
    margin: auto;
}

.results-page .highlight-card {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
}

    .results-page .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    }

.results-page .bg-red {
    background-color: #ffebee !important;
    color: #b71c1c !important;
    border-left: 5px solid #b71c1c;
}

.results-page .bg-green {
    background-color: #e8f5e9 !important;
    color: #1b5e20 !important;
    border-left: 5px solid #1b5e20;
}

.results-page .text-primary {
    color: var(--mud-palette-primary);
}

.results-page .text-center {
    text-align: center;
}

.results-page .font-weight-bold {
    font-weight: 700;
}

.results-page h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.results-page h5 {
    font-size: 1.5rem;
}

.results-page .mt-4 {
    margin-top: 1rem;
}

.results-page .mud-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
