@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap");

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

:root {
  color-scheme: dark;
  font-family: "Poppins", "Segoe UI", sans-serif;
  --color-primary: #0a3d62;
  --color-secondary: #fbbf24;
  --color-accent: #06b6d4;
  --color-dark: #0b1526;
  --color-light: #f8fafc;
  --color-border: #1e293b;
  --color-card: rgba(10, 20, 36, 0.78);
  --color-card-border: rgba(251, 191, 36, 0.18);
  --color-muted: #94a3b8;
}

html {
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Exo 2", "Segoe UI", sans-serif;
}

body.admin-app {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f3f5fb;
  color: #1e293b;
  font-family: "Poppins", "Segoe UI", sans-serif;
  overflow-x: clip;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f3f5fb;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 0;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
}

.admin-brand img {
  height: 34px;
  width: auto;
}

.admin-sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
  color: #334155;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-sidebar-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
}

.admin-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-sidebar-launcher,
.admin-sidebar-backdrop {
  display: none;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-nav-link {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-nav-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #1e293b;
}

.admin-nav-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
  font-weight: 600;
}

.admin-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

.admin-footer-note {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  font-size: 0.92rem;
}

.admin-footer-note a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.admin-note a {
  color: var(--color-secondary) !important;

}

.admin-footer-note a:hover {
  text-decoration: underline;
}

.admin-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: transparent;
  color: #4338ca;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  flex: 1;
  max-width: 420px;
}

.admin-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.admin-search-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.admin-search input {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  color: #0f172a;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-icon-btn {
  border: none;
  background: #f1f5f9;
  color: #94a3b8;
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
  min-width: 36px;
  min-height: 36px;
}

