:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --bg-main: #eff2ef;
    --bg-soft-green: #bed6c0;
    --bg-card: #ffffff;
    --line: #d4dde2;
    --text-main: #13304d;
    --text-muted: #66768a;
    --success: #17a05d;
    --success-soft: #d8efe2;
    --warning-soft: #f6eed5;
    --danger-soft: #fce4e4;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15.5px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.45;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #102d4d;
}

.form-control,
.form-select,
.btn {
    border-radius: 10px;
}

.auth-page {
    background: var(--bg-soft-green);
}

.auth-left {
    background: rgba(188, 213, 189, 0.92);
    border-right: 1px solid rgba(19, 48, 77, 0.08);
}

.brand-line {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0f2f4f;
}

.brand-name {
    font-size: 1.28rem;
}

.auth-illustration-image {
    max-width: 340px;
    width: min(66vw, 340px);
}

.auth-welcome {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
}

.auth-subtitle {
    color: #3b5566;
    font-size: 1.07rem;
    max-width: 440px;
    margin-inline: auto;
}

.auth-card {
    width: min(100%, 510px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
}

.auth-title {
    font-weight: 800;
    font-size: 1.8rem;
}

.auth-description {
    color: #566b62;
    font-size: 1rem;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 245px 1fr;
    background: #f0f2f3;
}

.app-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.95rem;
    position: relative;
    z-index: 30;
    transition: width 0.25s ease;
}

.sidebar-backdrop {
    display: none;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--success);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.96rem;
}

.brand-text h6 {
    font-size: 1.15rem;
}

.brand-text span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.38rem;
}

.sidebar-nav .nav-link {
    color: #193956;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.72rem 0.82rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
}

.sidebar-nav .nav-link i {
    font-size: 1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: #dcebe2;
    color: #058b50;
}

.app-main {
    padding: 1.25rem;
    overflow-x: hidden;
}

.app-header {
    padding-bottom: 0.9rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid #d7dde4;
}

.app-title {
    font-size: 1.55rem;
    font-weight: 700;
}

.chip {
    background: #fff;
    border: 1px solid #cfd7de;
    border-radius: 10px;
    padding: 0.45rem 0.82rem;
    color: #1d3c5d;
    font-size: 0.86rem;
}

.greeting {
    font-size: clamp(1.65rem, 2.3vw, 2.1rem);
    font-weight: 800;
}

.card-soft {
    border: 1px solid #d5dde5;
    border-radius: 14px;
    background: #f5f7f8;
}

.stat-card {
    border: 1px solid #ced8e1;
    border-radius: 12px;
    background: #f9fbfc;
    padding: 0.75rem 0.9rem;
    min-height: 92px;
}

.stat-card small {
    color: #5d7488;
    font-size: 0.9rem;
}

.stat-card h3 {
    margin-top: 0.2rem;
    font-size: 1.9rem;
    margin-bottom: 0;
}

.table-candidates thead th {
    font-family: var(--font-heading);
    color: #1f3f5f;
    background: #e9eef2;
    border-bottom-width: 0;
    padding-block: 0.78rem;
    font-size: 0.94rem;
}

.table-candidates tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #e8edf2;
    padding-block: 0.74rem;
    font-size: 0.93rem;
}

.candidate-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
}

.status-badge,
.stage-pill {
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.36rem 0.68rem;
}

.status-applied,
.stage-pill {
    background: #deebff;
    color: #325a99;
}

.status-interview {
    background: var(--warning-soft);
    color: #8a6705;
}

.status-hired {
    background: var(--success-soft);
    color: #0f7d47;
}

.status-rejected {
    background: var(--danger-soft);
    color: #aa2f2f;
}

.client-status-active {
    background: var(--success-soft);
    color: #0f7d47;
}

.client-status-paused {
    background: var(--warning-soft);
    color: #8a6705;
}

.client-status-closed {
    background: #e9edf1;
    color: #445b70;
}

.sidebar-bottom {
    border-top: 1px solid #d9e0e6;
    padding-top: 0.95rem;
}

.sidebar-bottom h6 {
    font-size: 0.98rem;
}

.chart-wrap {
    position: relative;
    height: 280px;
}

.stage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 0.58rem 0.72rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.stage-row strong {
    font-size: 1rem;
}

.stage-applied {
    background: #deebff;
    color: #325a99;
}

.stage-interview {
    background: var(--warning-soft);
    color: #8a6705;
}

.stage-hired {
    background: var(--success-soft);
    color: #0f7d47;
}

.stage-rejected {
    background: var(--danger-soft);
    color: #aa2f2f;
}

.mini-tile {
    border: 1px solid #d8e0e7;
    border-radius: 10px;
    padding: 0.7rem;
    background: #ffffff;
    display: grid;
    gap: 0.2rem;
}

.mini-tile span {
    color: #516b81;
    font-size: 0.83rem;
}

.mini-tile strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.sidebar-collapsed .app-shell {
    grid-template-columns: 88px 1fr;
}

.sidebar-collapsed .app-sidebar {
    padding-inline: 0.56rem;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-nav .nav-link span,
.sidebar-collapsed .sidebar-bottom h6,
.sidebar-collapsed .sidebar-bottom .btn {
    display: none;
}

.sidebar-collapsed .brand-box {
    justify-content: center;
}

.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
}

@media (max-width: 991.98px) {
    html {
        font-size: 15px;
    }

    .auth-left {
        display: none !important;
    }

    .auth-right {
        width: 100%;
        padding-block: 2rem;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 245px;
        transform: translateX(-100%);
        box-shadow: 0 10px 36px rgba(11, 37, 61, 0.18);
        transition: transform 0.25s ease;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(13, 31, 48, 0.35);
        z-index: 25;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        display: block;
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .app-main {
        padding: 0.88rem;
    }

    .app-title {
        font-size: 1.35rem;
    }

    .greeting {
        font-size: 1.7rem;
    }

    .chart-wrap {
        height: 240px;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 14.6px;
    }

    .auth-card {
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.52rem;
    }

    .chip {
        font-size: 0.79rem;
    }

    .table-candidates thead th,
    .table-candidates tbody td {
        font-size: 0.86rem;
    }

    .status-badge,
    .stage-pill {
        font-size: 0.74rem;
    }
}
