/* ============================================================================
   STAR GLAM MODEL AGENCY — Executive Admin Control Panel Stylesheet
   ============================================================================ */
:root {
  --a-bg: #f6f4f6;
  --a-card: #ffffff;
  --a-side: #0c0a0d;
  --a-side-hover: #1b151d;
  --a-ink: #120f12;
  --a-mute: #6d666c;
  --a-line: #e8e2e6;
  --a-pink: #e6007e;
  --a-pink2: #ff4fa8;
  --a-pink-soft: rgba(230, 0, 126, 0.1);
  --a-ok: #12a150;
  --a-warn: #d97706;
  --a-info: #2563eb;
  --a-ko: #dc2626;
  --a-purple: #7c3aed;
  --a-d: 'Bodoni Moda', Georgia, serif;
  --a-s: 'Jost', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-s);
  font-size: 14.5px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.admin-shell {
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: var(--a-side);
  color: #efe8ed;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #241d25;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}

.side-brand img {
  height: 44px;
}

.side-section {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #827880;
  padding: 14px 12px 8px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #cfc4cc;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
}

.side-link .left {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.side-link:hover {
  background: var(--a-side-hover);
  color: #ffffff;
}

.side-link.on {
  background: linear-gradient(135deg, var(--a-pink) 0%, #b80064 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(230, 0, 126, 0.32);
}

.side-badge {
  background: rgba(230, 0, 126, 0.22);
  color: #ff77be;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.side-link.on .side-badge {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
}

.side-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Main Area */
.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--a-card);
  border-bottom: 1px solid var(--a-line);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar h1 {
  margin: 0;
  font-family: var(--a-d);
  font-size: 26px;
  font-weight: 500;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--a-pink);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.admin-content {
  padding: 28px;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.kpi-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 15, 18, 0.06);
}

.kpi-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a-mute);
}

.kpi-value {
  font-family: var(--a-d);
  font-size: 38px;
  line-height: 1.05;
  color: var(--a-ink);
}

.kpi-sub {
  font-size: 12.5px;
  color: var(--a-pink);
  font-weight: 500;
}

/* Cards & Tables */
.a-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 22px;
}

.a-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.a-card-head h2 {
  margin: 0;
  font-family: var(--a-d);
  font-size: 22px;
  font-weight: 500;
}

.a-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.table-wrap {
  overflow-x: auto;
}

table.a-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.a-table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a-mute);
  padding: 12px 14px;
  border-bottom: 1px solid var(--a-line);
  white-space: nowrap;
}

table.a-table td {
  padding: 14px;
  border-bottom: 1px solid var(--a-line);
  vertical-align: middle;
}

table.a-table tr:hover td {
  background: #faf8fa;
}

.thumb-sm {
  width: 46px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  background: #f0ecee;
  border: 1px solid var(--a-line);
}

/* Badges */
.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-new        { background: rgba(230,0,126,0.12); color: #c7006c; }
.st-reviewing  { background: rgba(217,119,6,0.13); color: #b45309; }
.st-invited    { background: rgba(37,99,235,0.12); color: #1d4ed8; }
.st-training   { background: rgba(124,58,237,0.12); color: #6d28d9; }
.st-accepted,
.st-confirmed  { background: rgba(18,161,80,0.13); color: #15803d; }
.st-rejected   { background: rgba(220,38,38,0.12); color: #b91c1c; }
.st-read,
.st-archived   { background: #ece8eb; color: #5c555b; }
.st-in_progress{ background: rgba(37,99,235,0.12); color: #1d4ed8; }

/* Admin Buttons */
.abtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--a-line);
  background: #ffffff;
  color: var(--a-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.abtn:hover { border-color: var(--a-pink); color: var(--a-pink); }
.abtn.p { background: var(--a-pink); border-color: var(--a-pink); color: #ffffff; }
.abtn.p:hover { background: var(--a-pink2); border-color: var(--a-pink2); color: #ffffff; }
.abtn.ok { background: var(--a-ok); border-color: var(--a-ok); color: #ffffff; }
.abtn.ko { background: #fff5f5; border-color: rgba(220,38,38,0.3); color: var(--a-ko); }
.abtn.ko:hover { background: var(--a-ko); color: #ffffff; }
.abtn.sm { padding: 6px 13px; font-size: 11px; }

/* Admin Forms */
.a-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.a-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.a-field.full { grid-column: 1 / -1; }

.a-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-mute);
}

.a-field input,
.a-field select,
.a-field textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #ffffff;
  color: var(--a-ink);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.a-field input:focus,
.a-field select:focus,
.a-field textarea:focus {
  border-color: var(--a-pink);
  box-shadow: 0 0 0 3px var(--a-pink-soft);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.filter-bar input,
.filter-bar select {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
}

.a-flash {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
}
.a-flash.ok { background: rgba(18,161,80,0.12); color: #15803d; border: 1px solid rgba(18,161,80,0.28); }
.a-flash.err { background: rgba(220,38,38,0.12); color: #b91c1c; border: 1px solid rgba(220,38,38,0.28); }

/* Simple Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.bar-track {
  height: 10px;
  border-radius: 99px;
  background: #f0ecef;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--a-pink), var(--a-pink2));
}

/* Login Page */
.login-page {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(230,0,126,0.22), transparent 45%), #0a080a;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: min(440px, 94vw);
  background: #141014;
  border: 1px solid #2b2229;
  border-radius: 22px;
  padding: 40px 34px;
  color: #f6f1f3;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

.login-box input {
  background: #0b090b;
  border-color: #2f262d;
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--a-line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 266px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .mobile-menu-btn { display: inline-flex; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .a-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .kpi-grid, .a-form-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 18px; }
}
