/* ============================================================
   WIZY Desktop Controller — Professional UI v3.0
   Font: Inter (Google Fonts)
   Design: Light icon strip + light submenu + clean content
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ───── CSS Custom Properties ───── */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Brand */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;

  /* Slate palette */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Nav dark strip */
  --nav-dark:  #0f172a;
  --nav-dark2: #1e293b;
  --nav-active-bg: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --nav-active-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);

  /* Surfaces */
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --surface-3:    #f1f5f9;
  --border:       #e2e8f0;
  --border-dark:  #cbd5e1;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 12px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg:  0 10px 30px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-xl:  0 20px 48px rgba(15,23,42,0.14), 0 8px 20px rgba(15,23,42,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* ───── Reset & Base ───── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface-2);
  color: var(--slate-900);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ───── Typography ───── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--slate-900) !important;
  font-weight: 800 !important;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
p  { color: var(--slate-800); font-weight: 500; }
label { font-weight: 700 !important; color: var(--slate-900) !important; }
select, input, textarea { font-family: var(--font); font-weight: 600 !important; color: var(--slate-900) !important; }
td { font-weight: 600 !important; color: var(--slate-800) !important; }
th { font-weight: 800 !important; color: var(--slate-900) !important; }
a  { text-decoration: none; color: inherit; }

/* Content view typography */
.content-view h1 { font-size: 28px !important; font-weight: 800 !important; color: var(--slate-900) !important; }
.content-view h2 { font-size: 20px !important; font-weight: 800 !important; color: var(--slate-900) !important; }
.content-view h3 { font-size: 16px !important; font-weight: 800 !important; color: var(--slate-900) !important; }
.content-view p   { color: var(--slate-500) !important; font-weight: 600 !important; }
.content-view span { font-weight: 600; }
.content-view label { font-weight: 700 !important; color: var(--slate-900) !important; font-size: 13px; }

/* Dark modal overrides */
#remoteViewModal h1, #remoteViewModal h2, #remoteViewModal h3,
#liveStreamModal h1, #liveStreamModal h2, #liveStreamModal h3 { color: #fff !important; font-weight: 600 !important; }
#remoteViewModal p, #liveStreamModal p { color: #fff !important; font-weight: 600 !important; }
#remoteViewModal .stream-name, #liveStreamModal .stream-name { color: #fff !important; font-weight: 700 !important; }
#multi-view-live-content .mvl-cell-name, .mvl-cell-name { color: #fff !important; font-weight: 700 !important; }
#multi-view-live-content .mvl-cell-header div, .mvl-cell-header div { color: #fff !important; }
#mvl-zoom-modal h1, #mvl-zoom-modal h2, #mvl-zoom-modal h3 { color: #fff !important; font-weight: 700 !important; }
#mvl-zoom-title { color: #fff !important; font-weight: 700 !important; }
#mvl-zoom-subtitle { color: #94a3b8 !important; }

/* ───── Utility ───── */
.hidden { display: none !important; }

