/**
 * ==========================================
 * 🎯 DEAL FLOW PLAYBOOKS - Estilos
 * ==========================================
 */

.deal-playbook {
  margin-top: 24px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.deal-playbook__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 24px;
}

.deal-playbook__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.deal-playbook__description {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.deal-playbook__progress {
  flex-shrink: 0;
  min-width: 200px;
}

.deal-playbook__progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.deal-playbook__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.deal-playbook__progress-text {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  display: block;
}

.deal-playbook__blocked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.deal-playbook__blocked-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.deal-playbook__blocked-content {
  flex: 1;
}

.deal-playbook__blocked-content strong {
  display: block;
  color: #ef4444;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.deal-playbook__blocked-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.deal-playbook__tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-playbook__task {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.deal-playbook__task:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.deal-playbook__task--completed {
  opacity: 0.6;
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.deal-playbook__task--blocked {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.deal-playbook__task-checkbox {
  flex-shrink: 0;
  margin-top: 2px;
}

.deal-playbook__task-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #6366f1;
}

.deal-playbook__task-content {
  flex: 1;
}

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

.deal-playbook__task-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.deal-playbook__task-priority {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.deal-playbook__task-priority--high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.deal-playbook__task-priority--medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.deal-playbook__task-priority--low {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.deal-playbook__task-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.deal-playbook__task-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.deal-playbook__task-blocked {
  color: #ef4444;
  font-weight: 600;
}

.deal-playbook__next {
  margin-top: 24px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid #6366f1;
  border-radius: 8px;
}

.deal-playbook__next-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.deal-playbook__next-hint strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .deal-playbook__header {
    flex-direction: column;
    gap: 16px;
  }

  .deal-playbook__progress {
    width: 100%;
  }

  .deal-playbook__task-header {
    flex-direction: column;
    gap: 8px;
  }
}
