/* Custom QAIR Dashboard Stylesheet */

:root {
    /* Primary Colors - adjust these to match your brand */
    --primary-color: #0066cc;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --success-color: #28a745;

    /* Neutral Colors */
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-color: #dee2e6;
}

/* Header/AppBar */
.navbar,
[role="navigation"] {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: var(--dark-text);
    padding: 1rem 1.5rem;
}

/* Metric Cards - Hero Style */
.card-body h3 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

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

.badge.bg-warning {
    background: #ffc107 !important;
    color: #000;
}

/* Dropdowns */
select,
.form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

select:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Tables */
table {
    font-size: 0.95rem;
}

table thead {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark-text);
}

table tbody tr:hover {
    background: #f5f8fb;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Plotly Charts */
.plotly {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Alert Boxes */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-warning {
    border-left-color: #ffc107;
    background: #fff8e1;
    color: #856404;
}

.alert-info {
    border-left-color: #17a2b8;
    background: #e7f3ff;
    color: #0c5460;
}

.alert-success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    background: #f8fbff;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: #f0f7ff;
    border-color: #0052a3;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-text);
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Container */
.container-fluid,
.container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body h3 {
        font-size: 1.75rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.9rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-text: #f8f9fa;
        --light-bg: #1a1a1a;
    }

    .card {
        background: #2d2d2d;
        border-color: #444;
    }

    table {
        background: #2d2d2d;
        color: #f8f9fa;
    }

    table thead {
        background: #1a1a1a;
    }
}