/* Define a CSS variable for the base font-family */
:root {
    --app-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    font-family: var(--app-font-family);
}

a, .btn-link {
    color: #006bb7;
}

/* Commented out to avoid conflicts with auth pages
.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9Lar
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.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;
}

/* Simple global notification override with page-specific targeting */
.simple-notification-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2147483647 !important;
    pointer-events: all !important;
    isolation: isolate !important;
}

.simple-notification-popup {
    position: absolute !important;
    top: 3.5rem !important;
    right: 1rem !important;
    z-index: inherit !important;
    isolation: isolate !important;
}

/* Specific overrides for problematic pages */
body .simple-notification-overlay,
html .simple-notification-overlay,
[class*="profile"] .simple-notification-overlay,
[class*="user-management"] .simple-notification-overlay,
.card .simple-notification-overlay,
.modal-overlay ~ .simple-notification-overlay {
    z-index: 2147483647 !important;
    position: fixed !important;
    isolation: isolate !important;
}

/* Force notification popup to win over any other z-index */
.simple-notification-popup {
    z-index: 2147483647 !important;
    position: absolute !important;
    isolation: isolate !important;
    contain: layout !important;
}

/* Mobile-first container-fluid optimization */
.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 480px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 360px) {
    .container-fluid {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Enhanced Action Button Styling */
.action-button-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.action-button-group .btn {
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-width: 1.5px;
}

/* View Button Styling */
.action-button-group .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.action-button-group .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
    border-color: #0d6efd;
}

.action-button-group .btn-outline-primary:active {
    transform: translateY(0);
}

/* Download Button Styling (Success) */
.action-button-group .btn-outline-success {
    color: #198754;
    border-color: #198754;
    position: relative;
    overflow: hidden;
}

.action-button-group .btn-outline-success:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #198754;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.action-button-group .btn-outline-success:hover {
    color: white;
    background-color: #198754;
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.action-button-group .btn-outline-success:before {
    width: 300px;
    height: 300px;
}

.action-button-group .btn-outline-success:active {
    transform: translateY(0);
}

/* Delete Button Styling */
.action-button-group .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.action-button-group .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

.action-button-group .btn-outline-danger:active {
    transform: translateY(0);
}

/* Icon spacing and sizing */
.action-button-group .btn i {
    font-size: 1rem;
    margin: 0;
}