:root {
  --bg-dark: #f1f5f9;
  --bg-panel: rgba(255, 255, 255, 0.7);
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #0284c7; /* Gupshup-like corporate blue */
  --accent-hover: #0369a1;
  --success: #059669;
  --danger: #e11d48;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f0f4f8;
  background-image: radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.1), transparent 25%), radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.1), transparent 25%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
}

.dashboard-container {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.logo h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
  color: #0f172a;
}

.neon-text {
  color: var(--accent);
}

.sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar nav ul li {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.sidebar nav ul li:hover, .sidebar nav ul li.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.server-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.8);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
}

.pulse {
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.content {
  flex: 1;
  padding: 3rem;
  overflow-y: auto;
  height: 100vh;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

header p {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lead-name {
  font-weight: 700;
  color: var(--text-main);
}

.question-box {
  background: rgba(255,255,255,0.8);
  padding: 1.2rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.question-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.answer-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-box label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.answer-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  border-radius: 10px;
  padding: 1rem;
  min-height: 120px;
  resize: vertical;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.answer-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

button {
  flex: 1;
  padding: 0.85rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn-approve {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-approve:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-reject {
  background: white;
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
}

.btn-reject:hover {
  background: #f8fafc;
  color: var(--danger);
  border-color: var(--danger);
}

.loader {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

/* FUNIL DE VENDAS */
.funnel-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.funnel-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.funnel-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}

.funnel-box.new {
  border-bottom: 4px solid #0ea5e9;
}

.funnel-box.testing {
  border-bottom: 4px solid #f59e0b;
}

.funnel-box.waiting {
  border-bottom: 4px solid #8b5cf6;
}

.funnel-box.active {
  border-bottom: 4px solid #10b981;
}

.funnel-box h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.funnel-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.funnel-box p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 600;
}

.funnel-arrow {
  color: #cbd5e1;
  font-size: 1.5rem;
}
