/* ===================================================================
   ADMIN DASHBOARD CSS - SMAN 1 NUSANTARA
   Tema: Premium Slate & Deep Navy with Emerald & Amber Accents
=================================================================== */

:root {
  --admin-bg: #090d16;
  --admin-sidebar: #0f172a;
  --admin-surface: #1e293b;
  --admin-surface-card: #151f32;
  --admin-border: #334155;
  --admin-border-focus: #3b82f6;
  --admin-text-main: #f8fafc;
  --admin-text-muted: #94a3b8;
  --admin-primary: #2563eb;
  --admin-primary-hover: #1d4ed8;
  --admin-accent: #f59e0b;
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-danger-hover: #dc2626;
  --admin-radius: 12px;
  --admin-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   LOGIN SCREEN
------------------------------------------------------------- */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at top, #1e293b 0%, #090d16 80%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--admin-surface-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 2.5rem;
  box-shadow: var(--admin-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--admin-primary), var(--admin-accent));
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
}

.login-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.login-card p {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0b1322;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.btn-primary-admin {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--admin-primary), #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-admin:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.login-demo-hint {
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fbbf24;
  text-align: left;
}

.login-demo-hint strong {
  color: #fff;
}

.login-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--admin-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.login-back-link:hover {
  color: #fff;
}

/* -------------------------------------------------------------
   ADMIN DASHBOARD LAYOUT
------------------------------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--admin-border);
}

.sidebar-header img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-brand h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
}

.sidebar-brand span {
  font-size: 0.75rem;
  color: var(--admin-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 1.25rem 0.85rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.75rem 0.75rem 0.35rem;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  color: var(--admin-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: #fff;
  background: var(--admin-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-link .icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.sidebar-link .badge {
  margin-left: auto;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.admin-user-meta h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.admin-user-meta p {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.btn-logout {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* -------------------------------------------------------------
   MAIN CONTENT AREA
------------------------------------------------------------- */
.admin-main {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.admin-topbar {
  height: 68px;
  background: var(--admin-sidebar);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--admin-border);
  color: #fff;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-visit-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-visit-site:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Content Body */
.admin-body {
  padding: 2rem;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   STAT CARDS (OVERVIEW)
------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--admin-surface-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-info h4 {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.stat-info .stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* -------------------------------------------------------------
   CARD PANELS & TABLES
------------------------------------------------------------- */
.admin-card {
  background: var(--admin-surface-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
}

.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-search {
  padding: 0.5rem 0.85rem;
  background: #0b1322;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  width: 220px;
}

.table-search:focus {
  outline: none;
  border-color: var(--admin-border-focus);
}

.btn-action-primary {
  padding: 0.55rem 1rem;
  background: var(--admin-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.btn-action-primary:hover {
  background: var(--admin-primary-hover);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.9rem 1.25rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: #cbd5e1;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table td.strong {
  color: #fff;
  font-weight: 600;
}

.table-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--admin-border);
}

.table-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.table-badge.blue { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.table-badge.amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.table-badge.emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.table-badge.purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-edit, .btn-icon-delete {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-icon-edit {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

.btn-icon-edit:hover {
  background: var(--admin-primary);
  color: #fff;
}

.btn-icon-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.btn-icon-delete:hover {
  background: var(--admin-danger);
  color: #fff;
}

/* Empty Table State */
.table-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--admin-text-muted);
}

.table-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

/* -------------------------------------------------------------
   INBOX MESSAGES VIEW
------------------------------------------------------------- */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.message-card {
  background: #0b1322;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.message-card:hover {
  border-color: #475569;
}

.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message-sender {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.message-sender-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.85rem;
}

.message-sender-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.message-sender-info p {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.message-time {
  font-size: 0.8rem;
  color: #64748b;
}

.message-subject {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

.message-body {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.message-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-msg-reply {
  padding: 0.4rem 0.85rem;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.btn-msg-reply:hover {
  background: var(--admin-primary);
  color: #fff;
}

.btn-msg-delete {
  padding: 0.4rem 0.85rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.btn-msg-delete:hover {
  background: var(--admin-danger);
  color: #fff;
}

/* -------------------------------------------------------------
   SETTINGS & BACKUP PANEL
------------------------------------------------------------- */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.settings-box {
  background: #0b1322;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.settings-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-box p {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-danger-outline {
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: var(--admin-danger);
  color: white;
}

/* -------------------------------------------------------------
   MODALS (FORM EDIT & ADD)
------------------------------------------------------------- */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.admin-modal-overlay.active,
.admin-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  background: var(--admin-surface-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.admin-modal-overlay.active .admin-modal,
.admin-modal-overlay.open .admin-modal {
  transform: translateY(0);
}

.admin-modal form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.7);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  border-radius: 4px;
}

.btn-modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #0b1322;
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

/* UPLOAD GAMBAR PREVIEW & CONTROLS */
.upload-preview-container {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem;
  background: #0b1322;
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
  margin-top: 0.35rem;
}

.upload-preview-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--admin-primary);
  background: #1e293b;
  flex-shrink: 0;
}

.upload-news-preview-img {
  width: 96px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--admin-border);
  background: #1e293b;
  flex-shrink: 0;
}

.upload-controls {
  flex: 1;
  min-width: 0;
}

.upload-input-file {
  display: none;
}

.btn-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-trigger:hover {
  background: var(--admin-primary);
  color: #fff;
}

.btn-modal-cancel {
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--admin-text-muted);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Notification Toast */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid #10b981;
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.admin-toast.error {
  border-color: var(--admin-danger);
}

/* Profil & Data Siswa Management */
.profile-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.profile-section-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section-title .icon {
  font-size: 1.2rem;
}

.btn-secondary-admin {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--admin-border);
  color: #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-admin:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
}

.mission-builder-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mission-builder-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-builder-item .mission-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-builder-item input {
  flex: 1;
}

.btn-remove-mission {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-remove-mission:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.profile-action-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .profile-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------------------------- */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .mobile-sidebar-toggle {
    display: inline-block;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-body {
    padding: 1.25rem;
  }
}

/* Styling Sub-Menu Sidebar Admin yang Sinkron dengan Web */
.sidebar-link.sub-link {
  padding-left: 2rem !important;
  font-size: 0.84rem !important;
  color: #94a3b8 !important;
}

.sidebar-link.sub-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-link.sub-link.active {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  border-left: 3px solid #38bdf8 !important;
  font-weight: 700 !important;
}
