/* ============================================================
   Dr. Ali Raza Clinics — Admin Panel Styles
   Premium Dark Glassmorphism Theme
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core Colors */
  --admin-bg: #0a0f1a;
  --admin-bg-secondary: #111827;
  --admin-sidebar: #0d1321;
  --admin-card: rgba(17, 24, 39, 0.85);
  --admin-card-border: rgba(255, 255, 255, 0.06);
  --admin-card-hover: rgba(17, 24, 39, 0.95);

  /* Accent Colors */
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.15);
  --red: #dc2626;
  --red-light: #ef4444;
  --red-glow: rgba(220, 38, 38, 0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.15);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #1e293b;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow-teal: 0 0 20px rgba(13, 148, 136, 0.3);

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--admin-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--teal); }

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--admin-bg); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }


/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.login-bg-pattern {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(220, 38, 38, 0.04) 0%, transparent 50%);
  z-index: 0;
}

.login-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  animation: floatGlow 8s ease-in-out infinite;
}

.login-bg-glow-1 {
  width: 500px; height: 500px;
  background: rgba(13, 148, 136, 0.12);
  top: -100px; left: -100px;
}

.login-bg-glow-2 {
  width: 400px; height: 400px;
  background: rgba(59, 130, 246, 0.08);
  bottom: -80px; right: -80px;
  animation-delay: 4s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

.login-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 960px;
  max-width: 95vw;
  min-height: 580px;
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}

.login-branding {
  background: linear-gradient(145deg, #062b2e 0%, #0a3d42 40%, #05272a 100%);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
}

.login-branding-content {
  position: relative;
  z-index: 1;
}

.login-brand-logo img {
  height: 55px;
  filter: brightness(1.1);
  margin-bottom: 28px;
}

.login-branding h1 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.login-branding p {
  font-size: 14px;
  color: #8ec5c9;
  line-height: 1.7;
  margin-bottom: 28px;
}

.login-brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #b5dce0;
}

.login-feature svg {
  color: var(--teal-light);
  flex-shrink: 0;
}

.login-form-panel {
  padding: 48px 40px;
  display: flex;
  align-items: center;
}

.login-form-inner {
  width: 100%;
}

.login-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-glow);
  border: 1px solid rgba(13, 148, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--teal-light);
}

.login-form-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-form-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.input-with-icon input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.input-with-icon input:focus {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.input-with-icon input:focus + svg,
.input-with-icon input:focus ~ svg {
  color: var(--teal-light);
}

.input-with-icon input::placeholder {
  color: var(--text-muted);
}

.login-error {
  background: var(--red-glow);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--red-light);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-error::before {
  content: '⚠';
  font-size: 15px;
}

.login-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  box-shadow: var(--shadow-glow-teal);
  transform: translateY(-1px);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-footer-info {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════ */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ──────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-card-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand img {
  height: 36px;
  filter: brightness(1.1);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-text strong {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-brand-text span {
  font-size: 10.5px;
  color: var(--teal-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 14px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  margin-bottom: 2px;
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--teal-glow);
  color: var(--teal-light);
  border-color: rgba(13, 148, 136, 0.15);
  font-weight: 700;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link.active svg {
  opacity: 1;
}

.sidebar-link .link-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  background: var(--red);
  color: #fff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--admin-card-border);
}

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

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-user-info strong {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-logout-btn {
  width: 100%;
  padding: 9px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-md);
  color: var(--red-light);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-logout-btn:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}


/* ─── Main Content Area ────────────────────────────────────── */
.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  min-height: 76px;
  padding: 16px 32px;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-title-text h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.topbar-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Center Action Buttons (View Site & Maintenance Mode) ─── */
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 769px) {
  .topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot.pulse-teal {
  background: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-light);
  animation: pulseDotGlow 2s infinite;
}

@keyframes pulseDotGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(20, 184, 166, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.topbar-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.topbar-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.topbar-btn.btn-maintenance {
  background: var(--amber-glow);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--amber);
}

.topbar-btn.btn-maintenance:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.topbar-btn.btn-maintenance.active {
  background: var(--amber);
  color: #000;
  font-weight: 800;
  border-color: var(--amber);
}

.admin-content {
  padding: 28px;
  flex: 1;
}


/* ═══════════════════════════════════════════════════════════
   DASHBOARD CARDS & STATS
   ═══════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.teal { background: var(--teal-glow); color: var(--teal-light); }
.stat-icon.red { background: var(--red-glow); color: var(--red-light); }
.stat-icon.amber { background: var(--amber-glow); color: var(--amber); }
.stat-icon.blue { background: var(--blue-glow); color: var(--blue); }
.stat-icon.green { background: var(--green-glow); color: var(--green); }

.stat-info h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   ADMIN SECTIONS (Content Panels)
   ═══════════════════════════════════════════════════════════ */

.admin-section {
  display: none;
  animation: fadeInSection 0.35s ease;
}

.admin-section.active {
  display: block;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

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


/* ─── Content Cards ────────────────────────────────────────── */
.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.admin-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-card-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-badge.teal { background: var(--teal-glow); color: var(--teal-light); }
.card-badge.red { background: var(--red-glow); color: var(--red-light); }
.card-badge.amber { background: var(--amber-glow); color: var(--amber); }


/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS (Dashboard Forms)
   ═══════════════════════════════════════════════════════════ */

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form-group label .required {
  color: var(--red);
  margin-left: 2px;
}

.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.03);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

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

.admin-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.admin-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' fill='%2394a3b8' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.admin-select option {
  background: var(--admin-bg-secondary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}


/* ─── Toggle Switch ────────────────────────────────────────── */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--glass-border);
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--teal);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.admin-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
}

