/* ==========================================================================
   SISGER DBM 1 / GOA - CBMERJ
   Design System Tático & Aeronáutico
   ========================================================================== */

:root {
  /* Cores Principais - Aviação Militar de Resgate */
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(16, 26, 48, 0.75);
  --bg-card-hover: rgba(22, 36, 68, 0.85);
  --bg-glass: rgba(13, 22, 42, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(249, 115, 22, 0.4);
  --border-glow: rgba(249, 115, 22, 0.6);

  /* Acentos de Prontidão */
  --orange-rescue: #ff5500;
  --orange-rescue-bright: #ff6a1a;
  --orange-glow: rgba(255, 85, 0, 0.35);
  
  --gold-wings: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --cyan-tactical: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);

  --green-ready: #10b981;
  --green-glow: rgba(16, 185, 129, 0.3);

  --red-alert: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.3);

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', 'Source Code Pro', monospace;

  /* Efeitos */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--orange-glow);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: #f8fafc;
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 85, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* Layout Geral */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar de Navegação */
.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.sidebar-brand h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange-rescue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 85, 0, 0.18), rgba(255, 85, 0, 0.05));
  color: #fff;
  border-color: var(--border-active);
  box-shadow: inset 3px 0 0 var(--orange-rescue);
  font-weight: 600;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link.active svg {
  opacity: 1;
  color: var(--orange-rescue);
}

.nav-link .badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 85, 0, 0.2);
  color: var(--orange-rescue);
  font-weight: 700;
}

.nav-link .nav-external-arrow {
  margin-left: auto;
  width: 14px;
  height: 14px;
  opacity: 0.55;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-external-arrow {
  opacity: 1;
  color: var(--orange-rescue);
  transform: translate(2px, -2px);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-tv-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--orange-rescue), #e04400);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--orange-glow);
  transition: var(--transition);
  min-height: 44px;
}

.btn-tv-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 85, 0, 0.55);
  background: linear-gradient(135deg, #ff661a, #ea4a00);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-tv-mode:active {
  transform: scale(0.98);
}

.btn-pwa-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.12), rgba(224, 68, 0, 0.05));
  color: #ffedd5;
  border: 1px solid rgba(255, 85, 0, 0.35);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  min-height: 44px;
}

.btn-pwa-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--orange-glow);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.24), rgba(224, 68, 0, 0.14));
  border-color: var(--orange-rescue);
  color: #ffffff;
}

.btn-pwa-sidebar:active {
  transform: scale(0.98);
}

.btn-topbar-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.35));
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fca5a5;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-topbar-app:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
}

/* Área Principal de Conteúdo */
.main-wrapper {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  min-width: 0;
  width: calc(100% - 280px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Barra Superior (Top Bar) */
.topbar {
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
  max-width: 100%;
  box-sizing: border-box;
}

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

.topbar-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--green-ready);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-ready);
  box-shadow: 0 0 8px var(--green-ready);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.clock-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.clock-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Conteúdo da Página */
.page-content {
  padding: 32px;
  flex: 1;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* ==========================================================================
   CARDS & MURAL PRINCIPAL
   ========================================================================== */

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(13, 21, 39, 0.95), rgba(7, 11, 20, 0.95));
  box-shadow: var(--shadow-card);
}

.hero-banner-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  object-fit: cover;
  opacity: 0.45;
  mask-image: linear-gradient(to right, transparent 0%, black 60%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  color: var(--orange-rescue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange-rescue), #e04400);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--orange-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Grid de Destaques Operacionais */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

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

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.card-title svg {
  color: var(--orange-rescue);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--green-ready); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--gold-wings); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--red-alert); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: var(--cyan-tactical); border: 1px solid rgba(6, 182, 212, 0.3); }

/* Quadro de Trabalho Embed */
.quadro-preview {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #000;
  overflow: hidden;
  position: relative;
}

.quadro-preview iframe,
.quadro-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: none;
}

/* Banner Interativo do Checklist */
.checklist-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  height: auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(13, 21, 39, 0.92));
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-status-card.status-conferido {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(13, 21, 39, 0.92));
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.checklist-status-card.status-pendente,
.checklist-status-card.status-nao-realizado {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(13, 21, 39, 0.94));
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.checklist-status-card.status-conferido.has-alteracoes {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.12) 50%, rgba(13, 21, 39, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.2);
}

