/**
 * Demands Evolution CSS — Stages 1-5
 * Overlay on top of existing demands.css
 * Glassmorphism, Kanban, Pipeline, SLA, Score, Campaigns, Feed
 */

/* ==================== ENHANCED CARDS (Stage 1) ==================== */

.demand-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: visible;
}
.demand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  opacity: 0;
  transition: opacity 0.3s;
}
.demand-card:hover::before { opacity: 1; }
.demand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102,126,234,0.2);
  border-color: rgba(102,126,234,0.3);
}

/* Priority stripe */
.demand-card[data-priority="urgent"] { border-left: 3px solid #ef4444; }
.demand-card[data-priority="high"] { border-left: 3px solid #f59e0b; }

/* Progress bar gradient */
.progress-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

/* Enhanced badges */
.demand-type-badge {
  background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2)) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(167,139,250,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.priority-badge {
  animation: none;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
}
.priority-badge[data-priority="urgent"] {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* ==================== VIEW SWITCHER (Stage 1) ==================== */

.view-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  padding: 0.2rem;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active, .view-btn:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

/* ==================== STATUS TABS WITH COUNTERS (Stage 1) ==================== */

.status-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.status-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.status-tab:hover { border-color: rgba(102,126,234,0.5); color: white; }
.status-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}
.status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==================== KANBAN BOARD (Stage 1) ==================== */

.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: 500px;
}
.kanban-column {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
}
.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kanban-column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.kanban-column-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.kanban-column-count {
  background: rgba(255,255,255,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.kanban-cards {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}
.kanban-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.625rem;
  padding: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-color: rgba(102,126,234,0.3);
}
.kanban-card-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
.kanban-card-meta { display: flex; justify-content: space-between; align-items: center; }
.kanban-avatars { display: flex; }
.kanban-avatars .mini-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
  margin-left: -6px;
  border: 2px solid var(--bg-secondary, #1a1a2e);
  overflow: hidden;
}
.kanban-avatars .mini-avatar:first-child { margin-left: 0; }
.kanban-avatars .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Kanban Drag & Drop */
.kanban-card[draggable] { cursor: grab; }
.kanban-card[draggable]:active { cursor: grabbing; }
.kanban-card-dragging {
  opacity: 0.4;
  transform: rotate(2deg) scale(0.95);
  box-shadow: 0 8px 32px rgba(102,126,234,0.3);
  border-color: rgba(102,126,234,0.5);
}
.kanban-card-placeholder {
  min-height: 60px;
  border: 2px dashed rgba(102,126,234,0.5);
  border-radius: 0.625rem;
  background: rgba(102,126,234,0.08);
  transition: all 0.2s ease;
}
.kanban-drop-active {
  background: rgba(102,126,234,0.05) !important;
  border-radius: 0 0 0.75rem 0.75rem;
  outline: 2px dashed rgba(102,126,234,0.3);
  outline-offset: -2px;
}
[data-theme="light"] .kanban-card-placeholder {
  border-color: rgba(102,126,234,0.4);
  background: rgba(102,126,234,0.06);
}
[data-theme="light"] .kanban-drop-active {
  background: rgba(102,126,234,0.04) !important;
  outline-color: rgba(102,126,234,0.25);
}

/* ==================== PIPELINE STEPPER (Stage 4) ==================== */

.pipeline-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.75rem 0;
  overflow-x: auto;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  position: relative;
  cursor: pointer;
  min-width: 70px;
}
.pipeline-step::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
}
.pipeline-step:last-child::after { display: none; }
.pipeline-step.completed::after { background: linear-gradient(90deg, #667eea, #764ba2); }
.pipeline-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 1;
  transition: all 0.3s;
}
.pipeline-step.completed .pipeline-dot {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  color: white;
}
.pipeline-step.active .pipeline-dot {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  box-shadow: 0 0 12px rgba(102,126,234,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 12px rgba(102,126,234,0.5); }
  50% { box-shadow: 0 0 20px rgba(102,126,234,0.8); }
}
.pipeline-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  white-space: nowrap;
}
.pipeline-step.completed .pipeline-label,
.pipeline-step.active .pipeline-label { color: rgba(255,255,255,0.8); }

/* ==================== SLA TIMER (Stage 4) ==================== */