.admin-btn-primary:hover {
  box-shadow: var(--shadow-glow-teal);
  transform: translateY(-1px);
}

.admin-btn-secondary {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-secondary);
}

.admin-btn-secondary:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.admin-btn-danger {
  background: var(--red-glow);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--red-light);
}

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

.admin-btn-success {
  background: var(--green-glow);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.admin-btn-success:hover {
  background: var(--green);
  color: #fff;
}

.admin-btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.admin-btn-lg {
  padding: 13px 28px;
  font-size: 14.5px;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   TABLE STYLES
   ═══════════════════════════════════════════════════════════ */

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--admin-card-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-table td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--admin-card-border);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background: var(--glass-hover);
}

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

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-product-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--glass-bg);
}

.table-product-name {
  font-weight: 600;
  color: var(--text-primary);
}

.table-product-category {
  font-size: 11px;
  color: var(--text-muted);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge.active {
  background: var(--green-glow);
  color: var(--green);
}

.status-badge.inactive {
  background: var(--red-glow);
  color: var(--red-light);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}


/* ═══════════════════════════════════════════════════════════
   ITEM CARDS (Slider, Services, Announcements)
   ═══════════════════════════════════════════════════════════ */

.item-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  transition: var(--transition);
  position: relative;
}

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

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.item-card-header h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.item-card-actions {
  display: flex;
  gap: 6px;
}

.item-card-actions button {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-card-actions button:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.item-card-actions button.delete-btn:hover {
  background: var(--red-glow);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--red-light);
}

.item-card .form-row {
  gap: 14px;
}


/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
}

.toast.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

.toast.error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--red-light);
}

.toast.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
}

.toast.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.toast.hiding {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(40px) scale(0.9); }
}


/* ═══════════════════════════════════════════════════════════
   MODALS (Edit / Confirm)
   ═══════════════════════════════════════════════════════════ */

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-modal {
  background: var(--admin-bg-secondary);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.admin-modal-close:hover {
  background: var(--red-glow);
  color: var(--red-light);
  border-color: rgba(220, 38, 38, 0.3);
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-card-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ═══════════════════════════════════════════════════════════
   MAINTENANCE MODE BANNER
   ═══════════════════════════════════════════════════════════ */

.maintenance-active-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: pulseBorder 2s ease-in-out infinite;
}

.maintenance-active-banner .maint-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
  font-size: 20px;
}

.maintenance-active-banner .maint-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 2px;
}

.maintenance-active-banner .maint-text p {
  font-size: 12.5px;
  color: var(--text-muted);
}

@keyframes pulseBorder {
  0%, 100% { border-color: rgba(245, 158, 11, 0.25); }
  50% { border-color: rgba(245, 158, 11, 0.5); }
}


/* ═══════════════════════════════════════════════════════════
   IMAGE PREVIEW
   ═══════════════════════════════════════════════════════════ */

.image-preview-wrap {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  border: 2px dashed var(--glass-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  margin-top: 8px;
  transition: var(--transition);
}

.image-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-wrap .placeholder-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.image-preview-wrap:hover {
  border-color: var(--teal);
}


/* ═══════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════ */

.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
  gap: 10px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  margin-bottom: 16px;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE BASE COMPONENTS (Hidden on desktop)
   ═══════════════════════════════════════════════════════════ */

.mobile-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-sidebar-toggle:hover,
.mobile-sidebar-toggle:active {
  background: var(--glass-hover);
  border-color: var(--teal);
  color: var(--teal-light);
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.sidebar-close-btn:hover,
.sidebar-close-btn:active {
  background: var(--red-glow);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--red-light);
}

.mobile-bottom-bar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (Tablets & Mobile Smartphones)
   ═══════════════════════════════════════════════════════════ */

/* ─── Tablet Breakpoint (<= 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Small Tablet / Medium Screen (<= 900px) ──────────────── */
@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .login-branding {
    display: none;
  }
  .login-form-panel {
    padding: 36px 28px;
  }
}

