/* ==========================================================================
   ADMIN CMS DASHBOARD STYLESHEET
   Sleek Dark/Light Dashboard Interface with Vanilla CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --admin-primary: #047857;
  --admin-primary-dark: #064e3b;
  --admin-primary-light: #10b981;
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-main: #1e293b;
  --admin-text-muted: #64748b;
  
  --admin-font: 'Plus Jakarta Sans', sans-serif;
  --admin-heading-font: 'Outfit', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--admin-font);
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  z-index: 100;
  transition: width 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: var(--admin-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.sidebar-title h2 {
  font-family: var(--admin-heading-font);
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
}

.sidebar-title span {
  font-size: 0.75rem;
  color: var(--admin-primary-light);
  font-weight: 600;
}

.sidebar-nav {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  flex-grow: 1;
}

.nav-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 0.75rem 0.75rem 0.35rem;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--admin-sidebar-hover);
  color: #ffffff;
}

.sidebar-link.active {
  background: var(--admin-primary);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-link .badge-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 95% 5%, rgba(16, 185, 129, 0.07) 0px, transparent 40%),
    radial-gradient(at 5% 95%, rgba(14, 165, 233, 0.05) 0px, transparent 40%),
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

.admin-topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  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;
}

.page-heading {
  font-family: var(--admin-heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--admin-primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text-main);
}

.user-role {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-admin-primary {
  background: var(--admin-primary);
  color: #fff;
}

.btn-admin-primary:hover {
  background: var(--admin-primary-dark);
}

.btn-admin-outline {
  background: transparent;
  border-color: var(--admin-border);
  color: var(--admin-text-main);
}

.btn-admin-outline:hover {
  background: #f1f5f9;
}

.btn-admin-danger {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-admin-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* ==========================================================================
   DASHBOARD CONTENT SECTIONS
   ========================================================================== */
.admin-body {
  padding: 2rem;
  flex-grow: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--admin-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--admin-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
}

.stat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-val {
  font-family: var(--admin-heading-font);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--admin-text-main);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-name {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

/* Data Table Panel */
.panel-card {
  background: var(--admin-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-title {
  font-family: var(--admin-heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text-main);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 220px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text-main);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN PORTAL (RICH SVG & GLASSMORPHISM)
   ========================================================================== */
.admin-modal-backdrop.login-backdrop {
  background: radial-gradient(circle at 10% 20%, #064e3b 0%, #0a1b24 45%, #020b14 100%);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 9999;
}

.login-bg-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
  top: -100px;
  left: -80px;
  animation-duration: 14s;
}

.glow-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0) 70%);
  bottom: -150px;
  right: -100px;
  animation-duration: 18s;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%);
  top: 40%;
  left: 45%;
  opacity: 0.15;
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

.login-portal-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1060px;
  margin: auto;
  animation: portalZoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes portalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-portal-card {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

/* Left Hero Column */
.login-hero-side {
  padding: 3rem 2.75rem;
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #34d399;
  width: fit-content;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--admin-heading-font);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-illustration-wrap {
  width: 100%;
  margin: 0.5rem 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.hero-svg:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 500;
}

.feat-icon {
  font-size: 0.85rem;
}

/* Right Form Column */
.login-form-side {
  padding: 3rem 2.75rem;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-crest {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255,255,255,0.4);
  position: relative;
}

.crest-letter {
  font-family: var(--admin-heading-font);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
}

.login-heading {
  font-family: var(--admin-heading-font);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.login-subheading {
  font-size: 0.84rem;
  color: #94a3b8;
}

.login-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-enhanced {
  padding-left: 2.65rem !important;
  padding-right: 2.65rem !important;
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  height: 46px;
  font-size: 0.92rem !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.2s ease !important;
}

.input-enhanced::placeholder {
  color: #64748b;
}

.input-enhanced:focus {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

.btn-toggle-pw {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-toggle-pw:hover {
  color: #34d399;
}

.btn-toggle-pw svg {
  width: 18px;
  height: 18px;
}

.login-quick-helper {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-quick-helper:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

.login-quick-helper strong {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.btn-login-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--admin-font);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.btn-login-submit .btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-login-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.login-footer-links {
  margin-top: 1.75rem;
  text-align: center;
}

.login-link-public {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.login-link-public:hover {
  color: #34d399;
}

.login-link-public svg {
  width: 14px;
  height: 14px;
}

/* Responsive adjustments for Login Portal */
@media (max-width: 900px) {
  .login-portal-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 1rem auto;
  }

  .login-hero-side {
    padding: 2rem 1.75rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-illustration-wrap {
    margin: 0.5rem 0 1rem;
  }

  .hero-svg {
    max-width: 280px;
  }

  .login-form-side {
    padding: 2rem 1.75rem;
  }
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  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-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(15px);
  transition: transform 0.2s ease;
}

.admin-modal-backdrop.active .admin-modal-box {
  transform: translateY(0);
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-body {
  padding: 1.5rem;
}

.admin-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--admin-border);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--admin-text-main);
}

.admin-form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.admin-form-control:focus {
  border-color: var(--admin-primary);
  outline: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--admin-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   DRAG & DROP MENU REORDERING
   ========================================================================== */
.drag-handle {
  cursor: grab;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  user-select: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.drag-handle:hover {
  background: var(--admin-primary);
  color: #ffffff;
}

.drag-handle:active {
  cursor: grabbing;
}

tr.draggable-row {
  cursor: grab;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

tr.draggable-row.dragging {
  opacity: 0.45;
  background-color: #ecfdf5 !important;
  border: 2px dashed var(--admin-primary) !important;
}

tr.draggable-row.drag-over-top {
  border-top: 3px solid var(--admin-primary) !important;
}

tr.draggable-row.drag-over-bottom {
  border-bottom: 3px solid var(--admin-primary) !important;
}

.sub-menu-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--admin-primary);
  font-weight: 600;
  margin-right: 0.5rem;
}

.menu-drag-instruction {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