/* ───── Animations ───── */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown  { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn    { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
@keyframes pulse-dot  { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes glow-blue  { 0%,100% { box-shadow: 0 0 12px rgba(99,102,241,0.3); } 50% { box-shadow: 0 0 24px rgba(99,102,241,0.6); } }
@keyframes shimmer    { 0%  { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes toastIn    { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes modalIn    { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes float      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
@keyframes blob-move  { 0%,100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%; }
                         33%     { border-radius: 40% 60% 30% 70% / 70% 40% 60% 30%; }
                         66%     { border-radius: 70% 30% 60% 40% / 30% 70% 40% 60%; } }
@keyframes fadeInSubmenu { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }
@keyframes cardIn     { from { opacity:0; transform:translateY(22px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes clockBlink { 0%,49% { opacity:1; } 50%,99% { opacity:0.08; } 100% { opacity:1; } }
@keyframes clockGlow  { 0%,100% { text-shadow:0 0 6px rgba(255,32,32,0.9),0 0 16px rgba(255,32,32,0.5); } 50% { text-shadow:0 0 10px rgba(255,32,32,1),0 0 28px rgba(255,32,32,0.75),0 0 48px rgba(255,32,32,0.3); } }

/* ───── Loading Screen ───── */
.loading-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--nav-dark) 0%, #1e293b 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999; gap: 24px;
}
.loading-screen p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  animation: fadeIn 0.6s ease both;
}
.loader {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

/* ───── Scrollbar ───── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 10px; transition: background var(--dur-base); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ───── Buttons ───── */
button { cursor: pointer; font-family: var(--font); transition: all var(--dur-base) var(--ease); }
button:hover  { transform: translateY(-1px); }
button:active { transform: translateY(0) scale(0.98); }

/* ───── Form Inputs ───── */
input, select, textarea { font-family: var(--font); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-500) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

/* ───── Tables ───── */
table { border-collapse: collapse; width: 100%; font-family: var(--font); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-3); font-weight: 800; color: var(--slate-900); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
td { font-weight: 600; color: var(--slate-800); font-size: 13.5px; }
tr:hover { background: #eff6ff; }

/* ───── Sections ───── */
.login-section  { display: flex; width: 100vw; height: 100vh; }
.app-container  { display: flex; width: 100vw; height: 100vh; overflow: hidden; }
.role-selection { position: fixed; inset: 0; background: white; display: flex; align-items: center; justify-content: center; }

/* ───── Image Modal ───── */
.image-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center;
  z-index: 10000; padding: 20px;
  opacity: 0; transition: opacity 0.3s ease;
}
.image-modal.active { display: flex; opacity: 1; }
.image-modal-content {
  background: white; border-radius: 20px;
  max-width: 95vw; max-height: 95vh;
  overflow: hidden; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  animation: modalIn 0.3s var(--ease);
}
.image-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--nav-dark2) 100%);
  color: white;
}
.image-modal-header h2 { font-size: 17px !important; font-weight: 700 !important; color: white !important; margin: 0; }
.image-modal-close {
  background: rgba(255,255,255,0.12); border: none; color: white;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 17px; display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-base);
}
.image-modal-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.1) rotate(90deg); }
.image-modal-image { max-width: 100%; max-height: 70vh; object-fit: contain; background: #0a0f1e; display: block; }
.image-modal-info {
  padding: 16px 24px; background: var(--surface-2);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 12px; border-top: 1px solid var(--border);
}
.image-info-item { display: flex; flex-direction: column; gap: 4px; }
.image-info-label { font-size: 11px; font-weight: 700; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.6px; }
.image-info-value { font-size: 13px; font-weight: 600; color: var(--slate-800); }

/* ───── Toast Notifications ───── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 10001;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  padding: 14px 22px; border-radius: var(--radius-md);
  color: white; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s var(--ease);
  pointer-events: all; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 360px; line-height: 1.5;
}
.toast.success { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.toast.error   { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.toast.info    { background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%); }

/* ════════════════════════════════════
   TWO-LEVEL NAVIGATION SYSTEM
   ════════════════════════════════════ */

.nav-wrapper {
  display: flex; height: 100vh;
  position: relative; z-index: 100;
  transition: all 0.3s var(--ease);
}

/* ── Icon Strip (light) ── */
.nav-icon-strip {
  width: 72px; min-width: 72px; height: 100vh;
  background: #ffffff;
  display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid var(--border);
  z-index: 102;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  padding-bottom: 8px;
  box-shadow: 2px 0 8px rgba(15,23,42,0.06);
}
.nav-icon-strip::-webkit-scrollbar { display: none; }

/* ── Logo ── */
.nav-logo {
  padding: 16px 0 14px; display: flex;
  flex-direction: column; align-items: center; gap: 5px;
  border-bottom: 1px solid var(--border);
  width: 100%; margin-bottom: 10px;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
  animation: glow-blue 3s ease-in-out infinite;
}
.nav-logo-text {
  font-size: 9px; font-weight: 800; color: var(--slate-600);
  letter-spacing: 2px; text-align: center;
}

/* ── Module Buttons ── */
.nav-module-btn {
  width: 52px; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border-radius: 14px; cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  color: var(--slate-600);
  margin: 2px 0; border: none; background: transparent;
  position: relative; -webkit-user-select: none; user-select: none;
}
.nav-module-btn:hover {
  background: var(--slate-100);
  color: var(--slate-800);
  transform: scale(1.05);
}
.nav-module-btn.active {
  background: var(--nav-active-bg);
  color: white;
  box-shadow: var(--nav-active-shadow);
}
.nav-module-btn svg { width: 20px; height: 20px; }
.nav-module-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.4px;
  text-align: center; line-height: 1; max-width: 58px;
  overflow: hidden; white-space: nowrap;
  color: var(--slate-600);
}

/* ── Dashboard Stat Cards ── */
.dash-stat-card {
  animation: cardIn 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Digital Clock Colon ── */
.clock-colon {
  animation: clockBlink 1s step-start infinite;
  display: inline-block;
}

/* ── Submenu Panel ── */
.nav-submenu-panel {
  width: 232px; min-width: 232px; height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width 0.3s var(--ease), min-width 0.3s var(--ease), opacity 0.2s ease;
  overflow: hidden; z-index: 101;
  box-shadow: 2px 0 12px rgba(15,23,42,0.05);
}
.nav-submenu-panel.collapsed { width: 0; min-width: 0; border-right: none; opacity: 0; }

/* ── Submenu Header ── */
.nav-submenu-header {
  padding: 20px 18px 15px; border-bottom: 1px solid var(--border);
  min-height: 70px; background: #ffffff;
}
.nav-submenu-title {
  font-size: 11px; font-weight: 800; color: var(--slate-900);
  text-transform: uppercase; letter-spacing: 2px; white-space: nowrap;
}
.nav-submenu-subtitle {
  font-size: 12px; color: var(--slate-400); margin-top: 4px;
  font-weight: 500; white-space: nowrap;
}

/* ── Submenu Items ── */
.nav-submenu-items {
  flex: 1; overflow-y: auto; padding: 10px 8px;
  scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent;
}
.nav-submenu-items::-webkit-scrollbar { width: 3px; }
.nav-submenu-items::-webkit-scrollbar-track { background: transparent; }
.nav-submenu-items::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 4px; }

.nav-module-group { animation: fadeInSubmenu 0.22s ease; }

.nav-submenu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; color: var(--slate-700);
  text-decoration: none; cursor: pointer;
  border-radius: 10px; transition: all var(--dur-base) var(--ease);
  margin: 2px 0; font-size: 13px; font-weight: 700;
  white-space: nowrap; border-left: 3px solid transparent;
  position: relative; overflow: hidden;
}
.nav-submenu-item::after {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-500); opacity: 0;
  transition: opacity var(--dur-base);
  border-radius: 10px; pointer-events: none;
}
.nav-submenu-item:hover { background: var(--slate-100); color: var(--slate-900); }
.nav-submenu-item.active {
  background: var(--brand-50);
  color: var(--brand-700);
  border-left-color: var(--brand-500);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(37,99,235,0.1);
}
.nav-submenu-item svg { width: 18px; height: 18px; min-width: 18px; opacity: 0.7; }
.nav-submenu-item.active svg { opacity: 1; }

