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

/* Focus states for accessibility */
.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;
}

.sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-right: 1px solid #dee2e6;
    min-height: 100vh;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.markdown-content {
    line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.25rem;
}

.markdown-content strong {
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.table-sm td,
.table-sm th {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.alert {
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* Data Sources Styling */
.data-source-link {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    padding: 0.25rem 0;
}

.data-source-link:hover {
    color: #0a58ca;
    text-decoration: underline;
    transform: translateX(5px);
}

.data-source-link:active {
    color: #084298;
}

.data-sources-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 1rem;
}

.data-sources-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.data-sources-section ul li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.data-sources-section ul li a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Source category icons */
.source-category-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Hover effects for source links */
.data-sources-section ul li:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    transition: all 0.2s ease-in-out;
}

/* AppModal: ensure above top nav (z-index 1000). Global so modal is never trapped in a stacking context. */
.app-modal-backdrop {
    z-index: 9998 !important;
}
.app-modal-host {
    z-index: 9999 !important;
}

/* Modal: start dialog below fixed top nav (~4rem) so header isn't clipped. Applies to both legacy page modals and Shared/AppModal. */
.modal .modal-dialog,
.app-modal-host .modal-dialog {
    margin-top: 5rem !important;
    max-height: calc(100vh - 6rem);
}
