/* ==========================================================================
   SMM Social Suite Executive Admin Design System
   Modern White & Vibrant SaaS Aesthetic
   ========================================================================== */

:root {
  color-scheme: light;
  --adm-bg: #f8fafc;
  --adm-sidebar: #ffffff;
  --adm-card: #ffffff;
  --adm-card-hover: #ffffff;
  --adm-panel: #ffffff;
  --adm-border: #e2e8f0;
  --adm-border-hover: rgba(79, 70, 229, 0.4);
  --adm-border-active: rgba(217, 119, 6, 0.4);
  
  --adm-text-main: #0f172a;
  --adm-text-muted: #475569;
  --adm-text-faint: #64748b;
  
  --adm-gold: #d97706;
  --adm-gold-soft: rgba(245, 158, 11, 0.12);
  --adm-cyan: #0284c7;
  --adm-cyan-soft: rgba(2, 132, 199, 0.12);
  --adm-blue: #4f46e5;
  --adm-blue-soft: rgba(79, 70, 229, 0.12);
  --adm-emerald: #059669;
  --adm-emerald-soft: rgba(5, 150, 105, 0.12);
  --adm-rose: #e11d48;
  --adm-rose-soft: rgba(225, 29, 72, 0.12);
  --adm-purple: #7c3aed;
  --adm-purple-soft: rgba(124, 58, 237, 0.12);
  --adm-amber: #d97706;
  --adm-amber-soft: rgba(245, 158, 11, 0.12);

  --adm-font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --adm-font-disp: 'Plus Jakarta Sans', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --adm-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --adm-shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.12);
}

/* ==========================================================================
   Global Modern Scrollbars
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: var(--adm-blue);
  border: 1px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.admin-body {
  background: var(--adm-bg);
  color: var(--adm-text-main);
  font-family: var(--adm-font-main);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.adm-main-canvas,
.adm-content-wrap,
.adm-card-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ambient glow background with soft pastel illumination and subtle tech grid */
body.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1000px 500px at 90% -10%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(800px 400px at 10% 15%, rgba(14, 165, 233, 0.07), transparent 55%),
    radial-gradient(600px 400px at 50% 85%, rgba(245, 158, 11, 0.05), transparent 60%),
    radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  background-color: var(--adm-bg);
}

/* ==========================================================================
   Admin Sidebar Navigation
   ========================================================================== */
.adm-sidebar {
  width: 275px;
  background: var(--adm-sidebar);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px -4px rgba(15, 23, 42, 0.05);
}

.adm-brand {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--adm-border);
  background: #ffffff;
}

.adm-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.adm-brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--adm-text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.adm-brand-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--adm-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.adm-nav-container {
  flex: 1;
  padding: 16px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.adm-nav-container::-webkit-scrollbar {
  width: 5px;
}

.adm-nav-container::-webkit-scrollbar-track {
  background: transparent;
}

.adm-nav-container::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.adm-nav-container:hover::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25);
}

.adm-nav-container::-webkit-scrollbar-thumb:hover {
  background: var(--adm-blue);
}

.adm-nav-section-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--adm-text-faint);
  padding: 14px 12px 6px;
  margin-top: 4px;
}

.adm-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--adm-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.adm-nav-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-nav-link i {
  width: 20px;
  font-size: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.adm-nav-link:hover {
  color: var(--adm-text-main);
  background: #f1f5f9;
  transform: translateX(2px);
}

.adm-nav-link:hover i {
  transform: scale(1.15);
  color: var(--adm-blue);
}

.adm-nav-link.active {
  color: var(--adm-blue);
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.10), rgba(14, 165, 233, 0.04));
  border-left: 3px solid var(--adm-blue);
  font-weight: 700;
}

.adm-nav-link.active i {
  color: var(--adm-blue);
}

.adm-counter-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  line-height: 1;
}

.badge-amber-glow {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-cyan-glow {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-rose-glow {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Sidebar Footer Profile Area */
.adm-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--adm-border);
  background: #f8fafc;
}

.adm-admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.adm-avatar-box {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--adm-gold), #f59e0b);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.adm-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--adm-emerald);
  border: 2px solid #ffffff;
}

/* ==========================================================================
   Admin Main Canvas & Topbar
   ========================================================================== */
.adm-main-canvas {
  margin-left: 275px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 275px);
  max-width: 100%;
  box-sizing: border-box;
}

.adm-topbar {
  height: 74px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 2.5vw, 36px);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
  width: 100%;
}

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

.adm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--adm-text-faint);
}

.adm-breadcrumbs a {
  color: var(--adm-text-muted);
  text-decoration: none;
}

.adm-breadcrumbs a:hover {
  color: var(--adm-text-main);
}

.adm-breadcrumbs .sep {
  color: var(--adm-text-faint);
  font-size: 11px;
}

.adm-breadcrumbs .current {
  color: var(--adm-text-main);
  font-weight: 700;
}

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

.adm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #f8fafc;
  border: 1px solid var(--adm-border);
  font-size: 12px;
  color: var(--adm-text-muted);
}

.adm-status-pill .pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adm-emerald);
  box-shadow: 0 0 10px var(--adm-emerald);
}

.adm-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.adm-btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.45);
}

.adm-btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -3px rgba(245, 158, 11, 0.55);
}

.adm-btn-cyan {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px -3px rgba(2, 132, 199, 0.45);
}

.adm-btn-cyan:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -3px rgba(2, 132, 199, 0.55);
}

