/* =================================
   PLACEWICK — APPLICANT DASHBOARD
================================= */

:root {

    --primary: #3155F5;
    --primary-dark: #243FC2;
    --purple: #6C4CF6;

    --text: #101A43;
    --text-light: #667085;

    --background: #F6F8FC;
    --surface: #FFFFFF;

    --border: #E5E7EB;

    --success: #12B76A;
    --success-bg: #E9FAF2;

    --warning: #F28C28;
    --warning-bg: #FFF3E8;

    --danger: #F04438;
    --danger-bg: #FEECEB;

    --info: #3155F5;
    --info-bg: #EEF2FF;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}


/* =================================
   RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =================================
   APP SHELL
================================= */

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}


/* =================================
   SIDEBAR
================================= */

.sidebar {
    position: relative;

    width: 260px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    padding: 28px 20px;

    background-color: var(--surface);

    border-right: 1px solid var(--border);
}


.sidebar-logo {
    display: flex;
    align-items: center;

    margin-bottom: 34px;

    padding: 0 8px;
}




.sidebar-logo img {
    width: 130px;
}


.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.sidebar-section-label {
    margin: 18px 12px 8px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #98A2B3;
}


.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;

    border-radius: var(--radius-sm);

    color: var(--text-light);

    font-size: 15px;
    font-weight: 600;

    transition: 0.2s ease;
}


.sidebar-link i {
    width: 16px;

    font-size: 16px;

    text-align: center;
}


.sidebar-link:hover {
    background-color: #F5F6FF;

    color: var(--text);
}


.sidebar-link.active {
    background-color: var(--info-bg);

    color: var(--primary);
}


.sidebar-link .badge {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    background-color: var(--primary);

    border-radius: 999px;

    color: #FFFFFF;

    font-size: 12px;
    font-weight: 800;
}


/* =================================
   SIDEBAR FOOTER
================================= */

.sidebar-footer {
    margin-top: auto;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px;

    border-radius: var(--radius-sm);
}


.sidebar-avatar {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: var(--info-bg);

    color: var(--primary);

    font-size: 15px;
    font-weight: 800;
}


.sidebar-user-info h4 {
    font-size: 12.5px;
    font-weight: 700;

    color: var(--text);
}


.sidebar-user-info span {
    font-size: 13px;

    color: var(--text-light);
}


.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 6px;

    padding: 10px 8px;

    border-radius: var(--radius-sm);

    color: var(--text-light);

    font-size: 12.5px;
    font-weight: 600;

    transition: 0.2s ease;
}


.sidebar-logout:hover {
    background-color: var(--danger-bg);

    color: var(--danger);
}


/* =================================
   MAIN
================================= */

.dashboard-main {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
}


/* =================================
   TOP HEADER
================================= */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 32px;

    background-color: var(--surface);

    border-bottom: 1px solid var(--border);
}


.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}


.dashboard-header-left h1 {
    font-size: 18px;
    font-weight: 800;

    color: var(--text);
}


.dashboard-header-left p {
    margin-top: 2px;

    font-size: 14px;

    color: var(--text-light);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =================================
   MOBILE MENU CONTROLS
================================= */

.menu-toggle {
    display: none;
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;

    background-color: var(--background);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text);

    font-size: 16px;
}


.sidebar-close {
    display: none;

    position: absolute;

    top: 24px;
    right: 16px;

    width: 32px;
    height: 32px;

    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;

    color: var(--text-light);

    font-size: 18px;
}


.sidebar-overlay {
    display: none;
}


.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}


.header-search {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 240px;

    padding: 9px 13px;

    background-color: var(--background);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);
}


.header-search i {
    color: #98A2B3;

    font-size: 14px;
}


.header-search input {
    flex: 1;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 12.5px;
}


.header-search input::placeholder {
    color: #98A2B3;
}


.icon-button {
    position: relative;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--background);

    border: 1px solid var(--border);

    border-radius: 50%;

    color: var(--text-light);

    font-size: 16px;

    transition: 0.2s ease;
}


.icon-button:hover {
    border-color: #CBD0D9;

    color: var(--text);
}


.icon-button .dot {
    position: absolute;

    top: 8px;
    right: 9px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background-color: var(--danger);

    border: 1.5px solid var(--surface);
}


.header-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: var(--info-bg);

    color: var(--primary);

    font-size: 15px;
    font-weight: 800;
}


/* =================================
   CONTENT
================================= */

.dashboard-content {
    flex: 1;

    padding: 28px 32px 48px;
}


/* =================================
   WELCOME BANNER
================================= */

.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 26px 30px;

    margin-bottom: 26px;

    background: linear-gradient(120deg, #3155F5 0%, #6C4CF6 100%);

    border-radius: var(--radius-lg);

    color: #FFFFFF;
}


.welcome-banner h2 {
    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.4px;
}


.welcome-banner p {
    max-width: 440px;

    margin-top: 6px;

    font-size: 15px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.85);
}


.welcome-banner .browse-button {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;

    padding: 12px 20px;

    background-color: #FFFFFF;

    border-radius: var(--radius-sm);

    color: var(--primary);

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}


.welcome-banner .browse-button:hover {
    transform: translateY(-2px);
}


/* =================================
   STATS ROW
================================= */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-bottom: 26px;
}


.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 20px;

    background-color: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);
}


.stat-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 16px;
}


.stat-icon.info {
    background-color: var(--info-bg);
    color: var(--primary);
}


.stat-icon.success {
    background-color: var(--success-bg);
    color: var(--success);
}


.stat-icon.warning {
    background-color: var(--warning-bg);
    color: var(--warning);
}


