/* Estilos Enterprise & IA do CRM de Fotografia */

/* Lead Score Badges */
.badge-score {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
}
.badge-score.cinza { background-color: #6B7280; }
.badge-score.amarelo { background-color: #F59E0B; color: #000; }
.badge-score.laranja { background-color: #F97316; }
.badge-score.vermelho { background-color: #EF4444; }

/* Closing Probability Progress Bar */
.prob-container {
  margin-top: 6px;
  background: #E5E7EB;
  border-radius: 6px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.prob-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}
.prob-bar.low { background-color: #EF4444; }
.prob-bar.medium { background-color: #F59E0B; }
.prob-bar.high { background-color: #10B981; }

/* Kanban Board Container */
.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 70vh;
}
.kanban-column {
  flex: 0 0 280px;
  background: var(--bg-secondary, #F3F4F6);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #4F46E5;
}
.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}
.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  min-height: 100px;
}
.kanban-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: grab;
  border-left: 4px solid #3B82F6;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kanban-card:active {
  cursor: grabbing;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.kanban-card-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.kanban-card-info {
  font-size: 0.8rem;
  color: #4B5563;
  margin-bottom: 6px;
}

/* Central Inbox Style WhatsApp Web */
.inbox-container {
  display: flex;
  height: 75vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}
.inbox-sidebar {
  width: 320px;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  background: #F9FAFB;
}
.inbox-search {
  padding: 10px;
  border-bottom: 1px solid #E5E7EB;
}
.inbox-chat-list {
  flex: 1;
  overflow-y: auto;
}
.inbox-chat-item {
  padding: 12px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: background 0.2s;
}
.inbox-chat-item:hover, .inbox-chat-item.active {
  background: #E0E7FF;
}
.inbox-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #E5DDD5;
}
.inbox-header {
  padding: 12px 16px;
  background: #075E54;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inbox-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  position: relative;
  word-break: break-word;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: #DCF8C6;
  border-bottom-right-radius: 0;
}
.chat-bubble.other {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 0;
}
.chat-time {
  font-size: 0.7rem;
  color: #6B7280;
  text-align: right;
  margin-top: 4px;
}
.inbox-ai-suggestions {
  background: #F3F4F6;
  padding: 8px 12px;
  border-top: 1px solid #D1D5DB;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.suggestion-btn {
  background: #ffffff;
  border: 1px solid #3B82F6;
  color: #1E40AF;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.suggestion-btn:hover {
  background: #DBEAFE;
}
.inbox-input-area {
  padding: 10px 16px;
  background: #F0F0F0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.inbox-input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #CCCCCC;
}

/* AI Summary Banner Top */
.ai-summary-banner {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #3730A3;
}
.ai-summary-title {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Forecast & BI Tiles */
.bi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.bi-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid #4F46E5;
}
.bi-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1F2937;
  margin-top: 4px;
}

/* Central Inteligente de Atendimento - Layout 3 Colunas (Kommo / Hubspot) */
.central-container-3col {
  display: flex;
  height: 80vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  overflow: hidden;
}
.central-col-left {
  width: 300px;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  background: #F9FAFB;
}
.central-col-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #E5DDD5;
  position: relative;
}
.central-col-right {
  width: 320px;
  border-left: 1px solid #E5E7EB;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
}

/* Badges de Sentimento */
.sentiment-tag {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}
.sentiment-tag.positivo { background: #D1FAE5; color: #065F46; }
.sentiment-tag.muito-interessado { background: #FEE2E2; color: #991B1B; animation: pulse 1.5s infinite; }
.sentiment-tag.indeciso { background: #FEF3C7; color: #92400E; }
.sentiment-tag.negativo { background: #F3F4F6; color: #4B5563; }

/* Visualizador de Mídia Interna */
.media-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.media-modal-content {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
}