.checklist-alteracoes-box {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

.alteracao-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.alteracao-chip strong {
  color: #fff;
  text-transform: uppercase;
}

.checklist-info {
  flex: 1;
  min-width: 0;
}

.checklist-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.checklist-title-row h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-verificar-chk {
  padding: 8px 14px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-preencher-chk {
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Card Replicado do SIG Aeromédico no Portal */
.aeromedico-status-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.10) 0%, rgba(13, 21, 39, 0.88) 100%);
  border: 1px solid rgba(225, 29, 72, 0.32);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.aeromedico-status-card:hover {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.15);
}

.aeromedico-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.aeromedico-badges-row .status-indicator-badge {
  padding: 4px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.btn-aero-chk {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border: 1px solid #f43f5e;
  color: #ffffff !important;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-aero-chk:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-aero-raph {
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-aero-raph:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* Timeline da Rotina Diária */
.rotina-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.rotina-item {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: var(--transition);
}

.rotina-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.rotina-item.active-now {
  background: rgba(255, 85, 0, 0.1);
  border-color: var(--border-active);
  box-shadow: inset 3px 0 0 var(--orange-rescue);
}

.rotina-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-rescue);
  flex-shrink: 0;
  padding-top: 1px;
}

.rotina-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.rotina-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mural de Avisos Rotativo */
.mural-carousel {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border-subtle);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mural-slide {
  display: none;
  animation: fadeIn 0.4s ease;
}

.mural-slide.active {
  display: block;
}

.mural-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.mural-slide h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.mural-slide p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mural-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 16px;
  overflow: hidden;
}

.mural-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--orange-rescue);
  transition: width 0.1s linear;
}

.mural-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mural-nav-btns button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mural-nav-btns button:hover {
  background: rgba(255, 85, 0, 0.25);
  border-color: var(--orange-rescue);
  color: var(--orange-rescue);
}

.mural-footer-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.mural-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mural-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.mural-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.mural-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--orange-rescue);
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

/* Grid de Formulários Rápidos com QR Codes */
.quick-forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.form-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 10px 25px -5px rgba(255, 85, 0, 0.2);
}

.form-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.form-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 85, 0, 0.12);
  color: var(--orange-rescue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.form-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.form-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.qr-trigger-btn {
  font-size: 0.75rem;
  color: var(--cyan-tactical);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   MODO TV VERTICAL COM VÍDEO EM LOOP
   ========================================================================== */

body.tv-mode-active {
  overflow: hidden !important;
  background: #040711;
}

body.tv-mode-active .app-container {
  display: none !important;
}

.tv-kiosk-container {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  z-index: 99999;
  flex-direction: column;
  padding: 16px 24px;
  gap: 8px;
  background: radial-gradient(circle at 50% 10%, #0d1a33 0%, #040711 75%);
  overflow: hidden !important;
  box-sizing: border-box;
}

body.tv-mode-active .tv-kiosk-container {
  display: flex;
}

/* Garante que nenhum elemento estoure a largura no modo TV */
.tv-kiosk-container,
.tv-kiosk-container * {
  box-sizing: border-box;
}

.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(16, 26, 48, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(15px);
  width: 100%;
  flex-shrink: 0;
  gap: 16px;
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tv-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tv-brand h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
}

.tv-brand span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--orange-rescue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tv-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Cards Harmônicos de Prontidão e Status na TV Vertical */
.tv-status-full-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-sizing: border-box;
  transition: var(--transition);
}

.tv-checklist-full-card {
  min-height: 48px;
  height: auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(13, 21, 39, 0.92) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-checklist-full-card.status-conferido {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(13, 21, 39, 0.92) 100%);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.tv-checklist-full-card.status-pendente,
.tv-checklist-full-card.status-nao-realizado {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(13, 21, 39, 0.92) 100%);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.tv-checklist-full-card.status-conferido.has-alteracoes {
  border-color: rgba(245, 158, 11, 0.65);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20) 0%, rgba(239, 68, 68, 0.14) 50%, rgba(13, 21, 39, 0.95) 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.tv-checklist-alteracoes-box {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  animation: fadeIn 0.3s ease;
}

.tv-alteracao-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.tv-aeromedico-full-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.10) 0%, rgba(13, 21, 39, 0.92) 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tv-status-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.tv-chk-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-rescue);
  flex-shrink: 0;
}

