/* Shared interface, inspired by Signature's panel and workspace layout.
   Financial Jobs SA retains its own navy/blue palette and page behaviour. */
:root {
    --portal-paper: #f3f3f3;
    --portal-line: rgba(0, 13, 26, .12);
    --portal-soft: rgba(0, 77, 153, .06);
    --portal-radius: 9px;
}
body {
    background-color: var(--portal-paper);
    color: #000d1a;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
h1, h2, h3 { letter-spacing: -.035em; }
.header { border-bottom: 1px solid var(--portal-line); box-shadow: none !important; }
.navbar .nav-link { font-size: 13px; font-weight: 500; }
.btn, .find-jobs-button {
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: .55rem .95rem;
    min-height: 38px;
    letter-spacing: normal;
}
.btn-sm { font-size: 12px; padding: .35rem .65rem; min-height: 32px; }
.btn-lg { font-size: 14px; padding: .65rem 1.1rem; min-height: 42px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid #004d99; outline-offset: 3px; }
.form-label { font-size: 12px; font-weight: 600; margin-bottom: .4rem; }
.form-control, .form-select, .input-group-text {
    border-color: var(--portal-line);
    border-radius: 6px;
    font-size: 13px;
    min-height: 40px;
    padding: .55rem .75rem;
}
.form-control:focus, .form-select:focus {
    border-color: #004d99;
    box-shadow: 0 0 0 3px rgba(0, 77, 153, .12);
}
textarea.form-control { min-height: 110px; }
.input-group-text { background: var(--portal-paper); }
.form-text, .form-check-label { font-size: 12px; }
.card, .stat-card, .auth-card, .completion-card, .job-detail-card,
.application-card, .job-info-card, .filters-sidebar, .agency-card,
.plan-card, .cv-topup-card, .history-panel, .account-summary,
.job-card, .candidate-card {
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background-color: #fff;
    box-shadow: none;
}
.card-header { background: #fff; border-bottom: 1px solid var(--portal-line); padding: 18px 22px; }
.card-header h5, .card-header h6 { font-size: 15px; font-weight: 600; margin-bottom: 0; }
.card-body { padding: 22px; }
.card-footer { background: #fff; border-top-color: var(--portal-line); font-size: 12px; }
.badge { border-radius: 5px; font-weight: 600; letter-spacing: .015em; }
.badge, .status-badge, .current-plan-badge, .credits-badge,
.badge-featured, .badge-featured-large, .badge-deadline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}
.candidate-card .badge { text-align: center; }
.alert { border-radius: 7px; font-size: 13px; }
.table { font-size: 13px; --bs-table-border-color: var(--portal-line); }
.table > thead > tr > th { background: var(--portal-soft); padding: 14px 16px; font-size: 12px; font-weight: 600; }
.table > tbody > tr > td { padding: 13px 16px; vertical-align: middle; }
.table .btn { font-size: 12px; padding: .3rem .55rem; }
#usersList .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    vertical-align: middle;
}
.user-details-content dt, .user-details-content dd { overflow-wrap: anywhere; }
.user-details-content dd { white-space: pre-wrap; margin-bottom: 16px; }
.dashboard-container { background: var(--portal-paper); }
.dashboard-sidebar { width: 247px; border-right-color: var(--portal-line); padding: 0 18px 20px; }
.sidebar-header { padding: 26px 6px 22px; border-bottom-color: var(--portal-line); }
.sidebar-header h5 { font-size: 16px; letter-spacing: -.025em; font-weight: 650; color: #000d1a; }
.sidebar-header p { font-size: 12px; margin-bottom: 0; }
.sidebar-nav { padding: 20px 0; }
.sidebar-nav .nav-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    gap: 11px;
    border-left: 0;
    border-radius: 6px;
    font-size: 12px;
    color: #003366;
    min-height: 40px;
}
.sidebar-nav .nav-item:hover, .sidebar-nav .nav-item.active {
    background: var(--portal-soft);
    color: #000d1a;
    border-left: 0;
}
.sidebar-nav .nav-item.active { font-weight: 650; }
.sidebar-nav .nav-item i { font-size: 15px; width: 20px; }
.dashboard-main { margin-left: 247px; padding: 36px 32px; }
.dashboard-main .section-header { margin-bottom: 24px; }
.section-header h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; color: #000d1a; }
.section-header .filters { gap: 10px; }
.stat-card { padding: 21px; gap: 14px; height: 100%; }
.stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 9px;
    font-size: 18px;
    background: var(--portal-soft) !important;
    color: #003366 !important;
}
.stat-info h4 { font-size: 27px; font-weight: 600; letter-spacing: -.035em; color: #000d1a; margin-bottom: 2px; }
.stat-info p { font-size: 12px; }
.job-item { border: 1px solid var(--portal-line); border-radius: var(--portal-radius); box-shadow: none; }
.job-item:hover { box-shadow: none; border-color: rgba(0, 77, 153, .3); }
.application-item { border-bottom-color: var(--portal-line); }
.admin-job-actions .btn { min-height: 30px; padding: .2rem .5rem; font-size: 12px; }
.auth-section, .profile-completion-container { background: var(--portal-paper); }
.auth-card { padding: 30px; }
.auth-card h2 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.auth-card .form-control, .auth-card .form-select { border-color: var(--portal-line); border-radius: 6px; }
.completion-card { padding: 30px; }
.agency-card { padding: 24px; }
.agency-card:hover { transform: none; box-shadow: none; border-color: rgba(0, 77, 153, .3); }
.agency-name { font-size: 18px; font-weight: 600; color: #000d1a; }
.agency-description { font-size: 13px; }
.agency-logo { box-shadow: none; border: 1px solid var(--portal-line); border-radius: 9px; }
.filters-sidebar { padding: 20px; }
.filter-title { font-size: 13px; }
.filter-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom-color: var(--portal-line); }
.job-card:hover, .candidate-card:hover { box-shadow: none; border-color: rgba(0, 77, 153, .3); }
.candidate-page .dashboard-main { padding: 36px 32px; }
.candidate-page .search-header { border-radius: var(--portal-radius); }
.plans-header h1 { font-weight: 600; }
.plan-name { font-weight: 600; }
.plan-price { font-weight: 600; }
.subscription-page .plans-container { padding-top: 0; }
.history-panel, .account-summary { border-color: var(--portal-line); }
@media (min-width: 1600px) {
    .dashboard-main { padding-left: 44px; padding-right: 44px; }
}
@media (max-width: 991px) {
    .dashboard-sidebar { width: 100%; padding: 0 16px; border-bottom-color: var(--portal-line); }
    .dashboard-sidebar .sidebar-header { padding: 16px 4px; }
    .dashboard-sidebar .sidebar-nav { padding: 8px 0; }
    .dashboard-main, .candidate-page .dashboard-main { margin-left: 0; padding: 24px 20px; }
    .btn, .btn-sm, .btn-lg { min-height: 42px; }
    .form-control, .form-select { font-size: 16px; min-height: 44px; }
    .admin-job-actions .btn { min-height: 40px; }
}
@media (max-width: 575px) {
    .dashboard-main, .candidate-page .dashboard-main { padding: 22px 14px; }
    .section-header h3 { font-size: 25px; }
    .card-body, .card-header { padding: 18px; }
    .stat-card { flex-direction: row; text-align: left; padding: 16px; gap: 10px; }
    .stat-icon { width: 34px; height: 34px; min-width: 34px; font-size: 15px; }
    .stat-info h4 { font-size: 23px; }
    .stat-info p { font-size: 11px; }
    .auth-card, .completion-card { padding: 22px 18px; }
    .job-detail-card, .application-card, .job-info-card { padding: 20px; }
    .dashboard-sidebar .sidebar-nav.show { gap: 4px; }
    .sidebar-nav .nav-item { margin-bottom: 0; }
}
