/* 1. RESET FIRST - CRITICAL */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
    line-height: 1.6;
}

/* YOUR EXISTING STYLES (hero, profile, process, etc.) */
.hero { background:#f5f7fb; padding:120px 0; }
.profile-section { text-align:center; padding:40px 0; }
/* ... keep ALL your existing styles exactly as they are ... */

/* DASHBOARD LAYOUT - ADD THESE AT BOTTOM */
.sidebar {
    width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #172033;
    color: white;
    padding: 20px 0;
    z-index: 1000;
}

.sidebar h3 {
    margin: 0 0 30px 20px;
    font-size: 20px;
    font-weight: 600;
}

.sidebar a {
    display: block;
    color: #d1d5db;
    padding: 12px 20px;
    margin: 0 10px 10px 10px;
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar a:hover,
.sidebar .active {
    background: #2563eb;
    color: white;
}

.main {
    margin-left: 220px;
    padding: 40px 30px;
    min-height: 100vh;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.sub {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 35px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cards > a {
    text-decoration: none;
    color: inherit;
    display: block;  /* THIS FIXES THE GRID */
}

.card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.card-title {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .main {
        margin-left: 0;
        padding: 20px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
}

.edit-btn {
    background: #dbeafe;
    color: #1d4ed8;
}
.action-btn{
    display:inline-block;
    padding:8px 12px;
    margin-right:6px;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    border:none;
    cursor:pointer;
}
.re-open-btn {
    background: #dcfce7 !important;
    color: #166534 !important;
    min-width: 72px;
    text-align: center;
}
.action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 72px;
    padding: 8px 16px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4;
}
/* =========================================================
   COMMON DROPDOWN
   Candidate-side standard dropdown
========================================================= */

.common-dropdown {
    position: relative;
    width: 100%;
}

.common-dropdown-toggle {
    width: 100%;
    min-height: 48px;
    padding: 10px 42px 10px 14px;

    border: 1px solid #ced4da;
    border-radius: 8px;

    background: #fff;
    color: #334155;

    font-size: 15px;
    text-align: left;

    cursor: pointer;

    position: relative;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.common-dropdown-toggle:hover {
    border-color: #94a3b8;
}

.common-dropdown-toggle:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
}

.common-dropdown-toggle::after {
    content: "";
    position: absolute;

    right: 15px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;

    transform:
        translateY(-65%)
        rotate(45deg);

    transition: transform .2s ease;
}

.common-dropdown.open .common-dropdown-toggle::after {
    transform:
        translateY(-25%)
        rotate(225deg);
}


/* DROPDOWN MENU */

.common-dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    width: 100%;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    padding: 6px;

    box-shadow:
        0 10px 30px rgba(15,23,42,.12);

    z-index: 1050;

    max-height: 260px;
    overflow-y: auto;
}

.common-dropdown.open .common-dropdown-menu {
    display: block;
}


/* OPTIONS */

.common-dropdown-option {
    display: block;

    width: 100%;

    padding: 10px 12px;

    border: none;
    border-radius: 7px;

    background: transparent;

    color: #334155;

    font-size: 14px;

    text-align: left;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.common-dropdown-option:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.common-dropdown-option.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}


/* DROPDOWN SCROLLBAR */

.common-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.common-dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.common-dropdown-menu {
    scrollbar-width: thin;
}

/* =========================================================
   LOCATION DROPDOWN
   Candidate Country / State / City
========================================================= */

.location-dropdown {
    position: relative;
    width: 100%;
}

.location-dropdown-toggle {
    width: 100%;
    min-height: 48px;
    padding: 10px 42px 10px 14px;

    border: 1px solid #ced4da;
    border-radius: 8px;

    background: #fff;
    color: #334155;

    font-size: 15px;
    text-align: left;

    cursor: pointer;

    position: relative;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.location-dropdown-toggle:hover {
    border-color: #94a3b8;
}

.location-dropdown-toggle:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow:
        0 0 0 .2rem rgba(37,99,235,.12);
}

.location-dropdown-toggle::after {
    content: "";

    position: absolute;

    right: 15px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;

    transform:
        translateY(-65%)
        rotate(45deg);

    transition: transform .2s ease;
}

.location-dropdown.open
.location-dropdown-toggle::after {
    transform:
        translateY(-25%)
        rotate(225deg);
}

.location-dropdown.disabled
.location-dropdown-toggle {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.location-dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    width: 100%;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    padding: 8px;

    box-shadow:
        0 10px 30px rgba(15,23,42,.12);

    z-index: 1050;
}

.location-dropdown.open
.location-dropdown-menu {
    display: block;
}

.location-dropdown-search {
    width: 100%;

    min-height: 40px;

    padding: 8px 11px;

    margin-bottom: 6px;

    border: 1px solid #ced4da;
    border-radius: 7px;

    font-size: 14px;

    outline: none;
}

.location-dropdown-search:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 .15rem rgba(37,99,235,.10);
}

.location-dropdown-options {
    max-height: 240px;
    overflow-y: auto;

    scrollbar-width: thin;
}

.location-dropdown-option {
    display: block;

    width: 100%;

    padding: 10px 12px;

    border: none;
    border-radius: 7px;

    background: transparent;

    color: #334155;

    font-size: 14px;

    text-align: left;

    cursor: pointer;
}

.location-dropdown-option:hover,
.location-dropdown-option.active {
    background: #eff6ff;
    color: #2563eb;
}

.location-dropdown-option.empty {
    color: #94a3b8;
    cursor: default;
}
/* =========================================================
   COMMON LOADING OVERLAY
========================================================= */

.common-loading-overlay {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(255,255,255,.82);

    backdrop-filter: blur(4px);

    z-index: 99999;

    justify-content: center;
    align-items: center;
}

.common-loading-overlay.active {
    display: flex;
}


/* LOADER */

.common-loader {
    width: 48px;
    height: 48px;

    border: 4px solid #dbeafe;
    border-top-color: #2563eb;

    border-radius: 50%;

    animation:
        commonLoaderSpin .8s linear infinite;
}

@keyframes commonLoaderSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   COMMON LAZY-LOAD IMAGE
========================================================= */

img.lazy-image {
    opacity: 0;

    transition: opacity .3s ease;
}

img.lazy-image.loaded {
    opacity: 1;
}