.adm-btn-ghost {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--adm-text-main);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.adm-btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--adm-text-main);
  transform: translateY(-1px);
}

/* ==========================================================================
   Admin Viewport Content & Containers
   ========================================================================== */
.adm-content-wrap {
  padding: clamp(16px, 2.5vw, 36px);
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.adm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  width: 100%;
}

.adm-page-title-box h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--adm-text-main);
  letter-spacing: -0.03em;
  margin: 0;
}

.adm-page-subtitle {
  color: var(--adm-text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ==========================================================================
   Elevated Metric Cards
   ========================================================================== */
.adm-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-bottom: 28px;
  width: 100%;
}

.adm-metric-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--adm-shadow);
}

.adm-metric-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

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

.adm-metric-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--adm-text-faint);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.adm-metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.adm-metric-icon-box.emerald { background: #ecfdf5; color: #059669; }
.adm-metric-icon-box.gold { background: #fffbeb; color: #d97706; }
.adm-metric-icon-box.blue { background: #eef2ff; color: #4f46e5; }
.adm-metric-icon-box.cyan { background: #f0f9ff; color: #0284c7; }
.adm-metric-icon-box.rose { background: #fff1f2; color: #e11d48; }
.adm-metric-icon-box.purple { background: #f5f3ff; color: #7c3aed; }

.adm-metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--adm-text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.adm-metric-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--adm-text-muted);
  border-top: 1px solid var(--adm-border);
  padding-top: 10px;
}

.adm-badge-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.adm-badge-trend.up { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.adm-badge-trend.neutral { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }

/* ==========================================================================
   Executive Card Panels & Tables
   ========================================================================== */
.adm-card-panel {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 26px;
  box-shadow: var(--adm-shadow);
}

.adm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--adm-border);
  flex-wrap: wrap;
  gap: 14px;
}

.adm-panel-title-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--adm-text-main);
  margin: 0;
}

.adm-panel-title-text i {
  color: var(--adm-blue);
}

/* Filter Navigation Bar */
.adm-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.adm-filter-pills-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.adm-filter-pills-group::-webkit-scrollbar {
  display: none;
}

.adm-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.adm-pill-btn:hover {
  background: #f1f5f9;
  color: var(--adm-text-main);
}

.adm-pill-btn.active {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  font-weight: 700;
}

/* Data Table Styling */
.adm-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.16) transparent;
}

.adm-table-wrap::-webkit-scrollbar {
  height: 6px;
}

.adm-table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 999px;
}

.adm-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

.adm-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--adm-blue);
}

.adm-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.adm-data-table th {
  padding: 14px 18px;
  background: #f8fafc;
  color: var(--adm-text-faint);
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}

.adm-data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.adm-data-table tbody tr:hover td {
  background: #f8fafc;
  color: var(--adm-text-main);
}

.adm-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Forms & Inputs */
.adm-form-group {
  margin-bottom: 20px;
}

.adm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-text-main);
  margin-bottom: 8px;
}

.adm-form-input, .adm-form-select, .adm-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--adm-text-main);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.adm-form-input:focus, .adm-form-select:focus, .adm-form-textarea:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.adm-form-select option {
  background: #ffffff;
  color: var(--adm-text-main);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-processing { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.badge-inprogress { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-completed { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-partial { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-canceled { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }

/* Modals */
.adm-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  place-items: center;
  padding: 20px;
}

.adm-modal-card {
  width: min(540px, 100%);
  background: #ffffff;
  border: 1px solid var(--adm-border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--adm-text-main);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Split Layout Grids */
.adm-grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.adm-grid-split-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.adm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar Backdrop for Mobile */
.adm-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
}

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

/* Responsive */
@media (min-width: 993px) {
  #admMiniToggle {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .adm-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .adm-grid-split,
  .adm-grid-split-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .adm-sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.2);
    z-index: 100;
  }
  .adm-sidebar.open {
    transform: translateX(0);
  }
  .adm-main-canvas {
    margin-left: 0;
    width: 100%;
  }
  .adm-content-wrap {
    padding: clamp(16px, 3vw, 24px) 16px;
  }
  .adm-topbar {
    padding: 0 16px;
  }
  .adm-grid-split,
  .adm-grid-split-dashboard {
    grid-template-columns: 1fr;
  }
  #admMiniToggle {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  .adm-metrics-row {
    grid-template-columns: 1fr;
  }
  .adm-grid-2 {
    grid-template-columns: 1fr;
  }
  .adm-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .adm-page-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .adm-card-panel {
    padding: 18px 15px;
    border-radius: 16px;
  }
  .adm-panel-head {
    flex-direction: column;
    align-items: stretch;
  }
  .adm-panel-head .adm-form-input,
  .adm-panel-head .adm-form-select {
    width: 100% !important;
    min-width: 0 !important;
  }
  .adm-topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 14px;
    gap: 8px;
  }
  .adm-topbar-right .adm-status-pill {
    display: none;
  }
  .adm-breadcrumbs .sep:not(:last-of-type),
  .adm-breadcrumbs a,
  .adm-breadcrumbs span:not(.current) {
    display: none;
  }
  .adm-filter-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .adm-filter-strip form {
    width: 100%;
  }
  .adm-filter-strip form .adm-form-input {
    width: 100% !important;
  }
  .adm-modal-card {
    padding: 20px 16px;
    width: min(94vw, 540px);
  }
}

@media (max-width: 420px) {
  .adm-topbar-right .adm-btn-action span {
    display: none;
  }
}
