/* ==========================================================================
   NERO PLAY V3 - THEME & RESPONSIVE DESIGN SYSTEM
   Unificado, Moderno, Glassmorphism & Mobile Drawer Ultra-Fluido
   ========================================================================== */

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --smarters-grad: linear-gradient(135deg, #10b981 0%, #047857 50%, #065f46 100%);
  --accent-blue: #06b6d4;
  --accent-purple: #8b5cf6;

  --bg-dark: #080a0f;
  --bg-surface: #0e121b;
  --bg-surface-elevated: #131825;
  --bg-card: #111622;
  --bg-card-header: #161c2b;
  --bg-sidebar: #0b0e17;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.35);
  --border-focus: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.35);
  --warning: #f59e0b;
  --info: #3b82f6;

  --sidebar-w: 260px;
  --topbar-h: 68px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.sidebar-open {
  overflow: hidden;
}

/* Background Particles Container */
#js-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ==========================================================================
   APP LAYOUT (DESKTOP & RESPONSIVE)
   ========================================================================== */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   SIDEBAR (DESKTOP)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  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), visibility 0.3s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px 20px;
  border-bottom: 1px solid var(--border-color);
}

.logo-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: #051a14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 16px var(--primary-glow);
  user-select: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text span:first-child {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.logo-text span:last-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

/* Sidebar Navigation */
.nav-menu {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-sub);
  text-transform: uppercase;
  padding: 14px 12px 6px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-muted);
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-item .icon {
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-sub);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover .icon {
  color: var(--primary);
}

.nav-item.active {
  color: #fff;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item.active .icon {
  color: var(--primary);
}

.nav-badge-live {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--primary-light);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Sidebar Footer */
.sidebar-foot {
  padding: 16px 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sidebar-brand-copy {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.sidebar-brand-copy a {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  font-weight: 600;
}

.sidebar-brand-copy a:hover {
  text-decoration: underline;
}

/* Sidebar Close Button (Mobile Only) */
.sidebar-close-btn {
  display: none;
}

/* ==========================================================================
   MAIN CONTENT & TOPBAR (DESKTOP)
   ========================================================================== */
.main-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar Header */
.topbar {
  height: var(--topbar-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

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

#menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0;
  outline: none;
}

.topbar-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.topbar-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.85);
  flex-shrink: 0;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-email i {
  font-size: 16px;
  color: var(--primary);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 14px var(--danger-glow);
}

/* Page Content */
.content {
  flex: 1;
  padding: 24px 28px 10px 28px;
}

.footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
}

.footer strong {
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE COMPONENTS: HEADERS, PANELS, FORMS, BUTTONS
   ========================================================================== */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.page-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.page-head .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Panels / Cards */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 0.25s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-header {
  padding: 18px 24px;
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title i {
  color: var(--primary);
}

.panel-body {
  padding: 24px;
}

.panel-body.flush {
  padding: 0;
}

/* Form Fields */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
}

.input, .form-control {
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  background: #090c13 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}

.input:focus, .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

select.input, select.form-control {
  height: 44px !important;
  min-height: 44px !important;
  padding: 6px 36px 6px 14px !important;
  line-height: normal !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  cursor: pointer !important;
}

select.input option, select.form-control option {
  background: #0e131f !important;
  color: #fff !important;
  padding: 10px !important;
}

/* Buttons */
.btn-grad, .btn-smarters-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--smarters-grad);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-grad:hover, .btn-smarters-grad:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-grad.btn-sm, .btn-smarters-grad.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main) !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.btn-soft.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5 !important;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-danger-soft:hover {
  background: var(--danger);
  color: #fff !important;
  box-shadow: 0 0 14px var(--danger-glow);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status Bar Card */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
}

.status-bar .info h5 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.status-bar .info p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.status-bar .ctrl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-bar .ctrl form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.mode-badge.on {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.mode-badge.on .dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mode-badge.off {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.mode-badge.off .dot {
  background: #f59e0b;
}

/* Tables */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.premium-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-color);
  border-top: none;
}

.premium-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.premium-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.premium-table .num {
  font-weight: 800;
  color: var(--text-sub);
  font-family: monospace;
}

.premium-table .strong {
  font-weight: 700;
  color: #fff;
}

.premium-table .muted {
  color: var(--text-muted);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.empty-state i {
  font-size: 38px;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
  display: block;
}

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

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.dropzone:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.04);
}

