/* ====================================================
   EXONALS PROJECT MANAGER — Redesign UI
   Dark premium theme · Space Grotesk + Inter
   ==================================================== */

:root {
  /* Core palette */
  --bg:           #0a0b0f;
  --bg-elevated:  #13151c;
  --bg-card:      #191c27;
  --bg-hover:     #1e2130;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.04);

  /* Accents */
  --violet:       #7c3aed;
  --violet-soft:  #8b5cf6;
  --violet-glow:  rgba(124,58,237,0.25);
  --cyan:         #06b6d4;
  --cyan-soft:    #22d3ee;
  --cyan-glow:    rgba(6,182,212,0.2);
  --red:          #f43f5e;
  --red-soft:     rgba(244,63,94,0.15);
  --amber:        #f59e0b;
  --amber-soft:   rgba(245,158,11,0.15);
  --green:        #10b981;
  --green-soft:   rgba(16,185,129,0.15);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #8b92a5;
  --text-muted:     #4b5268;

  /* Sidebar */
  --sidebar-w: 240px;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

/* ─── RESET ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── SIDEBAR ────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--violet-soft), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  min-width: 36px;
  text-align: center;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.1));
  color: var(--text-primary);
  border: 1px solid rgba(124,58,237,0.25);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2.5px;
  background: linear-gradient(to bottom, var(--violet-soft), var(--cyan));
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.admin-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 2px 6px;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 4px;
}

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: var(--text-muted); }

.logout-btn { color: var(--text-muted); }
.logout-btn:hover { color: var(--red); background: var(--red-soft); }

/* ─── MAIN CONTENT ──────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  background: var(--bg);
}

.content-inner {
  padding: 36px 40px;
  max-width: 1100px;
}

/* ─── PAGE HEADER ───────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-header .text-muted {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 600px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-soft));
  color: white;
  border-color: var(--violet);
  box-shadow: 0 2px 12px var(--violet-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--violet-soft), #a78bfa);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}

.btn-danger {
  background: rgba(244,63,94,0.1);
  color: var(--red);
  border-color: rgba(244,63,94,0.25);
}
.btn-danger:hover {
  background: rgba(244,63,94,0.2);
  box-shadow: 0 2px 12px rgba(244,63,94,0.2);
}

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--red);
  border-color: rgba(244,63,94,0.3);
}

/* ─── STATS BAR ─────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stat-card:nth-child(1) { --accent: var(--violet); --glow: var(--violet-glow); }
.stat-card:nth-child(2) { --accent: var(--red); --glow: rgba(244,63,94,0.15); }
.stat-card:nth-child(3) { --accent: var(--cyan); --glow: var(--cyan-glow); }

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--glow), transparent 70%);
  pointer-events: none;
}

.stat-card:hover { border-color: rgba(255,255,255,0.12); }

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 14px;
}

.stat-bar {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stat-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--cyan)));
  box-shadow: 0 0 8px var(--glow);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 4px;
}

.stat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── TABS ──────────────────────────── */
.section-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── SECTION HEADER ────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── ITEM LIST ─────────────────────── */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
}

.item-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: var(--bg-card);
}

.item-info { flex: 1; min-width: 0; }
.item-info strong {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.item-info .text-muted {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── STATUS SELECT ─────────────────── */
.status-select {
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%238b92a5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.status-select:focus, .status-select:hover {
  border-color: var(--violet);
  outline: none;
}

.project-status-select {
  font-size: 13px;
  padding: 8px 32px 8px 12px;
}

/* ─── BADGES ────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-planned   { background: rgba(139,92,246,0.15); color: #a78bfa; }
.status-active    { background: rgba(6,182,212,0.15);  color: #22d3ee; }
.status-completed { background: rgba(16,185,129,0.15); color: #34d399; }
.status-on_hold   { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-archived  { background: rgba(255,255,255,0.07); color: var(--text-muted); }

.severity-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.severity-low      { background: var(--green-soft); color: #34d399; }
.severity-medium   { background: var(--amber-soft); color: #fbbf24; }
.severity-high     { background: rgba(251,146,60,0.15); color: #fb923c; }
.severity-critical { background: var(--red-soft); color: #fb7185; }

/* ─── FORMS ─────────────────────────── */
.form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 480px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
textarea,
select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-glow);
  outline: none;
}

input::placeholder,
textarea::placeholder { color: var(--text-muted); }

textarea { resize: vertical; }

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  max-width: none;
}

.inline-form input,
.inline-form select {
  flex: 1;
  min-width: 140px;
}

.inline-form.show { display: flex; }
.inline-form { display: none; }

/* ─── PROJECT GRID ──────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.project-card:hover::after { opacity: 1; }

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.stat-icon { font-size: 13px; }

.project-date {
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

/* ─── STATUS FILTER ─────────────────── */
.status-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}

.filter-btn.active {
  background: var(--violet-glow);
  color: var(--violet-soft);
  border-color: rgba(124,58,237,0.35);
}

/* ─── FILE CARDS ────────────────────── */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.15s;
}

.file-card:hover { border-color: rgba(255,255,255,0.1); background: var(--bg-card); }

.file-icon {
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }
.file-name {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.file-name:hover { color: var(--violet-soft); }

.file-meta { display: flex; gap: 8px; }
.file-size { font-size: 11.5px; color: var(--text-muted); }
.date { font-size: 11.5px; color: var(--text-muted); }

/* ─── EMPTY STATE ───────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}

.empty-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.5; }

.empty-state h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.empty-text {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ─── ALERTS ────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--red-soft);
  border: 1px solid rgba(244,63,94,0.3);
  color: #fb7185;
}

/* ─── MODAL ─────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  width: 30px; height: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--text-primary); }

.prompt-textarea {
  width: 100%;
  min-height: 220px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12.5px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* ─── LOGIN PAGE ────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo .logo-mark {
  display: inline-flex;
  margin: 0 auto 16px;
  font-size: 20px;
  padding: 12px 16px;
  width: auto;
}

.login-logo h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.login-logo p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 400px;
}

/* ─── ADMIN TABLE ───────────────────── */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); }

/* ─── MISC ──────────────────────────── */
.text-muted { color: var(--text-secondary); }
.copy-prompt-btn { font-size: 14px; }

/* ─── SCROLLBAR ─────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── SELECTION ─────────────────────── */
::selection { background: var(--violet-glow); color: var(--text-primary); }

/* ─── UPLOAD AREA ───────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 16px;
}

.upload-area:hover {
  border-color: var(--violet);
  background: var(--violet-glow);
}

.upload-area input[type="file"] { display: none; }
.upload-area .upload-label {
  color: var(--text-secondary);
  font-size: 13.5px;
}
.upload-area .upload-label span {
  color: var(--violet-soft);
  font-weight: 500;
}

/* ─── DETAILS/SUMMARY ───────────────── */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── RESPONSIVE ────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .content-inner { padding: 20px 16px; }
  .stats-bar { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

/* ─── SUBTLE NOISE TEXTURE ─────────── */
.main-content::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── PAGE TITLE GRADIENT ─────────── */
.gradient-title {
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--violet-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