.admin-icon-link {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none !important;
  color: inherit;
  padding: 0.2rem 0.4rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.admin-user:hover {
  background: rgba(99, 102, 241, 0.08);
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.admin-user-name {
  font-weight: 600;
  color: #0f172a;
}

.admin-user-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.admin-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
}

.admin-panel-ghost {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.admin-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-page-title h1 {
  margin: 0;
  font-size: 1.9rem;
  color: #0f172a;
}

.admin-page-subtitle {
  margin: 0.3rem 0 0;
  color: #64748b;
}

.admin-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-panel-note {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.admin-link {
  text-decoration: none;
  font-weight: 600;
  color: #4f46e5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.stat-card {
  color: #fff;
  padding: 1.4rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.stat-card h3 {
  margin: 0.4rem 0;
  font-size: 2rem;
}

.stat-card.blue h3 {
  font-size: 1.25rem;

}

.stat-card span {
  font-size: 1rem;
  padding: 0.8rem 0;
  opacity: 0.85;
}

.stat-card div {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.stat-card small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.stat-card svg {
  width: 120px;
  height: 40px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.stat-card.purple {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
}

.stat-card.green {
  background: linear-gradient(135deg, #059669, #22c55e);
}

.stat-card.orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.stat-card.blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

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

.admin-chart {
  display: grid;
  gap: 1rem;
}

.admin-chart-bars {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  height: 200px;
}

.admin-chart-bar {
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, #7c3aed, #4338ca);
  opacity: 0.85;
}

.admin-chart-legend {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.85rem;
}

.admin-activity {
  display: grid;
  gap: 1rem;
}

.admin-activity-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.admin-activity-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.admin-activity-title {
  font-weight: 600;
  color: #0f172a;
}

.admin-activity-meta {
  color: #94a3b8;
  font-size: 0.85rem;
}

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-quick-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 1.4rem;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-quick-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.admin-quick-card p {
  margin: 0;
  color: #64748b;
}

.admin-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}

.admin-profile-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.admin-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #4338ca);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.admin-profile-form {
  display: grid;
  gap: 1rem;
}

.admin-profile-form label {
  display: grid;
  gap: 0.5rem;
  color: #1e293b;
  font-weight: 600;
}

.admin-profile-form input {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  color: #000000;
  font-size: 0.95rem;
}

.admin-settings-grid {
  display: grid;
  gap: 1.5rem;
}

.admin-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 0.9rem;
}

.admin-settings-tab {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-settings-tab:hover {
  border-color: rgba(79, 70, 229, 0.4);
  background: rgba(99, 102, 241, 0.08);
  color: #3730a3;
}

.admin-settings-tab.active {
  border-color: rgba(79, 70, 229, 0.45);
  background: rgba(99, 102, 241, 0.16);
  color: #3730a3;
}

.admin-settings-section {
  display: grid;
  gap: 1rem;
}

.admin-settings-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.admin-settings-section label {
  display: grid;
  gap: 0.5rem;
  color: #1e293b;
  font-weight: 600;
}

.admin-settings-section input {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  color: #000000;
  font-size: 0.95rem;
}

.admin-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-toggle-ui {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  position: relative;
  transition: background 0.2s ease;
}

.admin-toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.admin-toggle input:checked+.admin-toggle-ui {
  background: rgba(99, 102, 241, 0.5);
}

.admin-toggle input:checked+.admin-toggle-ui::after {
  transform: translateX(24px);
}

.admin-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
}

.admin-alert.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.admin-alert.success {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

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

  .admin-sidebar-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .admin-sidebar-launcher img {
    width: auto;
    height: 22px;
  }

  .admin-sidebar-launcher span {
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .admin-sidebar-launcher svg {
    width: 17px;
    height: 17px;
    fill: #334155;
  }

  .admin-sidebar-launcher.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .admin-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: min(84vw, 300px);
    height: 100vh;
    padding: 1.25rem 1rem;
    gap: 1.2rem;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 0.3s ease;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.24);
  }

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

  .admin-sidebar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    padding-bottom: 0.55rem;
  }

  .admin-sidebar-toggle {
    display: inline-flex;
  }

  .admin-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .admin-sidebar-footer {
    margin-left: 0;
  }

  .admin-topbar {
    padding: 0.95rem 1rem 0.95rem 1rem;
  }
}

@media (max-width: 720px) {
  .admin-sidebar-launcher {
    max-width: 217px;
    padding: 1rem;
  }

  .admin-search {
    max-width: none;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-quick-links {
    grid-template-columns: 1fr;
  }

  .admin-profile {
    grid-template-columns: 1fr;
  }

  .admin-settings-actions {
    justify-content: stretch;
  }
}

@media (max-width: 480px) {
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

button,
a {
  font-family: "Poppins", "Segoe UI", sans-serif;
}


body.admin-body {
  margin: 0;
  padding: 0;
  background: #0b1322;
  color: #e2e8f0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Video background (matches not-found page vibe) */
.admin-media {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.admin-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 360px at 10% 10%, rgba(255, 188, 0, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(1, 20, 50, 0.55), rgba(1, 20, 50, 0.88));
}

/* Animated background grid effect */
body.admin-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(251, 191, 36, 0.04) 25%, rgba(251, 191, 36, 0.04) 26%, transparent 27%, transparent 74%, rgba(251, 191, 36, 0.04) 75%, rgba(251, 191, 36, 0.04) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(251, 191, 36, 0.04) 25%, rgba(251, 191, 36, 0.04) 26%, transparent 27%, transparent 74%, rgba(251, 191, 36, 0.04) 75%, rgba(251, 191, 36, 0.04) 76%, transparent 77%, transparent);
  background-size: 64px 64px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 1;
  animation: grid-slide 20s linear infinite;
}

@keyframes grid-slide {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

body.admin-body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(10, 61, 98, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.admin-card {
  width: min(700px, 92vw);
  margin: 8vh auto;
  padding: 3.75rem 3.2rem;
  background: rgba(1, 43, 93, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  position: relative;
  z-index: 2;
  animation: float-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-logo-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-logo-container img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.25));
}

.admin-card h1 {
  margin: 0.75rem 0 0.6rem;
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.admin-card p {
  margin: 0.4rem 0 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

.admin-form {
  display: grid;
  gap: 1.2rem;
  text-align: left;
}

.admin-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form input {
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 18, 43, 0.55);
  color: #e2e8f0;
  font-size: 1rem;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(6px);
}

.admin-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(4, 18, 43, 0.75);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.08),
    inset 0 0 8px rgba(255, 255, 255, 0.05);
}

.admin-form input::placeholder {
  color: #64748b;
}

/* Button styling handled by .btn/.pri-btn */


.admin-error {
  background: rgba(244, 63, 94, 0.15);
  color: #ff6b9d;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
}

/* Shared button styles */
.btn {
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.pri-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e1b4b;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.pri-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.pri-btn:hover .btn-icon {
  transform: translateX(3px);
}

.admin-shell {
  width: min(1200px, 95vw);
  margin: 3rem auto;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 60px rgba(10, 61, 98, 0.3),
    0 0 30px rgba(251, 191, 36, 0.1),
    inset 0 0 20px rgba(251, 191, 36, 0.02);
  position: relative;
  z-index: 1;
  animation: slide-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-shell h1 {
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.admin-btn.secondary {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: none;
}

.admin-btn.secondary:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: #fbbf24;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.admin-table-wide {
  min-width: 1900px;
}

.admin-table thead {
  background: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.admin-table th {
  color: #475569;
  font-weight: 700;
  padding: 1rem 0.8rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.admin-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 0.8rem;
  color: #1e293b;
}

.admin-message-cell {
  max-width: 380px;
  white-space: pre-wrap;
  line-height: 1.4;
  color: #334155;
}

.admin-table tbody tr {
  transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid #6366f1;
  padding-left: 0.5rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table strong {
  color: #1e293b;
  font-weight: 700;
}

.admin-table small {
  color: #64748b;
  font-size: 0.8rem;
}

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

.table-actions a,
.table-actions button {
  background: none;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.table-actions a:hover,
.table-actions button:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.table-actions .danger {
  color: #dc2626;
}

.table-actions .danger:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

@media (max-width: 768px) {
  .admin-page-title {
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-page-actions {
    width: 100%;
  }

  .admin-page-actions .btn {
    width: 100%;
  }

  .admin-panel {
    padding: 1.1rem;
  }

  .admin-table-wrap {
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0.45rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.55) rgba(148, 163, 184, 0.15);
  }

  .admin-table-wrap::after {
    content: none;
  }

  .admin-table-wrap::-webkit-scrollbar {
    height: 7px;
  }

  .admin-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.55);
    border-radius: 999px;
  }

  .admin-table-wrap::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
  }

  .admin-table:not(.admin-table-wide) {
    min-width: 640px;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.85rem 0.7rem;
  }

  .table-actions {
    gap: 0.45rem;
    flex-wrap: nowrap;
  }

  .table-actions a,
  .table-actions button {
    white-space: nowrap;
    padding: 0.35rem 0.6rem;
  }
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.admin-form-grid label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #1e293b;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #1e293b;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.admin-form-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-form-grid .full {
  grid-column: 1 / -1;
}

.admin-form-section-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.admin-form-grid>button {
  grid-column: 1 / -1;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form-grid>button:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .admin-shell {
    padding: 1.5rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .admin-logo-container img {
    height: 45px;
  }

  .admin-page-title h1 {
    font-size: 1.5rem;
  }

  .admin-content {
    padding: 2rem 1rem;
  }

  .admin-card {
    padding: 2.6rem 1.6rem;
    margin: 10vh auto 6vh;
  }

  .admin-card h1 {
    font-size: 1.7rem;
  }

  .admin-form input {
    font-size: 0.95rem;
  }
}