/* ── Toggle Button ── */
.nav-toggle-btn {
  width: 52px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; cursor: pointer; transition: all var(--dur-base) var(--ease);
  color: var(--slate-500); margin-top: auto; margin-bottom: 10px;
  border: none; background: transparent;
}
.nav-toggle-btn:hover { background: var(--slate-100); color: var(--slate-700); }

/* ── Logout ── */
.nav-logout-section { padding: 10px 8px; border-top: 1px solid var(--border); background: #fff; }
.nav-logout-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; color: #dc2626;
  text-decoration: none; cursor: pointer; border-radius: 10px;
  transition: all var(--dur-base); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.nav-logout-btn:hover { background: #fef2f2; }

/* ── Nav collapsed ── */
.nav-wrapper.nav-hidden .nav-icon-strip { width: 0; min-width: 0; overflow: hidden; border-right: none; padding: 0; }
.nav-wrapper.nav-hidden .nav-submenu-panel { width: 0; min-width: 0; overflow: hidden; border-right: none; opacity: 0; }

/* ── Float Show Button ── */
.nav-show-btn {
  position: fixed; top: 16px; left: 16px; width: 44px; height: 44px;
  background: var(--nav-active-bg);
  border-radius: 12px; display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 200; border: none; color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transition: all var(--dur-base);
}
.nav-show-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(99,102,241,0.55); }
.nav-show-btn.visible { display: flex; }

/* ════════════════════════════════════
   MAIN CONTENT — PROFESSIONAL HEADER
   ════════════════════════════════════ */

/* Stat card "active" pulse on number */
.stat-pulse { animation: pulse-dot 2s ease-in-out infinite; }

/* Online indicator dot */
.online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; display: inline-block;
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ════════════════════════════════════
   DANGER ZONE TOGGLE SWITCH
   ════════════════════════════════════ */
.dz-toggle-label { position: relative; display: inline-block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dz-toggle-input { opacity: 0; width: 0; height: 0; position: absolute; }
.dz-toggle-input:checked + .dz-toggle-track { background: #dc2626 !important; }
.dz-toggle-input:checked + .dz-toggle-track + .dz-slider-dot { transform: translateX(24px); }
#dz-toggle-full_restriction:checked + .dz-toggle-track + .dz-slider-dot { transform: translateX(28px); }
.dz-toggle-track { pointer-events: none; }
.dz-slider-dot   { pointer-events: none; }

/* ════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════ */
.login-section { display: flex; width: 100vw; height: 100vh; overflow: hidden; }

/* Left branding panel */
.login-sidebar {
  width: 46%; min-width: 380px; height: 100vh;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 40%, #312e81 80%, #4338ca 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 8px 0 40px rgba(0,0,0,0.35);
}
@media (max-width: 900px) { .login-sidebar { display: none !important; } }

/* Animated blobs behind login sidebar */
.login-sidebar::before {
  content: ''; position: absolute; top: -20%; right: -15%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  border-radius: 50%; animation: float 9s ease-in-out infinite;
}
.login-sidebar::after {
  content: ''; position: absolute; bottom: -25%; left: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  border-radius: 50%; animation: float 11s ease-in-out infinite reverse;
}

/* Right form panel */
.login-content {
  flex: 1; height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 40px; background: #ffffff;
}

/* ════════════════════════════════════
   PROFESSIONAL CARD CLASSES
   ════════════════════════════════════ */
.pro-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.pro-card:hover { box-shadow: var(--shadow-md); }

.pro-card-hover:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px) !important;
}

/* Badge styles */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* Status dot inline */
.status-online  { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; animation: pulse-ring 2s infinite; }
.status-offline { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; }
.status-busy    { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; display: inline-block; animation: pulse-dot 1.5s infinite; }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-wrapper { position: fixed; left: 0; top: 0; z-index: 1000; }
  .main-content { margin-left: 0 !important; width: 100% !important; }
  .content-view { padding: 20px !important; }
}

