/* WestliHire V1 – Main Stylesheet */

:root {
    --sidebar-width: 240px;
    --navbar-height: 56px;

    /* WestliHire Brand Colors */
    --primary: #0B425A;
    --primary-dark: #083548;
    --primary-light: #145C79;

    --accent: #F5A700;
    --accent-dark: #D58F00;

    --sidebar-bg: #0B425A;
    --sidebar-text: #D6E4EC;
    --sidebar-active: #F5A700;
    --sidebar-hover: rgba(255,255,255,.08);
    --sidebar-section: rgba(255,255,255,.45);

    --body-bg: #F4F7F9;
    --card-bg: #FFFFFF;
    --border: #E7EDF3;
    --text: #233443;
    --text-light: #6B7A89;
}

/* ─── Layout ─── */
body {
   background:var(--body-bg);
color:var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
}

.admin-body {
    padding-top: var(--navbar-height);
}

/* ─── Sidebar ─── */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--sidebar-bg);
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.sidebar-header {
    padding: 16px 16px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}

.sidebar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 4px 0 24px;
}

.sidebar-section {
    padding: 12px 16px 4px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sidebar-section);
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.86rem;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(37,99,235,0.18);
    color: #93c5fd;
    border-left-color: var(--sidebar-active);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ─── Main Content ─── */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    padding: 24px;
    transition: margin-left 0.25s ease;
}

.main-content.full {
    margin-left: 0;
}

/* ─── Sidebar collapsed ─── */
body.sidebar-collapsed .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}
body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ─── Cards ─── */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow:0 8px 24px rgba(11,66,90,.06);
border:1px solid var(--border);
    transition: transform 0.15s, box-shadow 0.15s;
    overflow:hidden;
    position:relative;
}

.stat-card::after{
    content:'';
    position:absolute;
    right:-20px;
    top:-20px;
    width:90px;
    height:90px;
    background:rgba(245,167,0,.08);
    border-radius:50%;
}

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ─── Cards ───────────────────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid #E8EEF3;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 66, 90, 0.08);
    transition: all 0.25s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(11, 66, 90, 0.12);
}

.card-header {
    position: relative;
    background: #ffffff;
    color: #0B425A;
    border-bottom: 1px solid #E8EEF3;
    border-radius: 16px 16px 0 0 !important;
    padding: 16px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Gold Top Border */
.card-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #F5A700;
    border-radius: 0 0 6px 0;
}

.card-body {
    padding: 22px;
}

.card-footer {
    background: #FAFBFC;
    border-top: 1px solid #E8EEF3;
}

/* ─── Tables ─── */
.table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* ─── Badges ─── */
.badge {
    font-weight: 500;
    padding: 4px 9px;
    font-size: 0.72rem;
}

/* ─── Forms ─── */
.form-control, .form-select {
    border-color: #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 4px;
}

/* ─── Buttons ─── */
.btn {
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.78rem;
}

/* ─── Page Header ───────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E8EEF3;
}

.page-header h4 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0B425A;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h4 i {
    color: #F5A700;
    font-size: 1.2rem;
}

.page-header p {
    margin: 4px 0 0;
    color: #6B7280;
    font-size: 0.88rem;
}

/* Optional Right Side Actions */
.page-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Breadcrumb ───────────────────────────────────── */
.breadcrumb {
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    font-size: 0.82rem;
}

.breadcrumb-item {
    color: #6B7280;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #B0BEC5;
}

.breadcrumb-item a {
    color: #0B425A;
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb-item a:hover {
    color: #F5A700;
}

.breadcrumb-item.active {
    color: #F5A700;
    font-weight: 600;
}

/* ─── Authentication Pages ───────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #062F42 0%, #0B425A 55%, #145C79 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Circles */
.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 167, 0, 0.08);
    z-index: 0;
}

.auth-page::before {
    width: 380px;
    height: 380px;
    top: -150px;
    right: -120px;
}

.auth-page::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: -80px;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,.18);
    animation: authFade .5s ease;
}

@keyframes authFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    width: 90px;
    height: auto;
    margin-bottom: 15px;
}

.auth-logo h2 {
    margin: 0;
    color: #0B425A;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.5px;
}

.auth-logo p {
    margin-top: 8px;
    color: #6B7280;
    font-size: .9rem;
}

.auth-card .form-control {
    height: 48px;
}

.auth-card .btn-primary {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: #0B425A;
    border: none;
    font-weight: 600;
    transition: .25s;
}

.auth-card .btn-primary:hover {
    background: #083548;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11,66,90,.25);
}

.auth-links {
    text-align: center;
    margin-top: 18px;
}

.auth-links a {
    color: #0B425A;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    color: #F5A700;
}

/* ─── Status timeline ─── */
.status-timeline {
    position: relative;
    padding-left: 28px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    border: 2px solid #fff;
}

.timeline-item.active::before {
    background: var(--primary);
}

/* ─── Assessment ─── */
.question-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.question-card.answered {
    border-color: #86efac;
    background: #f0fdf4;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.15s;
}

.option-label:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-label input:checked ~ span,
.option-label:has(input:checked) {
    font-weight: 600;
}

/* ─── Progress bar ─── */
.progress {
    border-radius: 6px;
    height: 6px;
}

/* ─── Candidate portal ─── */
.portal-body {
    background: #f1f5f9;
}

.portal-navbar {
    background: #1e293b !important;
}

.job-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.15s, transform 0.15s;
    height: 100%;
}

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

/* ─── Utility ─── */
.text-muted-sm {
    font-size: 0.78rem;
    color: #94a3b8;
}

.cursor-pointer {
    cursor: pointer;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
}

/* ─── Print ─── */
@media print {
    .sidebar, .navbar, .btn, .no-print { display: none !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
}