/* ─── Mobile Viewport (<= 768px) ───────────────────────────── */
@media (max-width: 768px) {
  /* Layout & Sidebar Drawer */
  .admin-layout {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    width: min(320px, 86vw);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    box-shadow: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85);
  }

  .sidebar-close-btn {
    display: flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9990;
    display: none;
    animation: modalFadeIn 0.2s ease;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .admin-main {
    margin-left: 0 !important;
    width: 100%;
    min-height: 100vh;
  }

  /* Content area padded for bottom bar */
  .admin-content {
    padding: 16px 14px 95px 14px !important;
  }

  /* Top Bar (Mobile Viewport) */
  .admin-topbar {
    min-height: 72px;
    padding: 14px 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .mobile-sidebar-toggle {
    display: inline-flex !important;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topbar-title-text h2 {
    font-size: 17px;
    font-weight: 800;
  }

  .topbar-breadcrumb {
    display: none;
  }

  /* Centered Action Buttons on Mobile */
  .topbar-center {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .topbar-center .topbar-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius-md);
  }

  .topbar-right {
    order: 2;
  }

  .topbar-admin-badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Section Header */
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-header > div h3 {
    font-size: 19px;
  }

  .section-header > div p {
    font-size: 12.5px;
  }

  .section-header .admin-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13.5px;
  }

  /* Cards */
  .admin-card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .admin-card-header h4 {
    font-size: 15px;
  }

  /* Forms & Touch Targets */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .admin-input,
  .admin-textarea,
  .admin-select {
    font-size: 16px !important; /* Prevents unwanted iOS auto-zoom on input focus */
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }

  .admin-textarea {
    min-height: 80px;
  }

  .toggle-switch {
    width: 52px;
    height: 30px;
  }

  .toggle-slider::before {
    width: 24px;
    height: 24px;
  }

  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
  }

  /* Item Cards (Slider, Services, Content, Announcements) */
  .item-card {
    padding: 16px 12px;
    margin-bottom: 12px;
  }

  .item-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .item-card-title {
    font-size: 14px;
  }

  .item-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .item-card-actions button,
  .item-card-actions .admin-btn {
    flex: 1;
    min-height: 38px;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .admin-table td .item-card-actions {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    gap: 6px;
  }

  .admin-table td .item-card-actions button {
    flex: none;
    min-height: 32px;
    padding: 6px 12px;
    white-space: nowrap;
  }

  /* Tables — Horizontal Scrollable Container */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .admin-table {
    min-width: 580px;
    font-size: 12.5px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }

  .table-product-img {
    width: 38px;
    height: 38px;
  }

  /* Modals */
  .admin-modal-overlay {
    padding: 12px;
    align-items: flex-end; /* Sheet style on mobile */
  }

  .admin-modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  .admin-modal-header {
    padding: 16px 18px;
  }

  .admin-modal-body {
    padding: 18px 16px;
    max-height: calc(92vh - 140px);
    overflow-y: auto;
  }

  .admin-modal-footer {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-modal-footer .admin-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  /* Toast Notifications on Mobile */
  .toast-container {
    top: 10px;
    left: 12px;
    right: 12px;
    align-items: center;
  }

  .toast {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    padding: 12px 14px;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(13, 19, 33, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--admin-card-border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px 2px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
  }

  .bottom-nav-item:active,
  .bottom-nav-item.active {
    color: var(--teal-light);
  }

  .bottom-nav-item.active svg {
    transform: scale(1.12);
    stroke-width: 2.3;
  }

  .bottom-nav-item.bottom-nav-menu {
    color: var(--text-secondary);
  }
}

/* ─── Small Smartphones (<= 480px) ─────────────────────────── */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar-btn .btn-text-label {
    display: none;
  }

  .topbar-btn {
    padding: 8px 10px;
  }

  .login-container {
    max-width: calc(100vw - 20px);
    border-radius: var(--radius-lg);
  }

  .login-form-panel {
    padding: 24px 16px;
  }

  .login-form-header h2 {
    font-size: 20px;
  }
}


/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

.text-teal { color: var(--teal-light); }
.text-red { color: var(--red-light); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--green); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.hidden { display: none !important; }
.w-full { width: 100%; }


/* ═══════════════════════════════════════════════════════════
   UNIVERSAL IMAGE UPLOADER & PRODUCT GALLERY STYLES
   ═══════════════════════════════════════════════════════════ */

/* Topbar Upload Media Button */
.topbar-btn.btn-upload-media {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--teal-light);
}

