/* ==========================================================================
   ZIK — admin.css
   Loaded in addition to style.css on every /admin page.
   ========================================================================== */
body.admin-body { background: var(--bg-soft); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--primary-darker); color: #C7D3EC;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand-name { color: #fff; margin-bottom: 28px; display: block; padding: 0 8px; }
.admin-sidebar .brand-name span { color: var(--accent); }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: #C7D3EC; margin-bottom: 3px;
}
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a i { font-size: 17px; color: var(--accent); }
.admin-nav .logout-link { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20;
}
.admin-content { padding: 28px; max-width: 1180px; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
@media (max-width: 900px) { .admin-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.admin-stat-card .num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--primary); }
.admin-stat-card .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.admin-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-panel-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); }
table.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); background: var(--bg-soft); }
table.admin-table tr:last-child td { border-bottom: none; }
.admin-table-wrap { overflow-x: auto; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.tag-new { background: #E0F2FE; color: #075985; }
.tag-contacted, .tag-reviewed { background: #FEF9C3; color: #854D0E; }
.tag-in_progress, .tag-shortlisted { background: #DCFCE7; color: #166534; }
.tag-closed, .tag-rejected { background: #F1F5F9; color: #475569; }
.tag-draft { background: #F1F5F9; color: #475569; }
.tag-published { background: #DCFCE7; color: #166534; }

.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--white); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--primary-darker), var(--primary)); padding: 20px; }
.admin-login-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