.stat-icon.purple {
    background-color: #F0EDFF;
    color: var(--purple);
}


.stat-value {
    font-size: 22px;
    font-weight: 800;

    color: var(--text);

    line-height: 1.2;
}


.stat-label {
    margin-top: 2px;

    font-size: 14px;

    color: var(--text-light);
}


.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-top: 6px;

    font-size: 13px;
    font-weight: 700;

    color: var(--success);
}


/* =================================
   CONTENT GRID
================================= */

.content-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;

    align-items: start;
}


/* =================================
   PANEL
================================= */

.panel {
    background-color: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    overflow: hidden;
}


.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid var(--border);
}


.panel-header h3 {
    font-size: 14.5px;
    font-weight: 800;

    color: var(--text);
}


.panel-link {
    font-size: 14px;
    font-weight: 700;

    color: var(--primary);
}


.panel-link:hover {
    color: var(--primary-dark);
}


.panel-body {
    padding: 8px 10px;
}


/* =================================
   APPLICATION ROW
================================= */

.application-row {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 12px;

    border-radius: var(--radius-sm);

    transition: 0.2s ease;
}


.application-row:hover {
    background-color: #FAFBFF;
}


.application-logo {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background-color: var(--info-bg);

    color: var(--primary);

    font-size: 16px;
    font-weight: 800;
}


.application-details {
    flex: 1;

    min-width: 0;
}


.application-details h4 {
    font-size: 15px;
    font-weight: 700;

    color: var(--text);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.application-details span {
    display: block;

    margin-top: 2px;

    font-size: 11.5px;

    color: var(--text-light);
}


/* =================================
   STATUS BADGE
================================= */

.status-badge {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 11px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}


.status-badge .dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}


.status-badge.applied {
    background-color: var(--info-bg);
    color: var(--primary);
}

.status-badge.applied .dot {
    background-color: var(--primary);
}


.status-badge.reviewing {
    background-color: var(--warning-bg);
    color: #B4690E;
}

.status-badge.reviewing .dot {
    background-color: var(--warning);
}


.status-badge.interview {
    background-color: #F0EDFF;
    color: var(--purple);
}

.status-badge.interview .dot {
    background-color: var(--purple);
}


.status-badge.accepted {
    background-color: var(--success-bg);
    color: var(--success);
}

.status-badge.accepted .dot {
    background-color: var(--success);
}


.status-badge.rejected {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.status-badge.rejected .dot {
    background-color: var(--danger);
}


/* =================================
   SIDE PANELS
================================= */

.side-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =================================
   PROFILE COMPLETION
================================= */

.profile-completion {
    padding: 22px;
}


.profile-completion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}


.profile-completion-head h3 {
    font-size: 14.5px;
    font-weight: 800;

    color: var(--text);
}


.profile-completion-percent {
    font-size: 14.5px;
    font-weight: 800;

    color: var(--primary);
}


.progress-track {
    width: 100%;
    height: 8px;

    background-color: var(--border);

    border-radius: 999px;

    overflow: hidden;
}


.progress-fill {
    height: 100%;

    background-color: var(--primary);

    border-radius: 999px;
}


.profile-completion-list {
    margin-top: 16px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}


.profile-completion-item {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;

    color: var(--text-light);
}


.profile-completion-item i {
    width: 14px;

    font-size: 14px;

    color: var(--success);
}


.profile-completion-item.pending i {
    color: #C4CAD8;
}


.profile-completion-item.pending {
    color: var(--text-light);
}


.profile-completion-item a {
    margin-left: auto;

    font-size: 13px;
    font-weight: 700;

    color: var(--primary);
}


/* =================================
   SAVED OPPORTUNITIES
================================= */

.saved-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    border-radius: var(--radius-sm);

    transition: 0.2s ease;
}


.saved-item:hover {
    background-color: #FAFBFF;
}


.saved-logo {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 9px;

    background-color: #F0EDFF;

    color: var(--purple);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 800;
}


.saved-details {
    flex: 1;

    min-width: 0;
}


.saved-details h4 {
    font-size: 12.5px;
    font-weight: 700;

    color: var(--text);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.saved-details span {
    display: block;

    margin-top: 1px;

    font-size: 13px;

    color: var(--text-light);
}


.saved-item .bookmark-icon {
    flex-shrink: 0;

    color: var(--primary);

    font-size: 15px;
}


/* =================================
   EMPTY / EDGE STATE
================================= */

.panel-empty {
    padding: 30px 20px;

    text-align: center;
}


.panel-empty i {
    font-size: 20px;

    color: #C4CAD8;

    margin-bottom: 10px;
}


.panel-empty p {
    font-size: 14px;

    color: var(--text-light);
}


/* =================================
   TABLET
================================= */

@media (max-width: 1100px) {

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

}


/* =================================
   MOBILE
================================= */

@media (max-width: 900px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;

        width: 82%;
        max-width: 300px;

        transform: translateX(-100%);

        box-shadow: 12px 0 32px rgba(16, 26, 67, 0.12);

        transition: transform 0.25s ease;
    }

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

    .sidebar-close {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;

        position: fixed;
        inset: 0;
        z-index: 90;

        background-color: rgba(16, 26, 67, 0.45);

        opacity: 0;
        visibility: hidden;

        transition: opacity 0.25s ease;
    }

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

    .dashboard-header {
        padding: 16px 20px;
    }

    .dashboard-header-left p {
        display: none;
    }

    .header-search {
        display: none;
    }

    .dashboard-content {
        padding: 22px 20px 40px;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-banner .browse-button {
        width: 100%;
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

}


@media (max-width: 560px) {

    .stats-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header-right {
        gap: 8px;
    }

}