.tv-checklist-full-card.status-conferido .tv-chk-icon-wrap {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.tv-checklist-full-card.status-pendente .tv-chk-icon-wrap,
.tv-checklist-full-card.status-nao-realizado .tv-chk-icon-wrap {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.tv-checklist-full-card.has-alteracoes .tv-chk-icon-wrap {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

.tv-aero-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f43f5e;
  flex-shrink: 0;
}

.tv-status-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tv-status-card-title {
  font-family: var(--font-heading);
  font-size: 0.90rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-status-card-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-status-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tv-aero-badges-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-status-card-right .status-indicator-badge {
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.tv-clock {
  text-align: right;
  flex-shrink: 0;
}

.tv-clock-time {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.5px;
}

.tv-clock-date {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: capitalize;
  margin-top: 2px;
  white-space: nowrap;
}

.tv-exit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  flex-shrink: 0;
}

.tv-exit-btn:hover {
  background: var(--red-alert);
  border-color: var(--red-alert);
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* Corpo da TV Vertical (Zero Rolagem) */
.tv-body-vertical {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  min-height: 0;
  width: 100%;
}

/* Container de Notícias com Tamanho Ampliado e Notícias Idênticas ao Mural (com Imagens) */
.tv-urgent-banner.tv-news-carousel-card,
.tv-urgent-banner {
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%);
  border: 1.5px solid rgba(255, 107, 0, 0.35);
  border-left: 6px solid var(--orange-rescue);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  height: 190px;
  min-height: 170px;
  max-height: 200px;
  overflow: hidden;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.tv-news-card-body {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.tv-news-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.tv-news-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.tv-news-card-badge-row .mural-badge {
  flex-shrink: 0;
  font-size: 0.74rem;
  padding: 3px 10px;
  margin-bottom: 0;
}

.tv-news-tag-live {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--orange-rescue);
  background: rgba(255, 107, 0, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 107, 0, 0.25);
  white-space: nowrap;
}

.tv-news-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.30rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-news-card-info .mural-slide-sub {
  font-size: 0.82rem;
  color: var(--gold-wings);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.tv-news-card-info .mural-slide-text {
  font-size: 0.90rem;
  color: #cbd5e1;
  line-height: 1.48;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-news-img-box {
  width: 240px;
  min-width: 240px;
  height: 100%;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
}

.tv-news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.tv-news-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.tv-news-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-rescue) 0%, #ffaa33 100%);
  transition: width 0.1s linear;
}

/* Card do Vídeo Único Oficial em Loop na TV - Centralizado Verticalmente */
.tv-video-full-card {
  width: 100%;
  flex: 1 1 0;
  min-height: 120px;
  max-height: 38vh;
  margin: 0;
  background: #000;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 25px rgba(255, 85, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-video-full-card iframe,
.tv-video-full-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: none;
}

.tv-video-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange-rescue);
  border: 1px solid var(--border-active);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* Container de Rotina Diária */
.tv-routine-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  width: 100%;
}

.tv-routine-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.tv-routine-card {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.tv-routine-card.active-now {
  border: 1.5px solid var(--orange-rescue);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.18) 0%, rgba(13, 21, 39, 0.85) 100%);
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.25);
}

.tv-routine-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 130px;
  flex-shrink: 0;
}

.tv-routine-card-meta .time {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffaa33;
  letter-spacing: 0.5px;
}

.tv-routine-card .desc {
  flex: 1;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 85, 0, 0.25);
  overflow: hidden;
}

.tv-routine-card .desc h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-routine-card .desc p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.tv-routine-card-completed {
  border: 1px solid var(--border-subtle);
  background: rgba(13, 21, 39, 0.8);
}

.tv-routine-card-completed .desc {
  border-left-color: var(--border-subtle);
}

/* Atividade da Hora Atual no Topo do Container da Rotina */
.rotina-item-now {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.22) 0%, rgba(255, 85, 0, 0.06) 100%) !important;
  border: 2px solid var(--orange-rescue) !important;
  border-radius: var(--radius-md) !important;
  padding: 16px 18px !important;
  box-shadow: 0 4px 24px rgba(255, 85, 0, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
  position: relative;
}

.rotina-item-now-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 85, 0, 0.25);
}

.rotina-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-rescue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.4);
}

.rotina-now-time {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffaa33;
  letter-spacing: 0.5px;
}

.rotina-now-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
  line-height: 1.35;
}

