html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

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 {
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjA2MjUgNDEuMTc3Mk0zNS4xMjc1IDQxLjE3NzJMNDcuNzI0MSAyNS44MDcySDE0LjM3NzVMIiBzdHJva2U9IiNFMzkxOTFCMiIgc3Ryb2tlLXdpZHRoPSIzLjMzNzUiLz4KPHBhdGggZD0iTTEzLjA2MjUgNDEuMTc3Mk0zNS4xMjc1IDQxLjE3NzJMNDcuNzI0MSAyNS44MDcySDE0LjM3NzVMIiBzdHJva2U9IiNFMzkxOTFCMiIgc3Ryb2tlLXdpZHRoPSIzLjMzNzUiLz4KPHBhdGggZD0iTTM1LjEyNzUgNDEuMTc3Mk0xMy4wNjI1IDQxLjE3NzJMMC40NjU5MTMgMjUuODA3Mkg0Ny43MjQxTCIgc3Ryb2tlPSIjRTM5MTkxQjIiIHN0cm9rZS13aWR0aD0iMy4zMzc1Ii8+CjxwYXRoIGQ9Ik0yNC4wOTM3IDEyLjk0NzZMMTYuMjc2MSAzNC41MjE5SDE5LjY2MjVIMjguNTI1SDMxLjkxMTVMMjQuMDkzNyAxMi45NDc2WiIgZmlsbD0iI0UzOTE5MSIgc3Ryb2tlPSIjRTM5MTkxQjIiIHN0cm9rZS13aWR0aD0iMS4zMzUiLz4KPC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Custom Loading Styles */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.app-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.app-logo {
    width: 120px;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 1rem;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
    margin-top: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-text, .loading-subtitle {
    animation: fadeIn 0.8s ease-out;
}

/* Hide default Blazor loading styles */
.loading-progress {
    display: none;
}

.loading-progress-text {
    display: none;
}

/* Required Field Asterisks */
/* Add red asterisk to MudTextField labels when Required="true" */
.mud-input-label.mud-input-required::after,
.mud-select-label.mud-input-required::after,
.mud-input-control.mud-input-required > label::after {
    content: " *";
    color: #f44336;
    font-weight: bold;
    margin-left: 2px;
}

/* Additional targeting for MudDatePicker and MudTimePicker */
.mud-picker-input-control.mud-input-required > label::after {
    content: " *";
    color: #f44336;
    font-weight: bold;
    margin-left: 2px;
}

/* Targeting for MudRadioGroup when required */
.mud-radio-group.mud-input-required > fieldset > legend::after {
    content: " *";
    color: #f44336;
    font-weight: bold;
    margin-left: 2px;
}
