/* Estilos customizados para VG SaaS - Design Suave e Moderno */

/* ===== VARIÁVEIS DE COR ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --secondary-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --border-radius-large: 16px;
}

/* ===== RESET E BASE ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  background: var(--secondary-gradient);
  min-height: 100vh;
}

/* ===== CARDS E COMPONENTES ===== */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-interactive {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.card-interactive:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px) scale(1.02);
}

/* ===== BOTÕES ===== */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  color: #374151;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* ===== FORMULÁRIOS ===== */
.form-input {
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.form-input:focus {
  outline: none;
  border-color: #10b981;
  background: white;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

/* ===== ÍCONES E ELEMENTOS DECORATIVOS ===== */
.icon-container {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  padding: 16px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.icon-container:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-large);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.pulse-soft {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 640px) {
  .card, .card-interactive {
    border-radius: 8px;
  }

  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .form-input {
    padding: 10px 14px;
  }
}

/* ===== UTILITÁRIOS ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== COMPONENTES CLIENT ===== */

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  color: #374151;
  font-size: 2rem;
  font-weight: 700;
}

header nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

header nav a {
  color: #6b7280;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

header nav a:hover,
header nav a.active {
  background: var(--primary-gradient);
  color: white;
}

header nav button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

header nav button:hover {
  background: #dc2626;
}

/* Main content */
main {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

/* Actions */
.actions {
  margin-bottom: 30px;
  text-align: right;
}

/* Cards */
.list-card, .campaign-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.list-card:hover, .campaign-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.list-card h3, .campaign-card h3 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 1.25rem;
}

.list-card p {
  color: #6b7280;
  margin: 5px 0;
}

.list-meta, .campaign-meta {
  margin: 15px 0;
}

.list-meta span, .campaign-meta p {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  margin: 2px 0;
}

.list-actions, .campaign-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Status badges */
.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-scheduled {
  background: #dbeafe;
  color: #2563eb;
}

.status-running {
  background: #d1fae5;
  color: #065f46;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-paused {
  background: #fed7aa;
  color: #ea580c;
}

.status-cancelled {
  background: #fecaca;
  color: #dc2626;
}

.status-default {
  background: #f3f4f6;
  color: #374151;
}

/* Campaign specific */
.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.campaign-message {
  margin: 15px 0;
}

.message-preview {
  background: #f9fafb;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  font-style: italic;
  color: #374151;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #10b981;
  color: #10b981;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* Loading */
.loading {
  text-align: center;
  color: #6b7280;
  padding: 40px;
  font-style: italic;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 30px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-large);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content.campaign-modal {
  max-width: 1000px;
  max-height: 95vh;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #374151;
}

/* Modal header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #10b981;
  background: white;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.75rem;
}

/* Template preview */
.template-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.template-preview h4 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
}

.template-preview pre {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #374151;
  margin: 0;
}

/* Variables mapping */
.variables-mapping {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.variables-mapping h4 {
  margin: 0 0 15px 0;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
}

.variable-mapping {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.variable-mapping label {
  min-width: 120px;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.variable-mapping select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
}

.variable-mapping select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* Form sections */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

.form-section h3 {
  margin: 0 0 20px 0;
  color: #374151;
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #10b981;
}

/* Form rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Variables grid */
.variables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.variable-mapping {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.variable-mapping label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.variable-mapping select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.variable-mapping select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* Preview content */
.preview-content {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #10b981;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #374151;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form actions */
.form-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Contacts table */
.contacts-table {
  margin-top: 20px;
  overflow-x: auto;
}

.contacts-table table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table th,
.contacts-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.contacts-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.contacts-table tr:hover {
  background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 20px;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .campaign-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .list-actions, .campaign-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== MODAL DE DETALHES DA CAMPANHA ===== */
.campaign-detail-modal {
  max-width: 900px;
  max-height: 95vh;
  overflow-y: auto;
}

.campaign-detail h2 {
  margin: 0 0 5px 0;
  color: #374151;
  font-size: 1.5rem;
}

.campaign-detail .status {
  display: inline-block;
  margin-bottom: 15px;
}

/* ===== METRICS CARDS ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.metric-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.metric-card.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.metric-card.error {
  background: #fef2f2;
  border-color: #fecaca;
}

.metric-card.warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.metric-card.info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
}

.metric-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 5px;
}

/* ===== FAILED REASONS ===== */
.failed-reasons {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.failed-reasons h3 {
  color: #dc2626;
  margin: 0 0 15px 0;
  font-size: 1.1rem;
}

.failed-reasons ul {
  margin: 0;
  padding-left: 20px;
}

.failed-reasons li {
  color: #991b1b;
  margin: 5px 0;
  font-size: 0.9rem;
}

/* ===== CONTACTS TABLE ===== */
.contacts-table-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.contacts-table-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts-table-header h3 {
  margin: 0;
  color: #374151;
}

.contacts-search {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  min-width: 250px;
}

.contacts-search:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.table-responsive {
  overflow-x: auto;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.contacts-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.contacts-table tr:hover {
  background: #f9fafb;
}

.contacts-table .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.contacts-table .badge-sent {
  background: #d1fae5;
  color: #065f46;
}

.contacts-table .badge-failed {
  background: #fecaca;
  color: #dc2626;
}

.contacts-table .badge-processing {
  background: #fef3c7;
  color: #d97706;
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons {
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f3f4f6;
  border-color: #10b981;
}

.filter-btn.active {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.filter-btn.all {
  color: #6b7280;
}

.filter-btn.sent {
  color: #065f46;
}

.filter-btn.failed {
  color: #dc2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .campaign-detail-modal {
    margin: 5% auto;
    width: 95%;
    max-height: 90vh;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-search {
    min-width: 100%;
  }

  .contacts-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ESTATÍSTICAS GLOBAIS ===== */
.stats-overview {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ===== BOTÃO DE RESET ===== */
.btn-warning {
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* ===== ESTADO VAZIO ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.empty-icon {
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS DE LISTAS ===== */
.list-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.list-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

.list-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.list-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.list-stats .stat {
  font-size: 0.875rem;
  color: #6b7280;
}

.list-stats .stat.available {
  color: #059669;
  font-weight: 500;
}

.list-stats .stat.sent {
  color: #2563eb;
  font-weight: 500;
}

.list-meta {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.list-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ===== CONTATOS MODAL ===== */
.contacts-modal {
  max-width: 1200px !important;
  width: 95% !important;
}

/* Controles superiores da tabela */
.contacts-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.contacts-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contacts-count {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Tabela de contatos */
.contacts-table {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.contacts-table table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table thead th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.contacts-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.contacts-table tbody tr:hover {
  background: #f9fafb;
}

.contacts-table .contact-name {
  font-weight: 500;
  color: #111827;
}

.contacts-table .contact-info {
  color: #6b7280;
}

/* Responsividade para tabela de contatos */
@media (max-width: 768px) {
  .contacts-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .contacts-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .contacts-table {
    font-size: 0.875rem;
  }

  .contacts-table thead th,
  .contacts-table tbody td {
    padding: 8px 12px;
  }

  .contacts-table thead th {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .contacts-table {
    border: none;
    border-radius: 0;
  }

  .contacts-table thead {
    display: none;
  }

  .contacts-table tbody tr {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .contacts-table tbody td {
    display: block;
    border: none;
    padding: 4px 0;
    text-align: left;
  }

  .contacts-table tbody td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #6b7280;
    display: inline-block;
    min-width: 80px;
  }

  .contacts-table tbody td:first-child:before {
    content: "Nome: ";
  }

  .contacts-table tbody td:nth-child(2):before {
    content: "Telefone: ";
  }

  .contacts-table tbody td:nth-child(3):before {
    content: "Email: ";
  }

  .contacts-table tbody td:nth-child(4):before {
    content: "Empresa: ";
  }

  .contacts-table tbody td:nth-child(5):before {
    content: "Status: ";
  }

  .contacts-table tbody td:last-child {
    text-align: center;
    margin-top: 8px;
  }

  .contacts-table tbody td:last-child:before {
    display: none;
  }
}

/* ===== RESPONSIVIDADE PARA LISTAS ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 15px;
    gap: 10px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

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

  .list-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}