.rotina-now-desc {
  font-size: 0.85rem !important;
  color: #e2e8f0 !important;
  line-height: 1.45 !important;
}

.rotina-item-upcoming {
  opacity: 0.88;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
}
.rotina-item-upcoming:hover {
  opacity: 1;
  border-left-color: var(--orange-rescue);
}

.rotina-completed-card {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.18) 0%, rgba(13, 21, 39, 0.8) 100%);
  border: 2px solid var(--orange-rescue);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.25);
}

.rotina-completed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 85, 0, 0.25);
}

.tv-footer-qr {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0 !important;
  z-index: 10;
}

@media (max-width: 800px) {
  .tv-footer-qr {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.tv-qr-box {
  background: rgba(16, 26, 48, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tv-qr-img {
  width: 72px;
  height: 72px;
  background: #fff;
  padding: 3px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tv-qr-desc {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.tv-qr-desc h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.tv-qr-desc p {
  font-size: 0.68rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS: BRIEFING METEOROLÓGICO & NOTAMS (REDEMET / WINDY)
   ========================================================================== */

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

.metar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.metar-card.active-base {
  border-color: var(--border-active);
  box-shadow: 0 0 25px rgba(255, 85, 0, 0.15);
}

.metar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metar-icao {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.metar-name {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metar-badge-vfr {
  background: rgba(16, 185, 129, 0.18);
  color: var(--green-ready);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.metar-raw {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
  line-height: 1.4;
}

.metar-data-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.metar-stat label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metar-stat span {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.btn-windy-layer {
  transition: var(--transition);
}

.btn-windy-layer.active {
  background: var(--cyan-tactical) !important;
  color: #070b14 !important;
  border-color: var(--cyan-tactical) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* Container do Mapa Windy */
.windy-container {
  height: 480px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 28px;
}

.windy-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* NOTAM Cards */
.notam-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notam-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--orange-rescue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.notam-item.alert-critic {
  border-left-color: var(--red-alert);
}

.notam-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notam-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold-wings);
}

.notam-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.notam-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   ESTILOS DA PÁGINA ADMINISTRAÇÃO (ESTRUTURA ORIGINAL)
   ========================================================================== */

.admin-section-block {
  margin-bottom: 32px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-section-title svg {
  color: var(--orange-rescue);
}

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

.admin-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.admin-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: 0 10px 20px -5px rgba(255, 85, 0, 0.2);
}

.admin-link-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.admin-link-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Artigos Completos de Notícias */
.news-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.news-article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-article-card .meta {
  font-size: 0.78rem;
  color: var(--orange-rescue);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-article-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-quote-box {
  background: rgba(255, 85, 0, 0.08);
  border-left: 4px solid var(--orange-rescue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-style: italic;
  color: #e2e8f0;
}

/* Modal de Edição (CMS) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: modalEnter 0.25s ease;
  overflow: hidden;
}

.modal-card > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

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

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.form-group input, 
.form-group textarea, 
.form-group select {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-rescue);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.embed-full-frame {
  width: 100%;
  height: calc(100vh - 150px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

/* ==========================================================================
   PÁGINAS DEDICADAS DE SISTEMAS OPERACIONAIS (SIG-MAT, AEROMÉDICO, SARBIT)
   ========================================================================== */

.dedicated-system-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.dedicated-system-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 2px 0;
}

.dedicated-system-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.dedicated-system-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.system-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange-rescue);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.embed-dedicated-frame {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 650px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .dedicated-system-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dedicated-system-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .embed-dedicated-frame {
    height: 75vh;
  }
}

/* ==========================================================================
   GALERIAS DE IMAGENS CONTEXTUAIS (NOTÍCIAS & HISTÓRICO)
   ========================================================================== */

.news-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.news-img-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-img-item:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.news-img-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-img-caption {
  padding: 8px 10px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(7, 11, 20, 0.95);
  border-top: 1px solid var(--border-subtle);
  line-height: 1.35;
}

.news-img-banner {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin: 14px 0;
  display: block;
}

/* Ferramenta de Publicação de Notícias pelo Gestor */
.news-publish-card {
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.95), rgba(7, 11, 20, 0.9));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 0 25px rgba(255, 85, 0, 0.15);
}

.news-publish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-publish-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Seletores de Layout de Imagens (1 Foto ou 2 Fotos) */
.news-layout-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px) {
  .news-layout-selector {
    grid-template-columns: 1fr;
  }
}

.btn-layout-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(13, 21, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-layout-choice:hover {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

.btn-layout-choice.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.18) 0%, rgba(200, 70, 0, 0.1) 100%);
  border: 2px solid var(--orange-rescue);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.25);
}

.btn-layout-choice .layout-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.news-photo-group {
  background: rgba(8, 14, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition);
}

.news-photo-group:focus-within {
  border-color: rgba(255, 107, 0, 0.35);
}

.news-img-grid.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

/* Itens de Gestão de Notícias no CMS Modal */
.cms-noticia-item {
  background: rgba(13, 21, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.cms-noticia-item:hover {
  border-color: rgba(255, 107, 0, 0.35);
}

/* ==========================================================================
   CONTAINER E CARDS DO QUADRO DE TRABALHO (INSTRUÇÃO)
   ========================================================================== */

.quadro-card-item {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.16) 0%, rgba(13, 21, 39, 0.9) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-left: 5px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.quadro-card-item:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.3);
}

.quadro-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.quadro-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffaa33;
  letter-spacing: 0.5px;
}

.quadro-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.quadro-card-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.quadro-card-empty {
  background: rgba(13, 21, 39, 0.55);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Itens de Edição do Quadro de Trabalho no CMS Modal */
.cms-quadro-item {
  background: rgba(13, 21, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.cms-quadro-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

/* ==========================================================================
   GRID DE PRONTIDÃO: MURAL DE AVISOS + ROTINA DIÁRIA OFICIAL
   ========================================================================== */
.mural-rotina-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .mural-rotina-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.mural-slide-sub {
  font-size: 0.76rem;
  color: var(--gold-wings);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.mural-slide-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.mural-slide-action {
  margin-top: 8px;
}

/* ==========================================================================
   ACESSO CENTRALIZADO AOS FORMULÁRIOS OPERACIONAIS
   ========================================================================== */
.quick-forms-section-centered {
  margin-top: 8px;
  margin-bottom: 32px;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(13, 22, 38, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.quick-forms-header-centered {
  max-width: 720px;
  margin: 0 auto 28px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-tag-center {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--orange-rescue);
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title-center {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.section-desc-center {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.quick-forms-grid-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1050px;
  margin: 0 auto;
  justify-content: center;
}

.form-card-centered {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition);
}

.form-card-centered:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.15);
}

.form-card-centered-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.form-icon-centered {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange-rescue);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 107, 0, 0.25);
  margin-bottom: 6px;
  transition: var(--transition);
}

.form-card-centered:hover .form-icon-centered {
  background: var(--orange-rescue);
  color: #0b111e;
  transform: scale(1.08);
}

.badge-tag-center {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.form-title-centered {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.form-desc-centered {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex: 1;
}

.form-card-centered-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   FAIXAS DE FORMULÁRIOS OPERACIONAIS (ESTILO EXATO DO SITE ORIGINAL)
   ========================================================================== */
.operational-banners-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.op-banner-strip {
  background: linear-gradient(135deg, #FF8C00 0%, #E65100 100%);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.op-banner-strip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 81, 0, 0.4);
}

.op-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  flex: 1;
}

.op-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.op-banner-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.op-banner-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.4;
}

.op-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.op-form-btn-white {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background-color: #ffffff !important;
  color: #d84315 !important;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.op-form-btn-white:hover {
  background-color: #fff7ed !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.op-form-btn-qr {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.op-form-btn-qr:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: #ffffff;
}

@media (max-width: 850px) {
  .op-banner-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .op-banner-left {
    flex-direction: column;
    text-align: center;
  }
  .op-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .op-form-btn-white, .op-form-btn-qr {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SISTEMA DE MENU HAMBURGUER CLÁSSICO E RESPONSIVIDADE MOBILE
   ========================================================================== */

/* Padrão para Desktop */
.mobile-hamburger-btn {
  display: none;
}
.mobile-sidebar-close {
  display: none;
}
.sidebar-backdrop {
  display: none;
}

/* Quando tela for smartphone ou tablet <= 900px */
@media (max-width: 900px) {
  body.menu-mobile-open {
    overflow: hidden;
  }

  /* Botão Clássico Hamburguer */
  .mobile-hamburger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .mobile-hamburger-btn:active {
    background: rgba(255, 107, 0, 0.25);
    border-color: var(--orange-rescue);
    transform: scale(0.95);
  }

  /* Backdrop Escuro Translúcido */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Gaveta Lateral (Sidebar Mobile) */
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 84vw);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0b1323;
    border-right: 1px solid rgba(255, 107, 0, 0.35);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 35px rgba(0, 0, 0, 0.8);
  }

  /* Botão de Fechar dentro da Sidebar */
  .mobile-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .mobile-sidebar-close:active {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
  }

  .sidebar-header {
    padding: 16px 14px;
    justify-content: space-between;
  }

  .sidebar-nav {
    padding: 14px 10px;
  }

  .sidebar-nav .nav-link {
    padding: 13px 14px;
    font-size: 0.92rem;
    min-height: 46px;
  }

  .app-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .topbar {
    padding: 0 12px;
    height: 60px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

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

  .topbar-right {
    gap: 8px;
    flex-shrink: 0;
  }

  .clock-date {
    display: none !important;
  }

  .page-content {
    padding: 12px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hero-banner {
    border-radius: var(--radius-md);
  }

  .hero-content {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Card de Checklist */
  .checklist-status-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px;
    gap: 14px;
  }

  .checklist-title-row h3,
  .checklist-info p {
    white-space: normal;
  }

  .checklist-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    white-space: normal;
  }

  .checklist-actions .status-indicator-badge,
  .checklist-actions .btn-secondary,
  .checklist-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Banners Operacionais */
  .quick-forms-section-centered {
    padding: 24px 14px;
  }

  .op-banner-strip {
    padding: 18px 14px;
  }

  /* Modais no Mobile */
  .modal-backdrop {
    padding: 12px 10px !important;
    align-items: center !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94dvh !important;
    max-height: 94vh !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: var(--radius-md) !important;
  }

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

  .modal-body {
    padding: 14px 16px !important;
    gap: 14px !important;
  }

  .modal-footer {
    padding: 12px 16px !important;
  }
}

.modal-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .modal-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Otimizações Específicas para Smartphones <= 600px */
@media (max-width: 600px) {
  .topbar {
    padding: 0 10px;
    height: 56px;
    gap: 6px;
  }

  .topbar-left {
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
  }

  .mobile-hamburger-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .topbar-title {
    font-size: 0.95rem;
    max-width: 135px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-status {
    display: none !important;
  }

  .topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }

  /* Ocultar relógio no smartphone pois a barra nativa do celular já exibe o horário */
  .clock-display {
    display: none !important;
  }

  /* Botão Baixar App compacto no smartphone: ícone elegante de 36x36px sem texto extrapolando tela */
  .btn-topbar-app {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
  }

  .btn-topbar-app span {
    display: none !important;
  }

  .btn-topbar-app svg {
    width: 18px;
    height: 18px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  /* Notícias no Carrossel no Celular */
  .mural-slide > div {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .mural-slide img {
    width: 100% !important;
    height: 140px !important;
    max-height: 160px !important;
  }

  .card {
    padding: 16px 14px;
  }

  .card-header {
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Rotina Diária */
  .rotina-item-now {
    padding: 14px 12px !important;
  }

  .rotina-item-now-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* News Card no feed de notícias */
  .news-img-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Smartphones muito estreitos (<= 380px como iPhone SE, Galaxy A0x) */
@media (max-width: 380px) {
  .topbar {
    padding: 0 6px;
  }

  .topbar-left {
    gap: 4px;
  }

  .topbar-title {
    max-width: 105px;
    font-size: 0.88rem;
  }

  .topbar-right {
    gap: 4px;
  }

  .mobile-hamburger-btn,
  .btn-topbar-app,
  .btn-icon {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   PAINEL DE GESTÃO (CMS) & AUTENTICAÇÃO DO GESTOR (DBM 1/GOA)
   ========================================================================== */

.cms-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.cms-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cms-logout-btn:hover {
  background: var(--red-alert);
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.cms-tabs-nav {
  display: flex;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(8, 14, 28, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.cms-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cms-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.cms-tab-btn.active {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.25);
}

.cms-tab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.2s ease;
}

.cms-tab-pane.active {
  display: flex;
}

.cms-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cms-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.cms-section-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cms-item-card {
  background: rgba(13, 21, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: var(--transition);
}

.cms-item-card:hover {
  border-color: rgba(255, 107, 0, 0.35);
}

