/* ========================================================
   4N SOLUTIONS HELPDESK - ESTILOS VISUAIS & ANIMAÇÕES
   ======================================================== */

:root {
  --primary-blue: #0284c7;
  --primary-dark: #0369a1;
  --brand-navy: #0f172a;
  --accent-cyan: #38bdf8;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
}

/* Tipografia e Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Transições Suaves */
.transition-smooth {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Gradient Header (conforme o topo azul do mockup) */
.hero-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Badges de Prioridade */
.badge-critica {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.badge-alta {
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.badge-media {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-baixa {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Status Pills */
.status-aberto {
  background-color: #e0f2fe;
  color: #0369a1;
}
.status-em_analise {
  background-color: #fef9c3;
  color: #854d0e;
}
.status-em_atendimento {
  background-color: #ede9fe;
  color: #6d28d9;
}
.status-finalizado {
  background-color: #dcfce7;
  color: #15803d;
}

/* Glassmorphism Effect */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Timeline vertical */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 1.5rem;
  bottom: -0.5rem;
  width: 2px;
  background: #e2e8f0;
}
.timeline-item:last-child::before {
  display: none;
}

/* Pulse indicator para chamados críticos e novidades */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Menu Lateral Gaveta (Mobile Drawer) */
.mobile-drawer-backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

/* Botões Hover Effects */
.btn-tech {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}
.btn-tech:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}
.btn-tech:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20bd5a 0%, #0e7367 100%);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Dark Mode Overrides */
body.dark {
  background-color: #0b1120;
  color: #f1f5f9;
}
body.dark .bg-white {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}
body.dark .bg-slate-50,
body.dark .bg-gray-50 {
  background-color: #0f172a !important;
}
body.dark .border-slate-200,
body.dark .border-gray-200,
body.dark .border-gray-100 {
  border-color: #334155 !important;
}
body.dark .text-slate-600,
body.dark .text-gray-600 {
  color: #94a3b8 !important;
}
body.dark .text-slate-900,
body.dark .text-gray-900 {
  color: #f8fafc !important;
}
body.dark .glass-panel {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.6);
}
body.dark input,
body.dark textarea,
body.dark select {
  background-color: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

/* Alto contraste para ícones da barra lateral quando selecionados */
.nav-item.bg-sky-600 i,
.nav-item[class*="bg-sky-600"] i,
.nav-item.bg-sky-600 svg,
.nav-item[class*="bg-sky-600"] svg {
  color: #ffffff !important;
}
