/* JustAHire Admin - Minimal Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:wght@600;700;800&display=swap');

:root {
  --brand: #0A84FF;
  --brand-dark: #0066CC;
  --brand-pale: #EBF5FF;
  --sidebar-w: 260px;
  --sidebar-bg: #1d2d46;
  --sidebar-hover: rgba(10,132,255,0.12);
  --sidebar-active: rgba(10,132,255,0.18);
  --topbar-h: 64px;
}

body { font-family: 'Inter', sans-serif; background: #F5F7FA; }

/* ── Sidebar ── */
#sidebar {
  width: var(--sidebar-w); min-height: 100vh; background: var(--sidebar-bg);
  position: fixed; top: 0; left: 0; z-index: 1040;
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#sidebar .sidebar-brand {
  height: var(--topbar-h); display: flex; align-items: center;
  padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 800;
  color: #fff; text-decoration: none; gap: 10px; flex-shrink: 0;
}
#sidebar .sidebar-brand .brand-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 14px; }
#sidebar .nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,.28); padding: 20px 20px 8px;
}
#sidebar .nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  margin: 2px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.6); text-decoration: none; transition: all .2s;
}
#sidebar .nav-link i { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
#sidebar .nav-link:hover { background: var(--sidebar-hover); color: #fff; }
#sidebar .nav-link.active { background: var(--sidebar-active); color: var(--brand); font-weight: 600; }
#sidebar .nav-link .badge { margin-left: auto; font-size: 10px; }
#sidebar-bottom { padding: 16px; border-top: 1px solid rgba(255,255,255,.06); margin-top: auto; }

/* ── Main wrapper ── */
#main-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

/* ── Topbar ── */
#topbar {
  height: var(--topbar-h); background: #fff; border-bottom: 1px solid #E5E9F0;
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 1030;
}
#topbar .topbar-title { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 800; color: #0D1117; margin: 0; }
#topbar .topbar-search { flex: 1; max-width: 380px; position: relative; }
#topbar .topbar-search input { border-radius: 10px; border: 1.5px solid #E5E9F0; font-size: 13.5px; padding: 9px 14px 9px 38px; width: 100%; outline: none; font-family: 'Inter', sans-serif; transition: border-color .2s; }
#topbar .topbar-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,132,255,.08); }
#topbar .topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9AA5B4; font-size: 13px; }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ── Page content ── */
#page-content { padding: 28px; flex: 1; }

/* ── Stat Cards ── */
.stat-card { background: #fff; border-radius: 14px; padding: 22px 24px; border: 1px solid #E8ECF4; transition: box-shadow .2s, transform .2s; }
.stat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-value { font-family: 'DM Sans', sans-serif; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -1px; color: #0D1117; }
.stat-label { font-size: 13px; color: #6B7280; font-weight: 500; margin-top: 3px; }
.stat-trend { font-size: 12px; font-weight: 600; }

/* ── Section card ── */
.section-card { background: #fff; border-radius: 14px; border: 1px solid #E8ECF4; }
.section-card .card-header-custom { padding: 18px 22px; border-bottom: 1px solid #F0F3F8; display: flex; align-items: center; justify-content: space-between; }
.section-card .card-header-custom h6 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 800; color: #0D1117; margin: 0; }
.section-card .card-body-custom { padding: 22px; }

/* ── Table ── */
.admin-table { font-size: 13.5px; }
.admin-table thead th { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #9AA5B4; background: #F8FAFC; border-bottom: 1px solid #E8ECF4; padding: 12px 16px; }
.admin-table tbody td { padding: 14px 16px; border-bottom: 1px solid #F4F6F9; vertical-align: middle; color: #374151; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #FAFBFF; }

/* ── Status badges ── */
.status-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 980px; }
.status-active { background: rgba(48,209,88,.12); color: #1a7a34; }
.status-pending { background: rgba(255,159,10,.12); color: #b56800; }
.status-closed { background: rgba(120,120,128,.12); color: #555; }
.status-review { background: rgba(10,132,255,.12); color: #0066CC; }
.status-rejected { background: rgba(255,59,48,.12); color: #cc0000; }
.status-hired { background: rgba(48,209,88,.18); color: #0a5c20; }

/* ── Sidebar toggle for mobile ── */
@media (max-width: 991px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #main-wrapper { margin-left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1035; }
  .sidebar-overlay.show { display: block; }
}

/* ── Misc ── */
.page-title { font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 800; color: #0D1117; }
.btn-brand { background: var(--brand); color: #fff; border: none; border-radius: 10px; font-weight: 600; font-size: 13.5px; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.form-label { font-size: 13px; font-weight: 600; color: #374151; }
.form-control, .form-select { font-size: 14px; border-radius: 10px; border: 1.5px solid #E5E9F0; font-family: 'Inter', sans-serif; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,132,255,.08); }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.icon-box { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dropdown-menu { border-radius: 12px; border: 1px solid #E8ECF4; box-shadow: 0 8px 32px rgba(0,0,0,.1); font-size: 13.5px; }
.dropdown-item { border-radius: 8px; padding: 8px 14px; font-weight: 500; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }


/* Alert banner */
.edit-banner {
    background: linear-gradient(135deg,#EBF5FF,#dbeeff);
    border: 1.5px solid rgba(10,132,255,.2);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.edit-banner .badge-live {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 980px;
    background: rgba(48,209,88,.15);
    color: #1a7a34;
    letter-spacing: .3px;
}

/* Preview card */
.preview-card {
    background: var(--brand-pale);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(10,132,255,.15);
}

.preview-card .pv-title {
    font-family: 'DM Sans',sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #0D1117;
    margin-bottom: 10px;
}
.char-counter {
    font-size: 11px;
    color: #9AA5B4;
    text-align: right;
    margin-top: 4px;
}


/* Tags input */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border: 1.5px solid #E5E9F0;
    border-radius: 10px;
    min-height: 46px;
    cursor: text;
    transition: .2s;
}

.tag-container:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10,132,255,.08);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-pale);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 980px;
}

.tag-item button {
    background: none;
    border: none;
    color: var(--brand);
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    opacity: .7;
}

.tag-item button:hover {
    opacity: 1;
}

.tag-input {
    border: none;
    outline: none;
    font-family: 'Inter',sans-serif;
    font-size: 13.5px;
    color: #374151;
    min-width: 120px;
    flex: 1;
}
