/* superadmin/sa.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #b8a67c;
  --gold-light: #d4c4a0;
  --dark: #0d0d0d;
  --dark2: #181818;
  --dark3: #222;
  --dark4: #2a2a2a;
  --border: #333;
  --text: #e8e8e8;
  --text-muted: #888;
  --green: #4caf50;
  --red: #e53935;
  --radius: 10px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
}

/* ── Layout ── */
.sa-wrapper { display: flex; min-height: 100vh; }

.sa-sidebar {
  width: 240px;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sa-logo {
  padding: 28px 24px 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
}
.sa-logo span { color: var(--text); font-weight: 300; }

.sa-nav { flex: 1; padding: 16px 0; }
.sa-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sa-nav a:hover, .sa-nav a.active {
  color: var(--gold);
  background: rgba(184,166,124,0.08);
  border-left-color: var(--gold);
}

.sa-nav-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.sa-nav-footer a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}
.sa-nav-footer a:hover { color: var(--red); }

.sa-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sa-topbar {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-topbar h1 { font-size: 20px; font-weight: 600; }
.sa-topbar .badge {
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sa-content { padding: 32px; flex: 1; }

/* ── Cards ── */
.card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 16px; font-weight: 600; color: var(--gold); }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .num { font-size: 36px; font-weight: 700; color: var(--gold); }
.stat-card .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Table ── */
.sa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sa-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.sa-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.sa-table tr:last-child td { border-bottom: none; }
.sa-table tr:hover td { background: var(--dark4); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--dark); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon { padding: 7px; border-radius: 6px; }

/* ── Forms ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

input[type="text"], input[type="password"], input[type="date"],
input[type="datetime-local"], input[type="tel"], input[type="url"],
input[type="number"], select, textarea {
  background: var(--dark4);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--dark3); }

.form-row { display: flex; gap: 16px; align-items: flex-end; }
.form-row > * { flex: 1; }

.invitee-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.invitee-row input { flex: 1; }

/* ── Badges ── */
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-accept { background: rgba(76,175,80,0.15); color: var(--green); }
.badge-decline { background: rgba(229,57,53,0.15); color: var(--red); }
.badge-pending { background: rgba(136,136,136,0.15); color: var(--text-muted); }

/* ── Login ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}
.login-box {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  width: 360px;
}
.login-box h2 { font-size: 22px; margin-bottom: 6px; color: var(--gold); }
.login-box p  { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 8px; padding: 12px; }

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.3); color: var(--green); }
.alert-error   { background: rgba(229,57,53,0.12); border: 1px solid rgba(229,57,53,0.3); color: var(--red); }
.alert-info    { background: rgba(184,166,124,0.12); border: 1px solid rgba(184,166,124,0.3); color: var(--gold); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── File upload ── */
.file-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.file-zone:hover { border-color: var(--gold); }
.file-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-zone .file-icon { font-size: 32px; margin-bottom: 8px; }
.file-zone p { font-size: 13px; color: var(--text-muted); }
.file-zone strong { color: var(--gold); }

/* ── Project card grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--gold); }
.project-card h3 { color: var(--gold); font-size: 18px; margin-bottom: 4px; }
.project-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.project-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sa-sidebar { width: 100%; height: auto; position: static; }
  .sa-main { margin-left: 0; }
  .sa-wrapper { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ── Progress bar ── */
.progress { background: var(--dark4); border-radius: 20px; height: 6px; overflow: hidden; }
.progress-bar { background: var(--gold); height: 100%; border-radius: 20px; transition: width 0.4s; }

/* ── Copy link ── */
.copy-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark4); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; font-size: 13px;
  word-break: break-all;
}
.copy-link code { flex: 1; color: var(--gold-light); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
