/* Mix UI: Naukri energy + Indeed search + LinkedIn polish */

body.portal-body--candidate {
    --portal-canvas: #f3f6fb;
    --portal-ink: #0f172a;
    --portal-muted: #64748b;
    --portal-border: #e2e8f0;
    --portal-radius: 16px;
    --portal-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --portal-sidebar-width: 248px;
}

body.portal-body--candidate .portal-sidebar {
    width: var(--portal-sidebar-width);
    padding: 1.25rem 0.85rem;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.04);
}

body.portal-body--candidate .portal-main {
    margin-left: var(--portal-sidebar-width);
    padding: 0 2rem 3rem;
}

body.portal-body--candidate .portal-brand__title {
    letter-spacing: -0.02em;
    text-transform: none;
    font-size: 1.15rem;
}

body.portal-body--candidate .portal-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.75rem;
    border-radius: 10px;
    position: relative;
}

body.portal-body--candidate .portal-nav__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

body.portal-body--candidate .portal-nav__link.is-active {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

body.portal-body--candidate .portal-nav__link.is-active svg {
    opacity: 1;
}

body.portal-body--candidate .portal-topbar {
    margin: 0 -2rem 1.5rem;
    padding: 0.75rem 2rem;
    min-height: 4.25rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.portal-topbar__hello {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.portal-topbar__hello strong {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.portal-topbar__hello span {
    color: var(--portal-muted);
    font-size: 0.75rem;
}

.portal-topbar-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    gap: 0.4rem;
}

.portal-topbar-search .form-control {
    border-radius: 999px;
    min-height: 2.4rem;
    font-size: 0.86rem;
}

.portal-avatar {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.85rem;
}

.portal-topbar__profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--portal-ink);
    font-weight: 600;
    font-size: 0.84rem;
}

.portal-bell {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--portal-border);
}

.portal-logout .portal-btn {
    border: 0;
    background: transparent;
    color: var(--portal-muted);
    padding: 0.35rem 0.45rem;
}

.portal-logout .portal-btn:hover {
    color: #b91c1c;
    background: #fef2f2;
}

body.portal-body--candidate .portal-page-title {
    font-size: 1.75rem;
    letter-spacing: -0.035em;
}

body.portal-body--candidate .portal-card,
body.portal-body--candidate .portal-stat-card {
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    border: 1px solid var(--portal-border);
}

body.portal-body--candidate .portal-btn--primary {
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
}

body.portal-body--candidate .portal-btn {
    border-radius: 999px;
}

.portal-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
}

.portal-score {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
}

.portal-score__ring {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#2563eb calc(var(--pct) * 1%), #e2e8f0 0);
}

.portal-score__ring span {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.82rem;
}

.portal-score p {
    margin: 0.2rem 0 0;
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.portal-search-hero {
    padding: 1.25rem 1.35rem 1.35rem;
    margin-bottom: 1.15rem;
}

.portal-search-hero__form {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 0.65rem;
}

.portal-search-hero .form-control {
    min-height: 3rem;
    border-radius: 12px;
}

.portal-stats--mix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}

.portal-stat-card--mix {
    padding: 1.15rem 1.2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-stat-card--mix:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.portal-stat-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 0.7rem;
    font-weight: 800;
}

.portal-stat-card--blue .portal-stat-card__icon { background: #dbeafe; color: #1d4ed8; }
.portal-stat-card--violet .portal-stat-card__icon { background: #ede9fe; color: #6d28d9; }
.portal-stat-card--amber .portal-stat-card__icon { background: #fef3c7; color: #b45309; }
.portal-stat-card--green .portal-stat-card__icon { background: #dcfce7; color: #15803d; }

.portal-pipeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
}

.portal-pipeline a {
    flex: 1;
    min-width: 7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--portal-border);
    background: #fff;
    color: var(--portal-ink);
}

.portal-pipeline a:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.portal-pipeline strong {
    display: block;
    font-size: 1.15rem;
}

.portal-pipeline span {
    color: var(--portal-muted);
    font-size: 0.75rem;
}

.portal-job-card {
    align-items: flex-start;
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--portal-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-job-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.portal-job-card__mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}

.portal-job-card__row {
    display: flex;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.portal-job-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portal-timeline {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.portal-timeline i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #cbd5e1;
    display: block;
}

.portal-timeline i.is-on {
    background: #2563eb;
}

.portal-application-item {
    border-radius: 14px;
}

.portal-public-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 36%),
        #f3f6fb;
}

.portal-public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem max(1.25rem, 6vw);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.portal-public-nav nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
}

.portal-public-hero {
    width: min(920px, calc(100% - 2rem));
    margin: 4.5rem auto 2rem;
    padding: 2.5rem 2.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.portal-public-hero h1 {
    max-width: 16ch;
    margin: 0.35rem 0 0.7rem;
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.portal-public-latest {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto 3rem;
}

body.public-body {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.portal-auth-card {
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 1100px) {
    .portal-topbar-search { display: none; }
    .portal-stats--mix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    body.portal-body--candidate .portal-main {
        margin-left: 0;
        padding: 0 1rem 2rem;
    }
    body.portal-body--candidate .portal-topbar {
        margin: 0 -1rem 1rem;
        padding: 0.7rem 1rem;
    }
    .portal-welcome,
    .portal-search-hero__form { display: flex; flex-direction: column; }
    .portal-public-nav nav a:not(.portal-btn) { display: none; }
}

@media (max-width: 640px) {
    .portal-stats--mix { grid-template-columns: 1fr; }
    .portal-job-card { flex-direction: column; }
}
