/* =========================================================
   Media Guys — Admin panel
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body.adm {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #F6F2EC; color: #1A1512; font-size: 14px;
}
a { color: inherit; }

/* ===== Sidebar ===== */
.adm-side {
  position: fixed; top: 0; left: 0; width: 250px; height: 100vh;
  background: #fff; border-right: 1px solid #EEE6DA; display: flex; flex-direction: column;
  padding: 8px 16px 18px; z-index: 30;
}
.adm-logo { display: block; padding: 6px 6px 2px; }
.adm-logo img { height: 80px; width: auto; display: block; margin: -10px 0; }
.adm-nav { margin-top: 14px; flex: 1; overflow-y: auto; }
.adm-group { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: #B3A998; margin: 18px 8px 8px; }
.adm-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: #6B6256; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 2px;
}
.adm-link:hover { background: #FAF6F0; color: #1A1512; }
.adm-link.is-active { background: #FDEFE2; color: #E0701B; }
.adm-ico { display: inline-flex; color: #9C9284; }
.adm-link.is-active .adm-ico, .adm-link:hover .adm-ico { color: inherit; }
.adm-logout {
  display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 9px;
  color: #C0392B; text-decoration: none; font-weight: 700; background: #FCEEEC;
}
.adm-logout:hover { background: #F9E2DE; }
.adm-logout .adm-ico { color: #C0392B; }

/* ===== Body / topbar ===== */
.adm-body { margin-left: 250px; min-height: 100vh; }
.adm-top {
  position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #EEE6DA;
  height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
}
.adm-top-title { font-size: 18px; font-weight: 700; }
.adm-top-right { display: flex; align-items: center; gap: 20px; }
.adm-bell { color: #6B6256; position: relative; display: inline-flex; }
.adm-user { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.adm-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #F26B1D; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.adm-top-site { font-size: 13px; font-weight: 600; color: #8A7F70; text-decoration: none; }
.adm-top-site:hover { color: #E0701B; }
.adm-main { padding: 30px; }

/* ===== Welcome / headings ===== */
.adm-welcome { font-size: 26px; font-weight: 800; }
.adm-sub { color: #8A7F70; margin-top: 6px; margin-bottom: 26px; }
.adm-pagehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.adm-h1 { font-size: 22px; font-weight: 800; }
.adm-count { font-size: 13px; color: #8A7F70; font-weight: 600; }

/* ===== Stat cards ===== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid #EFE7DA; border-radius: 16px; padding: 22px 24px; }
.stat-card-top { display: flex; align-items: center; gap: 16px; }
.stat-ic {
  width: 52px; height: 52px; border-radius: 50%; background: #FCEAD4; color: #E0701B;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-label { font-size: 14px; color: #6B6256; font-weight: 600; }
.stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.stat-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: #E0701B; text-decoration: none; }
.stat-link:hover { text-decoration: underline; }

/* ===== Panels ===== */
.adm-cols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid #EFE7DA; border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { font-size: 17px; font-weight: 800; }
.panel-link { font-size: 13px; font-weight: 700; color: #E0701B; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }

/* ===== Tables ===== */
.adm-tablewrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th {
  text-align: left; color: #8A7F70; font-weight: 700; font-size: 12.5px; padding: 10px 12px;
  border-bottom: 1px solid #EFE7DA; white-space: nowrap;
}
.adm-table td { padding: 13px 12px; border-bottom: 1px solid #F4EDE2; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #FCF9F4; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #FCEAD4; color: #E0701B;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.cell-avatar--img { background: none; overflow: hidden; }
.cell-avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell-sub { color: #8A7F70; font-size: 12.5px; }

/* ===== Status badges ===== */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending     { background: #FDF1D9; color: #B8860B; }
.badge-viewed      { background: #EAEFF5; color: #4A6B8A; }
.badge-contacted   { background: #E3EEF9; color: #2E84D8; }
.badge-enrolled    { background: #E5F5EC; color: #2E9E5B; }
.badge-shortlisted { background: #E3EEF9; color: #2E84D8; }
.badge-interview   { background: #EFE7FB; color: #7A3FF2; }
.badge-selected, .badge-open  { background: #E5F5EC; color: #2E9E5B; }
.badge-rejected, .badge-closed, .badge-inactive { background: #FDEAE7; color: #C0392B; }
.badge-active      { background: #E5F5EC; color: #2E9E5B; }
.badge-urgent      { background: #FDE9DD; color: #E0701B; }

/* ===== Row actions ===== */
.row-actions { display: flex; gap: 6px; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #EFE7DA; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #6B6256;
  text-decoration: none; transition: background .12s, color .12s, border-color .12s;
}
.iconbtn:hover { background: #FAF6F0; }
.iconbtn--ok:hover { background: #E5F5EC; color: #2E9E5B; border-color: #BFE3CC; }
.iconbtn--no:hover { background: #FDEAE7; color: #C0392B; border-color: #F2C9C2; }
.iconbtn--del:hover { background: #FDEAE7; color: #C0392B; border-color: #F2C9C2; }

/* Pin-to-home toggle in the industries table */
.pinbtn {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid #EFE7DA; background: #fff; color: #8A7F70;
  font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 20px;
  transition: background .12s, color .12s, border-color .12s;
}
.pinbtn:hover { background: #FAF6F0; }
.pinbtn.is-on { background: #FCEAD4; color: #B5701A; border-color: #F0CE9A; }

/* ===== Quick controls / homepage panels ===== */
.qc-list { display: flex; flex-direction: column; gap: 4px; }
.qc-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 12px; border-radius: 10px;
  text-decoration: none; color: #1A1512; font-weight: 700; font-size: 14px;
}
.qc-item:hover { background: #FAF6F0; }
.qc-ic {
  width: 38px; height: 38px; border-radius: 9px; background: #FCEAD4; color: #E0701B;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #F1E9DD; border-radius: 10px; }
.mini-logo {
  width: 34px; height: 34px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-main { flex: 1; min-width: 0; }
.mini-title { font-weight: 700; font-size: 14px; }
.mini-sub { color: #8A7F70; font-size: 12.5px; }

/* ===== Buttons / forms (CRUD pages) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; border: none; font-family: inherit;
}
.btn-primary { background: #F26B1D; color: #fff; }
.btn-primary:hover { background: #E0701B; }
.btn-dark { background: #1A1512; color: #fff; }
.btn-ghost { background: #fff; color: #1A1512; border: 1px solid #E4DACB; }
.btn-ghost:hover { border-color: #C9BCA9; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.flash { background: #E7F4EC; color: #1E7A45; border: 1px solid #BFE3CC; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.flash-err { background: #FDECEA; color: #C0392B; border-color: #F2C9C2; }

.form-card { background: #fff; border: 1px solid #EFE7DA; border-radius: 14px; padding: 26px 28px; max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #E6DDCF; background: #FBF8F3; border-radius: 9px; padding: 12px 14px;
  font-size: 14px; font-family: inherit; color: #1A1512; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: #E0701B; background: #fff; }
.select { appearance: none; cursor: pointer; }
.textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }

.empty { background: #fff; border: 1px dashed #E4DACB; border-radius: 14px; padding: 40px; text-align: center; color: #8A7F70; }

@media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } .adm-cols { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .adm-side { display: none; } .adm-body { margin-left: 0; } .form-grid { grid-template-columns: 1fr; } }

/* ===== Login ===== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #F6F2EC; padding: 20px; }
.login-card { background: #fff; border: 1px solid #EFE7DA; border-radius: 16px; padding: 36px 34px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(120,90,40,.08); }
.login-logo { height: 76px; display: block; margin: -8px auto 14px; }
.login-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.login-sub { text-align: center; color: #8A7F70; margin-bottom: 24px; font-size: 14px; }
.login-err { background: #FDECEA; color: #C0392B; border: 1px solid #F2C9C2; padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; }
.login-field { margin-bottom: 16px; }
.login-btn { width: 100%; background: #F26B1D; color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.login-btn:hover { background: #E0701B; }
.login-back { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: #8A7F70; text-decoration: none; }
