/* ============================================
   DRAGON'S PATH — ADMIN PANEL STYLES
   ============================================ */

:root {
  --bg:        #141414;
  --bg2:       #1c1c1c;
  --bg3:       #242424;
  --surface:   #2e2e2e;
  --border:    #383838;
  --fire:      #FF6B2B;
  --fire-lt:   #FFB088;
  --fire-glow: rgba(255,107,43,0.15);
  --text:      #F0EDE8;
  --text-muted:#9A9490;
  --white:     #FFFFFF;
  --green:     #4ade80;
  --yellow:    #fbbf24;
  --red:       #f87171;
  --blue:      #60a5fa;
  --radius:    10px;
  --radius-lg: 16px;
  --sidebar-w: 240px;
  --topbar-h:  56px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,107,43,0.1) 0%, transparent 60%),
              linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
  z-index: 0;
}
.login-bg-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.login-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,107,43,0.03) 50px, rgba(255,107,43,0.03) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,107,43,0.03) 50px, rgba(255,107,43,0.03) 51px);
}
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 24px;
}
.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px var(--fire));
}
.logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--fire);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.login-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.login-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px 12px 42px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.input-wrap input:focus { border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255,107,43,0.12); }
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  color: var(--text-muted);
}
.login-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--red);
  align-items: center;
  gap: 8px;
}
.login-btn {
  background: var(--fire);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.login-btn:hover { background: #e55a1f; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,43,0.3); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  justify-content: center;
}
.login-hint code {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--fire);
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.back-link:hover { color: var(--fire); }

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-page {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--fire-glow); color: var(--fire); border: 1px solid rgba(255,107,43,0.2); }
.nav-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--fire);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.sidebar-link:hover { background: var(--bg3); color: var(--text); }
.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--red);
  transition: var(--transition);
  width: 100%;
  text-align: left;
}
.logout-btn:hover { background: rgba(248,113,113,0.1); }

/* MOBILE TOPBAR */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
}
.mobile-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.sidebar-toggle, .logout-btn-sm {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}
.logout-btn-sm { color: var(--red); }

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* TAB PANELS */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.page-sub { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }
.header-date { font-size: 0.85rem; color: var(--text-muted); text-align: right; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  position: relative;
}
.stat-card:hover { border-color: rgba(255,107,43,0.3); transform: translateY(-2px); }
.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-card-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.stat-card-trend {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.stat-card-trend.up { background: rgba(74,222,128,0.1); color: var(--green); }

/* ============================================
   DASHBOARD GRID
   ============================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dash-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-card-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.view-all { font-size: 0.8rem; color: var(--fire); transition: var(--transition); }
.view-all:hover { text-decoration: underline; }
.empty-msg { font-size: 0.875rem; color: var(--text-muted); text-align: center; padding: 20px 0; }

/* Program bars */
.program-bar-item { margin-bottom: 14px; }
.program-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: capitalize;
}
.program-bar-track {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.program-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fire), var(--fire-lt));
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Recent list */
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-item:last-child { border-bottom: none; }
.recent-avatar {
  width: 36px; height: 36px;
  background: var(--fire-glow);
  border: 1px solid rgba(255,107,43,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fire);
  flex-shrink: 0;
}
.recent-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.recent-program { font-size: 0.75rem; color: var(--text-muted); text-transform: capitalize; }
.recent-status { margin-left: auto; }

/* ============================================
   STATUS BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-pending  { background: rgba(251,191,36,0.15);  color: var(--yellow); border: 1px solid rgba(251,191,36,0.3); }
.badge-approved { background: rgba(74,222,128,0.12);  color: var(--green);  border: 1px solid rgba(74,222,128,0.3); }
.badge-rejected { background: rgba(248,113,113,0.12); color: var(--red);    border: 1px solid rgba(248,113,113,0.3); }

/* ============================================
   STUDENTS TABLE
   ============================================ */
.search-input {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  width: 220px;
}
.search-input:focus { border-color: var(--fire); }
.filter-select {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--fire); }
.filter-select option { background: var(--bg2); }
.btn-export {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-export:hover { border-color: var(--fire); color: var(--fire); }
.table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead tr {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg3); }
.empty-row { text-align: center; color: var(--text-muted); padding: 40px !important; }
.action-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}
.action-btn:hover { border-color: var(--fire); color: var(--fire); }

/* ============================================
   CONTENT FORMS (News / Gallery / Info)
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.form-card, .list-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-card.full-width { grid-column: 1 / -1; }
.form-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255,107,43,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-fire {
  background: var(--fire);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 4px;
}
.btn-fire:hover { background: #e55a1f; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,43,0.3); }

/* File drop zone */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.file-drop:hover { border-color: var(--fire); background: var(--fire-glow); }
.file-drop-icon { font-size: 2rem; margin-bottom: 8px; }
.file-drop p { font-size: 0.85rem; color: var(--text-muted); }

/* News list items */
.item-list { display: flex; flex-direction: column; gap: 12px; max-height: 500px; overflow-y: auto; }
.news-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition);
}
.news-item:hover { border-color: rgba(255,107,43,0.3); }
.news-item-emoji { font-size: 1.4rem; flex-shrink: 0; }
.news-item-body { flex: 1; min-width: 0; }
.news-item-title { font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-item-date { font-size: 0.75rem; color: var(--fire); }
.news-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
  flex-shrink: 0;
}
.news-item-delete:hover { color: var(--red); background: rgba(248,113,113,0.1); }

/* Admin gallery grid */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}
.admin-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg3);
}
.admin-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.admin-gallery-delete {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: var(--red);
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.admin-gallery-item:hover .admin-gallery-delete { opacity: 1; }
.admin-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 8px 8px 6px;
  font-size: 0.7rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Save toast */
.save-toast {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--green);
  margin-top: 16px;
  text-align: center;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay[style*="display:none"] { display: none !important; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.modal-body { padding: 24px; }
.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-detail-item { display: flex; flex-direction: column; gap: 3px; }
.modal-detail-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.modal-detail-value { font-size: 0.9rem; color: var(--text); text-transform: capitalize; }
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.btn-approve {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--green);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-approve:hover { background: rgba(74,222,128,0.2); }
.btn-reject {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: var(--yellow);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-reject:hover { background: rgba(251,191,36,0.2); }
.btn-delete {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: var(--red);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}
.btn-delete:hover { background: rgba(248,113,113,0.2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-topbar { display: flex; }
  .main-content { margin-left: 0; padding: 80px 16px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .admin-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; }
  .header-actions { width: 100%; }
  .search-input { width: 100%; }
  .modal-detail-grid { grid-template-columns: 1fr; }
  .modal-footer { flex-wrap: wrap; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 10px 10px; }
}