@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* WashU logo colors */
.washu-logo-c {
    fill: #2c5234;
}

.washu-logo-d {
    fill: #ba0c2f;
}

/* Code styling */
.code-style {
    background-color: black;
    color: floralwhite;
}

/* Blazor error UI */
#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;
}

/* WashU branding header */
#washu-branding {
    width: 100%;
    height: 95px;
    overflow: hidden;
}

#washu-branding-container {
    padding-left: 15px;
}

/* Remove LastPass icons */
div[data-lastpass-icon-root] {
    display: none !important;
}

div[data-lastpass-root] {
    display: none !important;
}

/* Loading spinner */
.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* Warning message */
.warning-message {
    margin-top: 20px;
    width: fit-content;
    background-color: #ffcccc;
    color: #cc0000;
    border: 1px solid #cc0000;
    padding: 10px;
    border-radius: 5px;
}

/* Form validation */
.validation-message {
    color: #ba0c2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Help text - consistent styling for field/section descriptions */
.help-text {
    color: rgba(0,0,0,0.6);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Form action buttons spacing */
.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* MudBlazor form label sizing - increase for better readability */
.mud-input-label {
    font-size: 1rem !important;
}

.mud-input-label-inputcontrol {
    font-size: 1rem !important;
}

/* Filled action buttons with colored backgrounds and white icons */
.mud-button-filled-default {
    background-color: #616161 !important;
    color: white !important;
}

.mud-button-filled-info {
    background-color: #2196f3 !important;
    color: white !important;
}

.mud-button-filled-error {
    background-color: #f44336 !important;
    color: white !important;
}

.mud-button-filled-success {
    background-color: #4caf50 !important;
    color: white !important;
}

/* Ensure SVG icons are white */
.mud-button-filled-default svg,
.mud-button-filled-info svg,
.mud-button-filled-error svg,
.mud-button-filled-success svg {
    color: white !important;
    fill: currentColor !important;
}

/* Right-align Actions column headers in datagrids */
th.actions-header-right,
.mud-table-head .actions-header-right {
    text-align: right !important;
}

th.actions-header-right .mud-table-cell-content,
.mud-table-head th.actions-header-right .mud-table-cell-content {
    justify-content: flex-end !important;
    display: flex !important;
}

th.actions-header-right > *,
th.actions-header-right > div {
    justify-content: flex-end !important;
    text-align: right !important;
}

.actions-header-right span,
th.actions-header-right span {
    width: 100%;
    text-align: right !important;
    display: block !important;
}
