/* Force light mode - prevent dark mode from affecting the application */
:root {
    color-scheme: light only;
}

html {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root, html, body {
        color-scheme: light !important;
    }
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
    font-size: 14px;
}

a, .btn-link {
    color: #006bb7;
}

.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;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent content from creating page scroll */
}

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-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v6h-2zm0 8h2v2h-2z'/%3E%3Cpath d='M12 2 1 21h22L12 2zm0 4.84L19.53 19H4.47L12 6.84z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem 1rem;
    background-size: 1.8rem 1.8rem; 
    background-color: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Shared download overlay - force full-screen modal */
.download-overlay-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

.download-overlay-modal {
    background: #ffffff !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    width: min(360px, 90vw) !important;
    text-align: center !important;
}

.download-overlay-modal .spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border: 3px solid #d0d6e2;
    border-top-color: #2b6cb0;
    border-radius: 50%;
    animation: download-overlay-spin 0.8s linear infinite;
}

.download-overlay-modal .modal-title {
    font-weight: 600;
    margin-top: 0.5rem;
    color: #1d2a3c;
}

.download-overlay-modal .modal-subtitle {
    font-size: 0.9rem;
    color: #5f6877;
    margin-top: 0.25rem;
}

.download-overlay-modal .modal-error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.85rem;
}

@keyframes download-overlay-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Global button styles - used across all pages */
/* Only apply to buttons without Bootstrap btn-primary class to avoid conflicts */
.btn:not(.btn-primary):not(.btn-link) {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    background: #ffffff;
    color: #374151;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn:not(.btn-primary):not(.btn-link):hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.btn:not(.btn-primary):not(.btn-link):disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-ghost {
    background: transparent;
    color: #374151;
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: #f3f4f6;
}

/* Action bar styles - used across multiple pages */
.actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.actionbar-left {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.actionbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

