/* assets/style.css */

/* ── Base ─────────────────────────────────────────────────── */
body {
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2c3e50;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-professional {
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    border-bottom: 2px solid #18bc9c;
}

.navbar-professional .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    transition: background 0.15s;
}

.navbar-professional .nav-link:hover {
    background: rgba(24,188,156,0.10);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
    margin-bottom: 1.25rem;
}

.card-body {
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem !important;
}

/* ── Accordion ────────────────────────────────────────────── */
.accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
    background-color: #18bc9c !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.btn-primary:hover {
    background-color: #18bc9c;
    border-color: #18bc9c;
}

/* ── DataTable overrides ──────────────────────────────────── */
.dash-spreadsheet-container .dash-header {
    background-color: #2c3e50 !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-spreadsheet td {
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #ecf0f1 !important;
}

.dash-spreadsheet tr:nth-child(even) td {
    background-color: #f8f9fa !important;
}

.dash-spreadsheet tr:hover td {
    background-color: #e8f5f2 !important;
}

/* ── Dropdowns (react-select) ─────────────────────────────── */
.Select-control {
    min-height: 42px !important;
    border-radius: 8px !important;
}

.Select-option,
.VirtualizedSelectOption {
    font-size: 14px;
    padding: 10px 12px !important;
    white-space: normal !important;
    word-break: break-word;
}

.Select-menu-outer {
    max-height: 300px !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.4em 0.75em;
    border-radius: 6px;
}

/* ── Page content spacing ─────────────────────────────────── */
#page-content, ._dash-loading {
    padding-top: 1rem;
}

/* ── Loading overlay ──────────────────────────────────────── */
._dash-loading-callback {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .btn {
        font-size: 14px;
        padding: 8px 12px;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        font-size: 15px;
    }

    .card-body {
        padding: 1rem;
    }
}