@media (max-width: 768px) {
  .nav-wrapper { position: fixed; left: -302px; top: 0; z-index: 1000; transition: left 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
  .nav-wrapper.mobile-open { left: 0; }
  .nav-icon-strip { width: 60px; min-width: 60px; }
  .nav-module-btn { width: 46px; height: 46px; }
  .nav-module-btn svg { width: 18px; height: 18px; }
  .nav-module-label { font-size: 8px; }
  .nav-submenu-panel { width: 180px; min-width: 180px; }
  .nav-submenu-item { padding: 10px 12px; font-size: 13px; }
  .main-content { margin-left: 0 !important; width: 100vw !important; padding: 0 !important; }
  .nav-show-btn { display: flex !important; top: 10px; left: 10px; width: 40px; height: 40px; z-index: 1001; }
  .main-content .content-view { padding: 16px !important; }
  .content-view h1 { font-size: 22px !important; margin-top: 10px; }
  .content-view h2 { font-size: 16px !important; }
  .content-view p  { font-size: 13px !important; }
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  th, td { padding: 8px 12px; font-size: 12px; }
  input, select, textarea { font-size: 16px !important; padding: 12px !important; }
  button { padding: 12px 20px; font-size: 14px; }
  .image-modal-content { width: 100%; margin: 10px; border-radius: 0; }
  .image-modal-info { grid-template-columns: 1fr 1fr; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { width: 100%; }
  .login-sidebar { display: none !important; }
  .login-content { padding: 20px !important; height: auto !important; min-height: 100vh; }
}

@media (max-width: 480px) {
  .nav-wrapper { left: -240px; }
  .nav-icon-strip { width: 52px; min-width: 52px; }
  .nav-submenu-panel { width: 160px; min-width: 160px; }
  .main-content { padding: 0 12px 12px !important; }
  .content-view h1 { font-size: 18px !important; }
  button { padding: 10px 16px; font-size: 13px; }
  th, td { padding: 6px 8px; font-size: 11px; }
  .login-content div[style*="max-width: 380px"] { max-width: 100% !important; padding: 0 !important; }
  .login-content img[alt="WIZY"] { width: 200px !important; }
  .login-content div[style*="padding: 45px 35px"] { padding: 24px 20px !important; }
}