.topbar-btn.btn-upload-media:hover {
  background: rgba(13, 148, 136, 0.28);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.35);
}

/* Inline Uploader Row (Input + Upload Button) */
.admin-input-upload-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.admin-input-upload-row .admin-input {
  flex: 1;
}

.admin-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(10, 61, 66, 0.4) 100%);
  border: 1.5px solid rgba(13, 148, 136, 0.4);
  border-radius: var(--radius-md);
  color: var(--teal-light);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.admin-btn-upload:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.4) 0%, rgba(10, 61, 66, 0.6) 100%);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.admin-btn-upload:active {
  transform: translateY(0);
}

/* Uploader Spinner & Progress */
.uploader-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px dashed rgba(13, 148, 136, 0.3);
  border-radius: var(--radius-md);
}

.uploader-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(13, 148, 136, 0.25);
  border-top-color: var(--teal-light);
  border-radius: 50%;
  animation: spinUploader 0.7s linear infinite;
}

@keyframes spinUploader {
  to { transform: rotate(360deg); }
}

.uploader-status-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-light);
}

/* Preview Image Container with Remove Button */
.preview-img-container {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--admin-card-border);
  box-shadow: var(--shadow-sm);
}

.preview-img-container img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  object-fit: cover;
}

.preview-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.85);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.preview-remove-btn:hover {
  background: var(--red);
  transform: scale(1.15);
}

/* Quick Media Dropzone Box */
.upload-dropzone-box {
  border: 2px dashed rgba(13, 148, 136, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: rgba(13, 148, 136, 0.04);
  cursor: pointer;
  transition: var(--transition);
}

.upload-dropzone-box:hover,
.upload-dropzone-box.drag-active {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  transform: scale(1.01);
}

.dropzone-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--teal-glow);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: var(--transition);
}

.upload-dropzone-box:hover .dropzone-icon-circle {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
}

.upload-progress-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT 5-IMAGE GALLERY MANAGER
   ═══════════════════════════════════════════════════════════ */
.product-gallery-manager {
  background: rgba(10, 18, 30, 0.55);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.product-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.product-slot-card {
  position: relative;
  background: var(--admin-card);
  border: 1.5px solid var(--admin-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-slot-card.is-primary {
  border-color: rgba(13, 148, 136, 0.6);
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.2);
}

.product-slot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.slot-header-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.slot-header-badge.primary-badge {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.5);
}

.slot-header-badge.gallery-badge {
  background: rgba(0, 0, 0, 0.65);
  color: #e2e8f0;
}

.slot-thumb-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #060b13;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-slot-card:hover .slot-thumb-container img {
  transform: scale(1.05);
}

.slot-empty-state {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--text-muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.slot-empty-state:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal-light);
}

.slot-empty-state svg {
  width: 26px;
  height: 26px;
  opacity: 0.7;
}

.slot-empty-state span {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.slot-empty-state small {
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Slot Actions Toolbar */
.slot-actions-bar {
  padding: 8px 6px;
  background: rgba(10, 15, 26, 0.85);
  border-top: 1px solid var(--admin-card-border);
  display: flex;
  gap: 4px;
  justify-content: center;
}

.slot-action-btn {
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  flex: 1;
}

.slot-action-btn:hover {
  background: var(--glass-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.slot-action-btn.btn-make-cover {
  color: var(--teal-light);
  border-color: rgba(13, 148, 136, 0.3);
}

.slot-action-btn.btn-make-cover:hover {
  background: var(--teal-glow);
  color: #fff;
}

.slot-action-btn.btn-remove-slot {
  color: var(--red-light);
  border-color: rgba(220, 38, 38, 0.25);
  flex: 0 0 26px;
  padding: 5px;
}

.slot-action-btn.btn-remove-slot:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fff;
}

/* Slot Collapsible URL */
.slot-url-details {
  padding: 6px 8px;
  background: rgba(5, 8, 15, 0.95);
  border-top: 1px dashed var(--admin-card-border);
}

.slot-url-details input {
  font-size: 10px;
  padding: 4px 6px;
  width: 100%;
  color: var(--text-muted);
}

/* Responsive Breakpoints for 5-slot grid */
@media (max-width: 992px) {
  .product-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .product-slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-slot-card.is-primary {
    grid-column: 1 / -1;
  }
}

