.whatsapp-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

/* ========== ABAS ========== */
.whatsapp-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.whatsapp-container .tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.whatsapp-container .tab-button:hover {
  color: #25D366;
  background: #f5f5f5;
}

.whatsapp-container .tab-button.active {
  color: #25D366;
  border-bottom-color: #25D366;
}

.whatsapp-container .tab-button .material-icons {
  font-size: 20px;
}

.whatsapp-container .tab-content {
  display: none;
}

.whatsapp-container .tab-content.active {
  display: block;
}

/* ========== FIM ABAS ========== */

.connection-status-panel, 
.qrcode-panel {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.connection-info {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.connected-status, 
.disconnected-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.connected {
  background-color: #4CAF50;
}

.status-dot.disconnected {
  background-color: #F44336;
}

.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.qrcode-placeholder {
  width: 256px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  margin: 20px auto;
}

.qr-code-image {
  width: 256px;
  height: 256px;
  margin: 20px auto;
  display: block;
}

.qr-instructions {
  text-align: center;
  color: #666;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.user-info {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.connected-message {
  text-align: center;
  color: #4CAF50;
  font-weight: 500;
  margin: 30px 0;
}

.error-message {
  text-align: center;
  color: #F44336;
  font-weight: 500;
  margin: 30px 0;
}

.danger-btn {
  background-color: #F44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  align-self: flex-start;
}

.danger-btn:hover {
  background-color: #d32f2f;
}

/* ========== CONFIGURAÇÕES DO PROVIDER ========== */

.config-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-header {
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.config-header h3 {
  margin: 0 0 8px 0;
  color: #25D366;
  font-size: 24px;
}

.config-description {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.status-card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
}

.status-card h4 {
  margin-top: 0;
  color: #333;
  margin-bottom: 15px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  background: white;
  border-radius: 6px;
}

.status-label {
  font-weight: 600;
  color: #666;
}

.status-value {
  font-weight: 500;
  color: #333;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.connected {
  background: #d4edda;
  color: #155724;
}

.status-badge.disconnected {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.baileys {
  background: #cce5ff;
  color: #004085;
}

.status-badge.wwebjs {
  background: #d1ecf1;
  color: #0c5460;
}

.provider-selector {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.provider-selector h4 {
  margin-top: 0;
  color: #333;
  margin-bottom: 10px;
}

.provider-note {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.provider-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.provider-option {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.provider-option:hover {
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.provider-option.selected {
  border-color: #25D366;
  background: #f0fdf4;
}

.provider-option.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #25D366;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.provider-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.provider-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.provider-status {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.provider-status.recommended {
  background: #d4edda;
  color: #155724;
}

.provider-status.experimental {
  background: #fff3cd;
  color: #856404;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #25D366;
  color: white;
}

.btn-primary:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin: 20px 0;
  display: none;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #666;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #25D366;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

