/* ============================================================
   Interview Tracker — Global Styles
   A small design system built on CSS custom properties, layered
   on top of Bootstrap 5 rather than overriding it. Bootstrap's
   grid, spacing utilities, and components are used as-is; this
   file only handles brand color, typography, and small component
   refinements Bootstrap doesn't provide out of the box.
   ============================================================ */

:root {
    --brand-primary: #2f5fdc;
    --brand-primary-dark: #23459e;
    --brand-dark: #1c2333;
    --brand-success: #198754;
    --brand-danger: #dc3545;
    --brand-muted: #6c757d;
    --surface-bg: #f4f6fb;
    --card-radius: 0.75rem;
}

body {
    background-color: var(--surface-bg);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Navbar */

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.navbar-dark.bg-dark {
    background-color: var(--brand-dark) !important;
}

/* Cards */

.card {
    border: none;
    border-radius: var(--card-radius);
}

.card .card-title {
    font-weight: 600;
}

/* Buttons */

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Tables */

.table thead.table-light th {
    font-weight: 600;
    color: var(--brand-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.table-hover tbody tr:hover {
    background-color: rgba(47, 95, 220, 0.05);
}

/* Status badges — consistent color mapping across list, detail,
   and dashboard views, matching the Chart.js color scheme from
   Phase 6 so the same status always reads the same color everywhere. */

.badge.status-applied {
    background-color: var(--brand-muted) !important;
}

.badge.status-online-assessment {
    background-color: #0dcaf0 !important;
    color: #05353f;
}

.badge.status-technical-interview {
    background-color: var(--brand-primary) !important;
}

.badge.status-hr-interview {
    background-color: #ffc107 !important;
    color: #4d3800;
}

.badge.status-offer {
    background-color: var(--brand-success) !important;
}

.badge.status-rejected {
    background-color: var(--brand-danger) !important;
}

/* Forms */

.form-label {
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(47, 95, 220, 0.15);
}

/* Empty states */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--brand-muted);
}

/* Dashboard summary cards */

.summary-card h3,
.summary-card h4 {
    font-weight: 700;
}

/* Responsive tweak: keep dashboard chart cards from feeling cramped
   on tablet widths (between mobile stacking and full desktop width). */
@media (min-width: 768px) and (max-width: 991.98px) {
    .card-body canvas {
        max-height: 220px;
    }
}
/* Constrain table column widths to prevent long text from breaking layout */

.application-table {
    table-layout: fixed;
    width: 100%;
}

.application-table th:nth-child(1),
.application-table td:nth-child(1) {
    width: 20%;
}

.application-table th:nth-child(2),
.application-table td:nth-child(2) {
    width: 20%;
}

.application-table th:nth-child(3),
.application-table td:nth-child(3) {
    width: 15%;
}

.application-table th:nth-child(4),
.application-table td:nth-child(4) {
    width: 15%;
}

.application-table th:nth-child(5),
.application-table td:nth-child(5) {
    width: 18%;
}

.application-table th:nth-child(6),
.application-table td:nth-child(6) {
    width: 12%;
}

.application-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}