.admin-body { min-height: 100vh; background: #f5f5f5; color: #111111; }
.admin-body[lang="ar"], html[lang="ar"] .admin-body { font-family: "IBM Plex Sans Arabic", "DM Sans", sans-serif; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.admin-shell[hidden], .admin-gate[hidden] { display: none; }
.admin-sidebar { min-height: 100vh; position: sticky; top: 0; height: 100vh; padding: 24px 16px 14px; display: flex; flex-direction: column; border-inline-end: 1px solid #e9e9e9; background: #ffffff; }
.admin-brand { padding: 0 7px 24px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #ededed; }
.admin-brand img, .gate-logo img { display: block; border-radius: 15px; object-fit: cover; }
.admin-brand img { width: 42px; height: 42px; }
.admin-brand > span { display: grid; gap: 3px; }
.admin-brand strong { font-size: 14px; letter-spacing: -.04em; }
.admin-brand small { color: #777777; font-size: 9px; }
.sidebar-caption { padding: 23px 11px 10px; color: #999999; font-size: 9px; font-weight: 600; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav-item { min-height: 44px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 12px; background: transparent; color: #666666; text-align: start; font-size: 11px; cursor: pointer; transition: background .16s, color .16s, transform .16s; }
.admin-nav-item:hover { background: #f5f5f5; color: #111111; }
.admin-nav-item.active { background: #111111; color: #ffffff; }
.admin-nav-item.active .nav-icon, .admin-nav-item.active .nav-count { color: #ffffff; }
.nav-icon { width: 19px; color: #666666; font-size: 16px; text-align: center; }
.nav-count { min-width: 23px; height: 22px; margin-inline-start: auto; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: #f0f0f0; color: #444444; font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-tip { padding: 12px; display: flex; gap: 9px; border: 1px solid #ededed; border-radius: 14px; background: #fafafa; }
.tip-mark { width: 17px; height: 17px; flex: 0 0 17px; display: grid; place-items: center; border: 1px solid #bbbbbb; border-radius: 50%; font-family: Georgia, serif; font-size: 10px; }
.sidebar-tip p { margin: 0; color: #777777; font-size: 9px; line-height: 1.8; }
.sidebar-site-link { padding: 18px 8px 13px; display: flex; align-items: center; justify-content: space-between; color: #555555; font-size: 10px; }
.sidebar-user { min-width: 0; padding: 12px 4px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid #ededed; }
.user-avatar, .candidate-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #e4e4e4; border-radius: 12px; background: #f6f6f6; color: #111111; font-size: 12px; font-weight: 700; }
.sidebar-user-copy { min-width: 0; display: grid; gap: 3px; }
.sidebar-user-copy strong, .sidebar-user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { font-size: 10px; }
.sidebar-user-copy small { color: #888888; font-size: 8px; }
.sidebar-user button { width: 30px; height: 30px; margin-inline-start: auto; border: 0; border-radius: 9px; background: transparent; color: #555555; font-size: 17px; cursor: pointer; }
.sidebar-user button:hover { background: #f1f1f1; }

.admin-main { min-width: 0; }
.admin-topbar { height: 66px; padding: 0 clamp(20px, 4vw, 50px); position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9e9e9; background: #ffffffef; backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #999999; font-size: 10px; }
.breadcrumbs strong { color: #222222; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.system-status { display: inline-flex; align-items: center; gap: 7px; color: #666666; font-size: 9px; }
.system-status i, .private-pill i { width: 7px; height: 7px; border: 1.5px solid #111111; border-radius: 50%; background: #ffffff; }
.admin-language, .icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e8e8e8; border-radius: 11px; background: #ffffff; color: #222222; font-size: 10px; font-weight: 700; cursor: pointer; }
.icon-button { font-size: 15px; }
.admin-language:hover, .icon-button:hover { border-color: #aaaaaa; background: #f8f8f8; }
.sidebar-toggle { display: none; }
.admin-content { max-width: 1500px; padding: 30px clamp(20px, 4vw, 50px) 55px; margin: auto; }
.admin-page-heading { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.admin-eyebrow, .panel-kicker { margin: 0 0 7px; color: #888888; font-size: 9px; font-weight: 600; letter-spacing: .035em; }
.admin-page-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 33px); line-height: 1.2; letter-spacing: -.05em; font-weight: 600; }
.page-subtitle { margin: 8px 0 0; color: #777777; font-size: 10px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; gap: 12px; }
.today-date { color: #777777; font-size: 9px; }
.admin-button { min-height: 39px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #e5e5e5; border-radius: 12px; font-size: 10px; font-weight: 600; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
.admin-button:hover { transform: translateY(-2px); box-shadow: 0 6px 15px #00000012; }
.admin-button:disabled { opacity: .55; cursor: wait; }
.admin-button-dark { border-color: #111111; background: #111111; color: #ffffff; }
.admin-button-dark:hover { background: #292929; }
.admin-button-light { background: #ffffff; color: #222222; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: admin-in .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes admin-in { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-height: 134px; padding: 17px 17px 15px; border: 1px solid #e8e8e8; border-radius: 17px; background: #ffffff; box-shadow: 0 4px 15px #00000003; transition: transform .19s, box-shadow .19s; animation: admin-in .28s cubic-bezier(.2,.8,.2,1) both; }
.stat-card:nth-child(2) { animation-delay: 30ms; }.stat-card:nth-child(3) { animation-delay: 60ms; }.stat-card:nth-child(4) { animation-delay: 90ms; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 11px 23px #00000009; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #777777; font-size: 10px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: #f2f2f2; color: #111111; font-size: 14px; }
.stat-card > strong { display: block; margin-top: 13px; font-size: 30px; line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.stat-card > small { display: block; margin-top: 8px; color: #888888; font-size: 9px; }
.stat-card-dark { border-color: #111111; background: #111111; color: #ffffff; }
.stat-card-dark .stat-top, .stat-card-dark > small { color: #c5c5c5; }
.stat-card-dark .stat-icon { background: #303030; color: #ffffff; }
.overview-grid { margin-top: 15px; display: grid; grid-template-columns: 1.16fr .84fr; gap: 14px; }
.admin-panel { min-width: 0; border: 1px solid #e8e8e8; border-radius: 17px; background: #ffffff; box-shadow: 0 4px 16px #00000003; }
.recent-panel, .pipeline-panel, .featured-jobs-panel { padding: 17px; }
.panel-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 0; font-size: 14px; letter-spacing: -.025em; font-weight: 600; }
.panel-kicker { margin-bottom: 5px; font-size: 8px; }
.panel-link { padding: 5px 0; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #555555; font-size: 9px; font-weight: 600; cursor: pointer; }
.panel-mark { color: #111111; font-size: 19px; }
.recent-list, .featured-jobs-list { display: grid; }
.recent-row, .featured-job { min-height: 53px; padding: 7px 2px; display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid #f0f0f0; background: #ffffff; text-align: start; cursor: pointer; }
.recent-row:hover, .featured-job:hover { background: #fafafa; }
.candidate-avatar { width: 31px; height: 31px; flex-basis: 31px; border-radius: 11px; font-size: 10px; }
.recent-copy, .featured-job-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.recent-copy strong, .featured-job-copy strong { overflow: hidden; color: #222222; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.recent-copy small, .featured-job-copy small { overflow: hidden; color: #888888; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.status-badge, .access-badge { min-height: 22px; padding: 4px 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e8e8e8; border-radius: 8px; background: #f6f6f6; color: #444444; white-space: nowrap; font-size: 8px; }
.status-received, .status-job-draft { border-color: #dddddd; background: #f6f6f6; }
.status-reviewing, .status-interview { border-color: #bbbbbb; background: #eeeeee; color: #111111; }
.status-offer, .status-job-active, .access-admin { border-color: #111111; background: #111111; color: #ffffff; }
.status-rejected, .status-withdrawn, .status-job-closed { background: #fafafa; color: #888888; }
.pipeline-list { display: grid; gap: 13px; }
.pipeline-row { display: grid; gap: 7px; }
.pipeline-label { display: flex; align-items: center; justify-content: space-between; color: #555555; font-size: 9px; }
.pipeline-label strong { color: #222222; font-size: 10px; }
.pipeline-track { height: 5px; overflow: hidden; border-radius: 5px; background: #f0f0f0; }
.pipeline-track span { height: 100%; display: block; border-radius: inherit; background: #111111; transition: width .28s cubic-bezier(.2,.8,.2,1); }
.panel-footnote, .panel-empty { margin: 15px 0 0; color: #999999; font-size: 8px; line-height: 1.8; }
.panel-empty { padding: 13px 0; text-align: center; }
.featured-jobs-panel { margin-top: 14px; }
.featured-job-icon, .table-avatar { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 1px solid #eeeeee; border-radius: 10px; background: #f7f7f7; color: #444444; }
.section-toolbar { margin-bottom: 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.section-toolbar p { margin: 6px 0 0; color: #777777; font-size: 9px; line-height: 1.8; }
.private-pill { min-height: 31px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e5e5e5; border-radius: 10px; background: #ffffff; color: #555555; white-space: nowrap; font-size: 9px; }
.table-tools { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.admin-search { width: min(340px, 100%); min-height: 39px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #e5e5e5; border-radius: 11px; background: #ffffff; }
.admin-search > span { color: #777777; font-size: 17px; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #111111; font-size: 9px; }
.admin-search input::placeholder { color: #999999; }
.admin-select { min-height: 39px; padding: 0 11px; border: 1px solid #e5e5e5; border-radius: 11px; background: #ffffff; color: #444444; font-size: 9px; }
.table-panel { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: start; }
.table-wrap th { height: 40px; padding: 0 13px; border-bottom: 1px solid #ededed; background: #fafafa; color: #858585; text-align: start; white-space: nowrap; font-size: 8px; font-weight: 600; }
.table-wrap td { min-height: 55px; padding: 10px 13px; border-bottom: 1px solid #f0f0f0; color: #555555; vertical-align: middle; white-space: nowrap; font-size: 9px; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr { transition: background .15s; }
.table-wrap tbody tr:hover { background: #fafafa; }
.table-primary { display: flex; align-items: center; gap: 9px; }
.table-primary > span:last-child { min-width: 0; display: grid; gap: 4px; }
.table-primary strong, .role-name-cell { color: #222222; font-size: 9px; font-weight: 600; }
.table-primary small, .table-subtext { display: block; color: #888888; font-size: 8px; }
.table-primary small a { color: inherit; }
.table-primary small a:hover { color: #111111; text-decoration: underline; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.row-action { padding: 6px 8px; border: 1px solid #e8e8e8; border-radius: 8px; background: #ffffff; color: #333333; white-space: nowrap; font-size: 8px; cursor: pointer; }
.row-action:hover { border-color: #aaaaaa; }
.row-action-muted { color: #777777; }
.row-action:disabled, .resume-button:disabled, .employee-role-select:disabled { opacity: .5; cursor: not-allowed; }
.empty-state { padding: 37px 16px; color: #888888; text-align: center; font-size: 10px; }
.status-select, .employee-role-select { min-height: 30px; padding: 0 8px; border: 1px solid #e6e6e6; border-radius: 9px; background: #ffffff; color: #333333; font-size: 8px; }
.resume-button { min-height: 29px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e3e3e3; border-radius: 9px; background: #ffffff; color: #222222; white-space: nowrap; font-size: 8px; cursor: pointer; }
.resume-button:hover { border-color: #aaaaaa; }
.candidate-cell { min-width: 190px; }
.candidate-open { padding: 0; border: 0; background: transparent; color: #222222; text-align: start; font-size: 9px; font-weight: 600; cursor: pointer; }
.candidate-open:hover { text-decoration: underline; }
.candidate-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #666666; font-size: 9px; }
.candidate-detail-meta a, .candidate-link { color: #222222; text-decoration: underline; text-underline-offset: 3px; }
.candidate-link { margin-top: 12px; display: inline-block; font-size: 9px; }
.candidate-message { margin: 20px 0; padding: 14px; border: 1px solid #ededed; border-radius: 13px; background: #fafafa; }
.candidate-message h3 { margin: 0 0 8px; font-size: 10px; }
.candidate-message p { margin: 0; color: #555555; font-size: 10px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.candidate-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.candidate-detail-actions .status-select { min-height: 34px; }
.candidate-detail-actions .resume-button { min-height: 34px; }
.access-note { margin-bottom: 14px; padding: 12px 14px; display: flex; align-items: start; gap: 10px; border: 1px solid #e6e6e6; border-radius: 13px; background: #ffffff; }
.access-note > span { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1px solid #bbbbbb; border-radius: 50%; font-size: 10px; }
.access-note p { margin: 0; color: #666666; font-size: 9px; line-height: 1.8; }
.self-account { color: #888888; font-size: 8px; }

.admin-gate { width: min(520px, calc(100% - 32px)); min-height: 100vh; margin: auto; padding: 36px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: admin-in .25s ease both; }
.gate-logo { width: 74px; height: 74px; margin-bottom: 20px; display: grid; place-items: center; border: 1px solid #e7e7e7; border-radius: 23px; background: #ffffff; box-shadow: 0 12px 35px #0000000b; }
.gate-logo img { width: 62px; height: 62px; border-radius: 17px; }
.admin-gate .admin-eyebrow { letter-spacing: .04em; }
.admin-gate h1 { margin: 5px 0 10px; font-size: clamp(25px, 6vw, 34px); letter-spacing: -.05em; }
.gate-description { max-width: 390px; margin: 0; color: #777777; font-size: 11px; line-height: 1.9; }
.gate-actions { margin-top: 21px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.gate-hint { max-width: 420px; margin: 17px 0 0; color: #888888; font-size: 9px; line-height: 1.8; }
.gate-actions .admin-button { min-height: 43px; border-radius: 13px; }
.admin-dialog { width: min(850px, calc(100% - 24px)); max-height: min(90vh, 900px); padding: 24px; position: fixed; inset: 0; margin: auto; overflow: auto; border: 1px solid #e5e5e5; border-radius: 21px; background: #ffffff; color: #111111; box-shadow: 0 25px 90px #00000038; }
.admin-dialog::backdrop { background: #000000c9; backdrop-filter: blur(5px); }
.dialog-heading { margin-bottom: 17px; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.dialog-close { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #e7e7e7; border-radius: 11px; background: #ffffff; color: #333333; font-size: 21px; cursor: pointer; }
.dialog-close:hover { background: #f5f5f5; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-field { min-width: 0; display: grid; align-content: start; gap: 6px; }
.editor-field > span { color: #555555; font-size: 9px; font-weight: 600; }
.editor-field input, .editor-field textarea, .editor-field select { width: 100%; min-height: 37px; padding: 9px 10px; border: 1px solid #e5e5e5; border-radius: 10px; outline: none; background: #ffffff; color: #111111; font-size: 9px; }
.editor-field textarea { min-height: 76px; resize: vertical; line-height: 1.7; }
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus { border-color: #888888; box-shadow: 0 0 0 3px #00000008; }
.editor-field input:disabled { background: #f7f7f7; color: #888888; }
.dialog-actions { margin-top: 19px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.dialog-actions .form-status { flex: 1; color: #333333; font-size: 9px; }
.dialog-actions .form-status.is-error { color: #111111; }
.confirm-dialog { width: min(430px, calc(100% - 26px)); }
.confirm-dialog > p { color: #666666; font-size: 10px; line-height: 1.8; }
.admin-toast { max-width: calc(100% - 28px); position: fixed; z-index: 10; inset-inline-start: 50%; bottom: 21px; padding: 12px 17px; border: 1px solid #333333; border-radius: 13px; background: #111111; box-shadow: 0 12px 30px #00000024; color: #ffffff; font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .17s, transform .17s; }
.admin-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.admin-toast.is-error { background: #333333; }

@media (min-width: 1500px) { .admin-shell { grid-template-columns: 275px minmax(0, 1fr); } }
@media (max-width: 1060px) {
  .admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: 258px; position: fixed; z-index: 6; inset-block: 0; inset-inline-start: 0; height: 100dvh; transform: translateX(110%); box-shadow: 12px 0 34px #0000000b; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
  html[dir="ltr"] .admin-sidebar { transform: translateX(-110%); }
  .admin-sidebar.sidebar-open, html[dir="ltr"] .admin-sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e7e7e7; border-radius: 10px; background: #ffffff; cursor: pointer; }
  .admin-topbar { height: 58px; padding-inline: 13px; gap: 9px; }
  .breadcrumbs { margin-inline-end: auto; gap: 6px; font-size: 8px; }
  .topbar-actions { gap: 7px; }
  .system-status { display: none; }
  .admin-content { padding: 23px 14px 38px; }
  .admin-page-heading { align-items: start; }
  .admin-page-heading h1 { font-size: 26px; }
  .heading-actions { align-items: end; flex-direction: column-reverse; gap: 9px; }
  .heading-actions .admin-button { min-height: 35px; padding-inline: 10px; font-size: 8px; }
  .today-date { font-size: 8px; }
  .stat-card { min-height: 118px; padding: 13px; border-radius: 15px; }
  .stat-card > strong { font-size: 27px; }
  .stat-top { font-size: 8px; }
  .stat-card > small { font-size: 8px; }
  .overview-grid { gap: 10px; }
  .recent-panel, .pipeline-panel, .featured-jobs-panel { padding: 13px; }
  .section-toolbar { align-items: start; }
  .section-toolbar h2 { font-size: 17px; }
  .section-toolbar p { max-width: 380px; }
  .private-pill { padding-inline: 7px; font-size: 8px; }
  .table-tools { align-items: stretch; }
  .admin-search { flex: 1; width: 0; }
  .admin-select { max-width: 135px; }
  .admin-dialog { padding: 18px 14px; border-radius: 17px; }
}
@media (max-width: 430px) {
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 111px; padding: 11px; }
  .stat-icon { width: 23px; height: 23px; }
  .section-toolbar { gap: 9px; }
  .section-toolbar > .admin-button { flex: 0 0 auto; min-height: 34px; padding-inline: 9px; font-size: 8px; }
  .private-pill { max-width: 108px; white-space: normal; }
  .table-tools { flex-wrap: wrap; }
  .admin-search { flex: 1 1 100%; }
  .admin-select { max-width: unset; }
  .editor-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-section.active, .stat-card, .admin-gate { animation: none; }
  .admin-sidebar, .admin-toast, .admin-button, .admin-nav-item { transition: none; }
}