.dz-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}

.dz-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

.dz-text small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Modals */
.pmodal-content, .cron-card {
  background: #0f131f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
  color: var(--text-main);
  overflow: hidden;
}

.pmodal-header, .cron-header {
  background: #141a2a !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 16px 20px !important;
}

.pmodal-header h4, .cron-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pmodal-body, .cron-body {
  padding: 20px !important;
}

.pmodal-footer {
  background: rgba(0, 0, 0, 0.25) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 14px 20px !important;
}

.alert-close-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
}
.alert-close-btn:hover {
  opacity: 1;
}

.cron-input-wrap {
  display: flex;
  gap: 8px;
}
.cron-input {
  flex: 1;
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 12px;
}
.cron-tip-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 16px 0;
}
.cron-tip-box h6 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cron-tip-box p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}
.cron-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   LOGIN PAGE (NETFLIX STYLE)
   ========================================================================== */
.netflix-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #151d2f 0%, #080a0f 85%);
  padding: 20px;
}

.netflix-login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 10;
}

.netflix-login-card {
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.netflix-login-card .logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.netflix-login-card .logo-container img {
  max-height: 55px;
  max-width: 180px;
  object-fit: contain;
}

.netflix-login-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 24px;
}

.netflix-login-card .form-control {
  height: 48px;
  background: #090c13 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  font-size: 14px;
}

.netflix-login-card .btn-submit {
  height: 48px;
  background: var(--primary-gradient);
  border: 0;
  color: #051a14;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: all 0.2s ease;
}

.netflix-login-card .btn-submit:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.netflix-login-footer {
  text-align: center;
  margin-top: 24px;
}

.netflix-login-footer a {
  color: var(--text-sub);
  font-size: 12px;
  text-decoration: none;
}

/* ==========================================================================
   MOBILE DRAWER & HAMBURGER MENU (ULTRA RESPONSIVO < 992px)
   ========================================================================== */

/* Overlay cinza escuro translúcido com blur */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99980;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.sidebar-overlay.active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 991.98px) {
  .app-layout {
    position: static;
    display: block;
    width: 100%;
    min-height: 100vh;
  }

  /* Hamburger Menu Button na Topbar */
  #menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: var(--radius-sm);
    color: #fff !important;
    font-size: 18px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  #menu-toggle:active, #menu-toggle:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: var(--primary-light) !important;
  }

  /* Drawer Lateral Mobile */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(85vw, 300px) !important;
    min-width: unset !important;
    max-width: 85vw !important;
    height: 100% !important;
    max-height: 100vh !important;
    background: #0b0e17 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 99999 !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease !important;
  }

  /* Quando o menu está aberto */
  .sidebar.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 14px 0 50px rgba(0, 0, 0, 0.92) !important;
  }

  /* Botão X Fechar Drawer */
  .sidebar-close-btn {
    display: inline-flex !important;
    position: absolute;
    top: 16px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
    transition: all 0.2s ease;
  }

  .sidebar-close-btn:active, .sidebar-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
  }

  /* Ajustes da Área Principal */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .topbar {
    height: 60px !important;
    padding: 0 14px !important;
  }

  .topbar-left {
    gap: 10px !important;
    min-width: 0;
  }

  .topbar-title {
    display: inline-flex !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
  }

  .content {
    padding: 16px 14px 10px 14px !important;
  }

  .panel-header {
    padding: 14px 16px !important;
  }

  .panel-body {
    padding: 16px !important;
  }

  .status-bar {
    padding: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    padding: 0 10px !important;
  }

  .topbar-left {
    gap: 8px !important;
  }

  .topbar-title {
    display: inline-flex !important;
    font-size: 11px !important;
    letter-spacing: 0.2px !important;
    gap: 6px !important;
  }

  .topbar-indicator {
    width: 7.5px !important;
    height: 7.5px !important;
  }

  .user-area {
    gap: 8px !important;
  }

  .btn-logout {
    padding: 5px 9px !important;
    font-size: 11px !important;
  }
  
  .page-head h3 {
    font-size: 17px !important;
  }
  
  .status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-bar .ctrl {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