.sla-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.sla-timer.sla-green { background: rgba(16,185,129,0.15); color: #10b981; }
.sla-timer.sla-yellow { background: rgba(245,158,11,0.15); color: #f59e0b; }
.sla-timer.sla-red { background: rgba(239,68,68,0.15); color: #ef4444; animation: pulse-sla 1.5s ease-in-out infinite; }
@keyframes pulse-sla {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==================== SCORE GAUGE (Stage 5) ==================== */

.score-gauge {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 0.5rem;
}
.score-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-gauge circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}
.score-gauge .gauge-bg { stroke: rgba(255,255,255,0.08); }
.score-gauge .gauge-fill { transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1); }
.score-gauge .gauge-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 1.1rem;
  font-weight: 700;
}
.score-red .gauge-fill { stroke: #ef4444; }
.score-red .gauge-value { color: #ef4444; }
.score-yellow .gauge-fill { stroke: #f59e0b; }
.score-yellow .gauge-value { color: #f59e0b; }
.score-green .gauge-fill { stroke: #10b981; }
.score-green .gauge-value { color: #10b981; }
.score-gold .gauge-fill { stroke: #fbbf24; }
.score-gold .gauge-value { color: #fbbf24; animation: glow-gold 2s ease-in-out infinite; }
@keyframes glow-gold {
  0%,100% { text-shadow: 0 0 8px rgba(251,191,36,0.5); }
  50% { text-shadow: 0 0 16px rgba(251,191,36,0.8); }
}

/* ==================== MEMBER CARD ENHANCED (Stage 1+5) ==================== */

.member-card {
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102,126,234,0.15);
}
.member-avatar {
  position: relative;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--bg-secondary,#1a1a2e),var(--bg-secondary,#1a1a2e)), linear-gradient(135deg,#667eea,#764ba2);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.member-badges {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.member-badge {
  font-size: 1rem;
  cursor: help;
}

/* ==================== CAMPAIGNS VIEW (Stage 2) ==================== */

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.campaign-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.campaign-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.campaign-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.campaign-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.campaign-title { font-size: 1.05rem; font-weight: 600; }
.campaign-status {
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.campaign-status.active { background: rgba(16,185,129,0.15); color: #10b981; }
.campaign-status.paused { background: rgba(245,158,11,0.15); color: #f59e0b; }
.campaign-status.completed { background: rgba(107,114,128,0.15); color: #9ca3af; }
.campaign-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.campaign-meta i { margin-right: 0.25rem; color: #667eea; }
.campaign-timeline {
  margin-top: 0.75rem;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.campaign-timeline-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.5s;
}

/* ==================== CLIENTS VIEW (Stage 2) ==================== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.client-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}
.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.client-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 0.75rem;
  overflow: hidden;
}
.client-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.client-contact { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.client-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ==================== BRIEFING BUILDER (Stage 3) ==================== */

.briefing-builder {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}
.briefing-builder-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #a78bfa;
}
.briefing-field { margin-bottom: 0.75rem; }
.briefing-field label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.briefing-field label .required { color: #ef4444; }

/* ==================== FEED TIMELINE (Stage 5) ==================== */

.feed-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feed-entry {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a78bfa;
}
.feed-content { flex: 1; }
.feed-message { font-size: 0.875rem; line-height: 1.5; }
.feed-message strong { color: var(--text-primary, #fff); }
.feed-time { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }
.feed-reactions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.feed-reaction {
  padding: 0.15rem 0.4rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.feed-reaction:hover {
  background: rgba(102,126,234,0.2);
  border-color: rgba(102,126,234,0.3);
}

/* ==================== APPROVALS PANEL (Stage 4) ==================== */

.approval-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.approval-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-approve {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-approve:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.btn-reject {
  background: rgba(239,68,68,0.15) !important;
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-reject:hover { background: rgba(239,68,68,0.25) !important; }

/* ==================== MODAL ANIMATIONS (Stage 1) ==================== */

.modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(20px);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==================== ENHANCED TABS (Stage 1) ==================== */

.demands-tabs {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  padding: 0.25rem;
  width: auto;
  overflow-x: auto;
}
.tab-btn {
  border-radius: 0.5rem;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  transition: all 0.25s;
}
.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

/* ==================== LIGHT MODE OVERRIDES ==================== */

[data-theme="light"] .demand-card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .demand-card:hover { box-shadow: 0 12px 40px rgba(102,126,234,0.15); }
[data-theme="light"] .kanban-column { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .kanban-card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .campaign-card, [data-theme="light"] .client-card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .status-tab { border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.6); }
[data-theme="light"] .status-tab:hover { background: #ffffff; color: #000000; border-color: rgba(0,0,0,0.25); }
[data-theme="light"] .status-tab.active { color: white; background: linear-gradient(135deg, #667eea, #764ba2); border-color: transparent; }
[data-theme="light"] .modal-content { background: #fff; }
[data-theme="light"] .briefing-builder { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .feed-entry { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .approval-card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .approval-card-header { background: rgba(102, 126, 234, 0.06); border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .approval-card-header h4 { color: #1a1a2e; }
[data-theme="light"] .approval-card-header small { color: rgba(0,0,0,0.6); }
[data-theme="light"] .approval-card-body { color: rgba(0,0,0,0.75); }
[data-theme="light"] .approval-card-body strong { color: #1a1a2e; }
[data-theme="light"] .approval-card-actions { background: rgba(0,0,0,0.025); border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .approval-badge.pending { background: rgba(245, 158, 11, 0.18); color: #b45309; }
[data-theme="light"] .approval-badge.approved { background: rgba(16, 185, 129, 0.18); color: #047857; }
[data-theme="light"] .approval-badge.rejected { background: rgba(239, 68, 68, 0.18); color: #b91c1c; }
[data-theme="light"] .pipeline-dot { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .pipeline-step::after { background: rgba(0,0,0,0.1); }

/* ==================== ABAS DO CABECALHO (demands-tabs) NO MODO CLARO ==================== */
/* Aba ativa: gradiente padrao do sistema + fonte branca */
[data-theme="light"] .tab-btn {
  color: rgba(0, 0, 0, 0.6);
}
[data-theme="light"] .tab-btn:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}
[data-theme="light"] .tab-btn.active:hover {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
}
[data-theme="light"] .tab-btn .tab-badge { background: rgba(0, 0, 0, 0.1); color: #1a1a2e; }
[data-theme="light"] .tab-btn.active .tab-badge { background: rgba(255, 255, 255, 0.25); color: #ffffff; }
[data-theme="light"] .tab-btn.tab-highlight { color: #b45309; }

/* ==================== FEED TABS (internas do Feed) NO MODO CLARO ==================== */
[data-theme="light"] .feed-tabs { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .feed-tab { color: rgba(0, 0, 0, 0.6); }
[data-theme="light"] .feed-tab:hover { background: #ffffff; color: #000000; }
[data-theme="light"] .feed-tab.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #ffffff; }
[data-theme="light"] .feed-tab.active:hover { background: linear-gradient(135deg, #667eea, #764ba2) !important; color: #ffffff !important; }

/* ==================== VIEW SWITCHER (Kanban/Lista) NO MODO CLARO ==================== */
[data-theme="light"] .view-switcher { background: rgba(0,0,0,0.05); }
[data-theme="light"] .view-btn { color: rgba(0,0,0,0.5); }
[data-theme="light"] .view-btn:hover { background: #ffffff; color: #000000; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
[data-theme="light"] .view-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #ffffff; }
[data-theme="light"] .view-btn.active:hover { background: linear-gradient(135deg, #667eea, #764ba2) !important; color: #ffffff !important; }
[data-theme="light"] .gauge-bg { stroke: rgba(0,0,0,0.08) !important; }
[data-theme="light"] .kanban-avatars .mini-avatar { border-color: white; }
[data-theme="light"] .view-switcher { background: rgba(0,0,0,0.05); }
[data-theme="light"] .view-btn { color: rgba(0,0,0,0.5); }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .kanban-board { flex-direction: column; }
  .kanban-column { min-width: 100%; max-width: 100%; }
  .pipeline-stepper { overflow-x: auto; }
  .pipeline-step { min-width: 60px; }
  .campaigns-grid, .clients-grid { grid-template-columns: 1fr; }
  .status-tabs { flex-wrap: nowrap; }
}

/* ==================== INFO CARDS (Detail Modals) ==================== */

.info-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.info-card i { color: #a78bfa; font-size: 0.9rem; }
.info-card strong { color: #fff; font-size: 1.1rem; }

[data-theme="light"] .info-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.7);
}
[data-theme="light"] .info-card strong { color: #1a1a2e; }

/* ==================== CAMPAIGN DEMANDS LIST ==================== */

.campaign-demands-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.campaign-demand-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.campaign-demand-item:hover {
  background: rgba(102,126,234,0.1);
  border-color: rgba(102,126,234,0.3);
  transform: translateX(4px);
}
.campaign-demand-item .demand-title {
  font-weight: 500;
  font-size: 0.9rem;
}

[data-theme="light"] .campaign-demand-item {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .campaign-demand-item:hover {
  background: rgba(102,126,234,0.08);
}

/* ============================================================
   M1: ABA APROVA��ES + BADGES DE CAMPANHA
   ============================================================ */

.approvals-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.approvals-header h3 {
  margin: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
}

.approval-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.approval-card:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 126, 234, 0.35);
}

.approval-card-header {
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(102, 126, 234, 0.04);
  gap: 1rem;
}

.approval-card-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.approval-card-header small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.2rem;
}

.approval-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.approval-badge.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.approval-badge.approved {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
}

.approval-badge.rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.approval-card-body {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.approval-card-body p {
  margin: 0.3rem 0;
}

.approval-card-actions {
  padding: 0.8rem 1.1rem;
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.approval-card-actions .btn {
  flex: 1;
  margin: 0;
}

/* Tab highlight quando h� aprova��es pendentes */
.tab-highlight {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.tab-badge-warn {
  background: #f59e0b !important;
  color: #1f2937 !important;
  animation: pulse-warn 1.5s ease-in-out infinite;
}

@keyframes pulse-warn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================================
   M4: BRIEFING BUILDER
   ============================================================ */

.briefing-builder {
  background: rgba(102, 126, 234, 0.04);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.6rem;
}

.bf-title {
  margin: 0 0 0.8rem 0;
  font-size: 0.9rem;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bf-field:has(.bf-textarea) {
  grid-column: 1 / -1;
}

.bf-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.required-mark {
  color: #ef4444;
  margin-left: 2px;
}

.bf-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bf-input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(0, 0, 0, 0.3);
}

.bf-textarea {
  min-height: 70px;
  resize: vertical;
}

@media (max-width: 600px) {
  .bf-fields { grid-template-columns: 1fr; }
  .approval-card-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FEED: DEMANDAS CONCLUIDAS POR MEMBRO
   ============================================================ */

.feed-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.feed-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px;
  border-radius: 8px;
}

.feed-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.feed-tab:hover {
  color: #e5e7eb;
  background: rgba(102, 126, 234, 0.1);
}

.feed-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feed-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.feed-filters select {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: #e5e7eb;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

/* Resumo do feed */
.feed-completed-summary {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.feed-completed-summary strong {
  color: #fff;
  font-weight: 700;
}

/* Bloco por membro */
.feed-member-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.feed-member-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.feed-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.feed-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-member-name {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.95rem;
}

.feed-member-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-top: 2px;
}

.feed-deliveries {
  padding: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
}

/* Card de entrega individual */
.delivery-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  padding: 0.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.delivery-card:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.4);
}

.delivery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.delivery-title {
  font-size: 0.9rem;
  color: #e5e7eb;
  font-weight: 500;
  flex: 1;
  line-height: 1.3;
}

.delivery-prio {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  flex-shrink: 0;
}

.delivery-prio.low     { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.delivery-prio.normal  { background: rgba(102, 126, 234, 0.2); color: #818cf8; }
.delivery-prio.high    { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.delivery-prio.urgent  { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.delivery-card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.delivery-tag {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.delivery-card-footer {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(102, 126, 234, 0.08);
}

.delivery-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.delivery-revisions.perfect {
  color: #10b981;
  font-weight: 600;
}

/* ============================================================
   EQUIPE: TOOLBAR + GRADE + ACOES + MODAL DE DETALHES
   ============================================================ */

.team-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: rgba(102, 126, 234, 0.04);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 8px;
  gap: 1rem;
  flex-wrap: wrap;
}

.team-toolbar-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.team-toolbar-info i {
  color: #667eea;
}

.team-toolbar-info strong {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Garante que a grade use 3 colunas com responsividade */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 992px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* A��es no card (vis�veis no hover) */
.member-card {
  position: relative;
}

.member-card-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.member-card:hover .member-card-actions,
.member-card:focus-within .member-card-actions {
  opacity: 1;
}

.member-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.member-action-btn:hover {
  background: rgba(102, 126, 234, 0.9);
  transform: scale(1.1);
}

.member-action-btn.member-action-delete:hover {
  background: rgba(239, 68, 68, 0.95);
}

/* Card de adicionar membro (CTA grande) */
.member-card-add {
  border: 2px dashed rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-card-add:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  transform: translateY(-2px);
}

.member-card-add-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.member-card-add-content i {
  font-size: 2.5rem;
  color: #667eea;
  opacity: 0.7;
}

.member-card-add-content span {
  font-weight: 600;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.member-card-add-content small {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Stat item de alerta (atrasadas) */
.stat-item-warn strong {
  color: #f59e0b !important;
}

.stat-item-warn {
  background: rgba(245, 158, 11, 0.08);
  border-radius: 6px;
}

/* ============================================================
   MODAL: DETALHES DO MEMBRO
   ============================================================ */

.modal-member-details-content {
  max-height: 85vh;
  overflow-y: auto;
}

.md-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  margin-bottom: 1.2rem;
}

.md-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}

.md-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.2rem 0 0.6rem 0;
  font-weight: 600;
}

.md-section-title i {
  font-size: 0.8rem;
}

.md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.md-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.08);
}

.md-field label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.md-field span {
  color: #e5e7eb;
  font-size: 0.9rem;
  word-break: break-word;
}

.md-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.6rem;
}

.md-stat {
  text-align: center;
  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 8px;
  padding: 0.8rem 0.5rem;
}

.md-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.md-stat span {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.md-stat-score {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.md-stat-score strong {
  color: #f59e0b;
}

/* Conquistas no modal */
.md-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.badge-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.badge-card strong {
  display: block;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.badge-card small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

/* ============================================================
   MODO CLARO — EQUIPE + MODAL DE DETALHES
   (sidebar preserva cor original via .sidebar-* não afetado aqui)
   ============================================================ */

[data-theme="light"] .team-toolbar {
  background: rgba(102, 126, 234, 0.06);
  border-color: rgba(102, 126, 234, 0.18);
}

[data-theme="light"] .team-toolbar-info {
  color: #1f2937;
}

[data-theme="light"] .team-toolbar-info strong {
  color: #111827;
}

[data-theme="light"] .member-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .member-card:hover {
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.18);
}

[data-theme="light"] .member-name {
  color: #111827;
}

[data-theme="light"] .member-email {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .stat-item strong {
  color: #111827;
}

[data-theme="light"] .stat-item span {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .stat-item-warn {
  background: rgba(245, 158, 11, 0.12);
}

[data-theme="light"] .member-card-add {
  background: rgba(102, 126, 234, 0.04);
  border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .member-card-add:hover {
  background: rgba(102, 126, 234, 0.08);
  border-color: #667eea;
}

[data-theme="light"] .member-card-add-content span {
  color: #1f2937;
}

[data-theme="light"] .member-card-add-content {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .member-card-add-content small {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .member-action-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .member-action-btn:hover {
  background: #667eea;
  color: #fff;
}

/* Modal de detalhes em modo claro */
[data-theme="light"] .modal-member-details-content {
  color: #1f2937;
}

[data-theme="light"] .modal-member-details-content h2,
[data-theme="light"] .modal-member-details-content h3,
[data-theme="light"] .modal-member-details-content h4 {
  color: #111827;
}

[data-theme="light"] .md-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .md-section-title {
  color: #4f46e5;
}

[data-theme="light"] .md-field {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .md-field label {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .md-field span {
  color: #1f2937;
}

[data-theme="light"] .md-stat {
  background: rgba(102, 126, 234, 0.06);
  border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .md-stat strong {
  color: #111827;
}

[data-theme="light"] .md-stat span {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .md-stat-score {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .md-stat-score strong {
  color: #b45309;
}

[data-theme="light"] .badge-card {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .badge-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

[data-theme="light"] .badge-card strong {
  color: #1f2937;
}

[data-theme="light"] .badge-card small {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .text-muted,
[data-theme="light"] .modal-member-details-content .text-muted {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Modal genérico em modo claro (header, footer, botões) */
[data-theme="light"] .modal-member-details-content .modal-header,
[data-theme="light"] .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-member-details-content .modal-footer,
[data-theme="light"] .modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-member-details-content .modal-close {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .modal-member-details-content .modal-close:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #md-name,
[data-theme="light"] #md-role {
  color: #111827;
}

/* ==================== MODO CLARO: MODAIS (Nova Demanda, Campanha, Cliente, Historico, Membro) ==================== */

/* Cabecalho / corpo / rodape do modal em modo claro */
[data-theme="light"] .modal-header h3,
[data-theme="light"] .modal-header h3 i {
  color: #1a1a2e;
}
[data-theme="light"] .modal-body {
  color: #1a1a2e;
  background: #fff;
}
[data-theme="light"] .modal-footer {
  color: #1a1a2e;
}

/* Inputs .form-input (modal Nova Demanda) - fundo branco explicito */
[data-theme="light"] .form-input,
[data-theme="light"] input.form-input,
[data-theme="light"] select.form-input,
[data-theme="light"] textarea.form-input,
[data-theme="light"] .form-input select,
[data-theme="light"] .form-input textarea {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1a1a2e;
}
[data-theme="light"] .form-input::placeholder { color: rgba(0, 0, 0, 0.45); }
[data-theme="light"] .form-input option { color: #1a1a2e; background: #ffffff; }

/* Briefing builder (M4) em modo claro */
[data-theme="light"] .briefing-builder {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(102, 126, 234, 0.2);
}
[data-theme="light"] .bf-title { color: #4338ca; }
[data-theme="light"] .bf-label { color: rgba(0, 0, 0, 0.75); }
[data-theme="light"] .bf-input,
[data-theme="light"] input.bf-input,
[data-theme="light"] select.bf-input,
[data-theme="light"] textarea.bf-input {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1a1a2e;
}
[data-theme="light"] .bf-input::placeholder { color: rgba(0, 0, 0, 0.45); }
[data-theme="light"] .bf-input option { color: #1a1a2e; background: #ffffff; }
[data-theme="light"] .bf-input:focus {
  border-color: #4f46e5;
  background: #ffffff;
}

/* Texto geral dentro do modal em modo claro */
[data-theme="light"] .modal-content p,
[data-theme="light"] .modal-content span,
[data-theme="light"] .modal-content div,
[data-theme="light"] .modal-content label,
[data-theme="light"] .modal-content small,
[data-theme="light"] .modal-content strong {
  color: #1a1a2e;
}
[data-theme="light"] .modal-content .text-muted { color: rgba(0, 0, 0, 0.55) !important; }
[data-theme="light"] .modal-content small { color: rgba(0, 0, 0, 0.55); }

/* info-card (modal de campanha/cliente) em modo claro */
[data-theme="light"] .info-card { color: rgba(0, 0, 0, 0.75); }
[data-theme="light"] .info-card i { color: #4338ca; }
[data-theme="light"] .info-card strong { color: #1a1a2e; }

/* Status pills em modo claro */
[data-theme="light"] .campaign-status.active { background: rgba(16, 185, 129, 0.12); color: #047857; }
[data-theme="light"] .campaign-status.paused { background: rgba(245, 158, 11, 0.12); color: #b45309; }
[data-theme="light"] .campaign-status.completed { background: rgba(107, 114, 128, 0.15); color: #374151; }

/* history-item (modal de Historico do Membro) em modo claro */
[data-theme="light"] .history-item,
[data-theme="light"] div.history-item {
  background: rgba(0, 0, 0, 0.025) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1a1a2e !important;
}
[data-theme="light"] .history-item:hover {
  background: rgba(102, 126, 234, 0.08) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}
[data-theme="light"] .history-item small,
[data-theme="light"] .history-item span[style*="rgba(255"] { color: rgba(0, 0, 0, 0.6) !important; }

/* status-badge (demanda dentro de modal de campanha) em modo claro */
[data-theme="light"] .status-badge { color: #1a1a2e; }

/* form-section h4 em modo claro */
[data-theme="light"] .modal-content h4 { color: #1a1a2e; }
[data-theme="light"] .modal-content h4 i { color: #4338ca; }

/* Labels de icone (que vem dentro de label, ex: <label><i class="fas fa-bullhorn">) */
[data-theme="light"] .modal-content label i { color: #4338ca; }

/* Texto de spinner/loading em modo claro */
[data-theme="light"] .modal-content [style*="opacity:0.5"] { color: rgba(0, 0, 0, 0.55) !important; }

/* empty-state dentro de modal em modo claro */
[data-theme="light"] .modal-content .empty-state { color: rgba(0, 0, 0, 0.6); }
[data-theme="light"] .modal-content .empty-state i { color: rgba(0, 0, 0, 0.4); }

/* Assignment row (multi-responsavel) em modo claro */
[data-theme="light"] .modal-content .assignment-row { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .modal-content .assignment-row input,
[data-theme="light"] .modal-content .assignment-row select {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a2e;
}

/* Cores de fundo especificas que estao hardcoded em style="..." */
[data-theme="light"] .modal-content [style*="color:rgba(255,255,255,0.6)"] { color: rgba(0, 0, 0, 0.6) !important; }
[data-theme="light"] .modal-content [style*="color:rgba(255,255,255,0.5)"] { color: rgba(0, 0, 0, 0.55) !important; }
[data-theme="light"] .modal-content [style*="color:rgba(255,255,255,0.4)"] { color: rgba(0, 0, 0, 0.5) !important; }
