:root {
    --primary: #005A6E;
    --primary-dark: #004556;
    --primary-light: #e8f4f7;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #198754;
    --amber: #f0ad4e;
    --red: #d9534f;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-500: #adb5bd;
    --gray-700: #495057;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--gray-100);
}

.navbar {
    background-color: var(--primary) !important;
}

.navbar-brand {
    font-weight: 600;
}

.sidebar {
    min-height: calc(100vh - 56px);
    background: #fff;
    border-right: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.sidebar .nav-link {
    color: var(--gray-700);
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    margin: 0.1rem 0.5rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.stat-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    font-weight: 500;
}

.badge-waiting_for_review { background: #6c757d; color: #fff; }
.badge-under_review { background: #0d6efd; color: #fff; }
.badge-rejected { background: #dc3545; color: #fff; }
.badge-invited_first_interview { background: #0dcaf0; color: #000; }
.badge-invited_second_interview { background: #6610f2; color: #fff; }
.badge-offered { background: #fd7e14; color: #000; }
.badge-hired { background: #198754; color: #fff; }
.badge-declined { background: #6c757d; color: #fff; }
.badge-on_hold { background: #ffc107; color: #000; }

.retention-amber {
    color: var(--amber);
    font-weight: 600;
}

.retention-red {
    color: var(--red);
    font-weight: 600;
}

.anonymized-row {
    opacity: 0.5;
    font-style: italic;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .timeline-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    border-bottom-width: 1px;
}

.filter-bar {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

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

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

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

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

.lang-switch a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0 0.25rem;
    font-size: 0.85rem;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: #fff;
    font-weight: 600;
}

.expiry-badge {
    display: inline-block;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}
