/* ============================================================
   NRS-VACANCY | Talent Trail Portal — Custom Styles
   Complements Tailwind CSS
   ============================================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* Brand Colors */
:root {
    --brand-primary:   #1d4ed8;
    --brand-secondary: #0f172a;
    --brand-accent:    #3b82f6;
    --brand-success:   #16a34a;
    --brand-warn:      #d97706;
    --brand-danger:    #dc2626;
}

/* ---- Navbar -------------------------------------------------- */
.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.navbar .brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.navbar .brand-sub {
    font-size: 0.7rem;
    color: #93c5fd;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ---- Sidebar ------------------------------------------------- */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0f172a;
    color: #e2e8f0;
    flex-shrink: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    border-radius: .375rem;
    font-size: .875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sidebar-link:hover, .sidebar-link.active {
    background: #1e40af;
    color: #fff;
}
.sidebar-section {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
    padding: 1rem 1.25rem .3rem;
    font-weight: 600;
}

/* ---- Cards --------------------------------------------------- */
.card {
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    padding: 1.5rem;
}
.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

/* ---- Badges -------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-gray   { background:#f1f5f9; color:#475569; }
.badge-blue   { background:#dbeafe; color:#1d4ed8; }
.badge-indigo { background:#e0e7ff; color:#4338ca; }
.badge-purple { background:#f3e8ff; color:#7c3aed; }
.badge-yellow { background:#fef9c3; color:#b45309; }
.badge-orange { background:#ffedd5; color:#c2410c; }
.badge-green  { background:#dcfce7; color:#16a34a; }
.badge-red    { background:#fee2e2; color:#dc2626; }

/* ---- Pipeline Board ------------------------------------------ */
.pipeline-col {
    min-width: 220px;
    background: #f1f5f9;
    border-radius: .75rem;
    padding: 1rem;
}
.pipeline-col-header {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pipeline-card {
    background: #fff;
    border-radius: .5rem;
    padding: .875rem;
    margin-bottom: .5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.07);
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
}
.pipeline-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transform: translateY(-1px);
}

/* ---- Scoring Stars ------------------------------------------- */
.star-rating input { display: none; }
.star-rating label {
    font-size: 1.5rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color .1s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }
.star-rating { display: flex; flex-direction: row-reverse; gap: .1rem; }

/* ---- Form Controls ------------------------------------------- */
.form-input {
    width: 100%;
    padding: .55rem .875rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    font-size: .9rem;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
}
.form-group { margin-bottom: 1.1rem; }

/* ---- Buttons ------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, box-shadow .15s, transform .1s;
    text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary   { background: #1d4ed8; color: #fff; }
.btn-primary:hover { background: #1e40af; box-shadow: 0 4px 12px rgba(29,78,216,.35); }
.btn-success   { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #f1f5f9; color: #374151; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-sm { padding: .35rem .85rem; font-size: .8rem; }

/* ---- Status Steps (Candidate Tracker) ----------------------- */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
    display: flex;
    gap: 1rem;
    position: relative;
}
.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 2.5rem;
    bottom: -.5rem;
    width: 2px;
    background: #e2e8f0;
}
.step-dot {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    z-index: 1;
}
.step-dot.done    { background: #16a34a; color: #fff; }
.step-dot.current { background: #1d4ed8; color: #fff; box-shadow: 0 0 0 4px rgba(29,78,216,.2); }
.step-dot.pending { background: #f1f5f9; color: #94a3b8; border: 2px solid #e2e8f0; }

/* ---- Upload Zone --------------------------------------------- */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: .75rem;
    padding: 2rem;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* ---- Table --------------------------------------------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th {
    background: #f8fafc;
    padding: .65rem 1rem;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.tbl td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.tbl tbody tr:hover { background: #f8fafc; }

/* ---- Blind Mode Banner --------------------------------------- */
.blind-banner {
    background: linear-gradient(90deg, #7c3aed, #4338ca);
    color: #fff;
    padding: .65rem 1.5rem;
    border-radius: .5rem;
    font-size: .82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

/* ---- Alerts -------------------------------------------------- */
.alert {
    padding: .875rem 1.25rem;
    border-radius: .5rem;
    font-size: .875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.alert-success { background:#dcfce7; color:#166534; border-left: 4px solid #16a34a; }
.alert-error   { background:#fee2e2; color:#991b1b; border-left: 4px solid #dc2626; }
.alert-info    { background:#dbeafe; color:#1e40af; border-left: 4px solid #3b82f6; }
.alert-warn    { background:#fef9c3; color:#92400e; border-left: 4px solid #f59e0b; }

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .pipeline-col { min-width: 180px; }
}

/* ---- Scroll bar ---------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Animations ---------------------------------------------- */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.fade-in { animation: fadeIn .3s ease both; }

@keyframes floatGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.animate-float {
    animation: floatGentle 4s ease-in-out infinite;
}

/* Skip to content (Accessibility) */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    background: #1d4ed8;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 .5rem .5rem;
    font-weight: 700;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus { top: 0; }
