/* Tema clássico: aproxima o visual das páginas novas ao estilo anterior (styles.css) */

/* Menu de navegação */
.nav-tabs {
  display: flex !important;
  gap: 0.5rem !important;
  margin-bottom: 2rem !important;
  background: rgba(15, 23, 42, 0.5) !important;
  padding: 0.5rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #334155 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  backdrop-filter: blur(10px) !important;
}

.nav-tab {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0.5rem !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.nav-tab:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
}

.nav-tab.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
}

.nav-tab svg {
  width: 20px !important;
  height: 20px !important;
}

/* Cards */
.modern-card {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid #334155 !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

.card-header {
  border-bottom: 1px solid #334155 !important;
  padding-bottom: 1rem !important;
  margin-bottom: 1rem !important;
}

.card-title { gap: 0.5rem !important; }

.title-icon {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #3b82f6 !important;
  border: 1px solid #3b82f6 !important;
  width: 44px !important; height: 44px !important;
}

/* Botões */
.btn-modern { border-radius: 0.5rem !important; font-weight: 500 !important; }
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  transform: translateY(-1px) !important;
}
.btn-secondary {
  background: rgba(71, 85, 105, 0.5) !important;
  color: #94a3b8 !important;
  border: 1px solid #475569 !important;
}
.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.8) !important;
  color: #f1f5f9 !important;
}

/* Formulários */
.form-section-modern {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid #334155 !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
}
.form-input-modern {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
  border-radius: 0.5rem !important;
}
.form-input-modern:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Listas */
.list-modern { gap: 0.75rem !important; }
.item-modern {
  background: rgba(51, 65, 85, 0.3) !important;
  border: 1px solid #475569 !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
}
.item-modern:hover {
  background: rgba(51, 65, 85, 0.5) !important;
  border-color: #64748b !important;
}
.item-title-modern { color: #f1f5f9 !important; }

/* Estados vazios */
.empty-state-modern {
  color: #64748b !important;
}
.empty-state-modern h4 { color: #e2e8f0 !important; }

/* Saída */
.output-display {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid #334155 !important;
  border-radius: 0.75rem !important;
  color: #e2e8f0 !important;
}

/* Tabelas - melhorar espaçamento */
.table { gap: 12px !important; }
.table .row {
  grid-template-columns: 2fr 100px 1.5fr 120px 200px !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  min-height: 56px !important;
  align-items: center !important;
  border-radius: 8px !important;
}
.table .cell {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}
.table .head {
  font-weight: 600 !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: #e2e8f0 !important;
  border-color: #3b82f6 !important;
}
.table .row:not(.head):hover {
  background: rgba(51, 65, 85, 0.5) !important;
  border-color: #64748b !important;
}

/* Responsividade para tabelas */
@media (max-width: 900px) {
  .table .row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .table .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
  }
}

/* Grid moderno - 2 colunas para Roteirização */
.modern-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

@media (max-width: 1024px) {
  .modern-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* JSON Input */
.json-input {
  width: 100% !important;
  padding: 1.5rem !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  outline: none !important;
  border-radius: 0.5rem !important;
}

.json-input::placeholder {
  color: #64748b !important;
}

.json-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Botões de ícone */
.btn-icon-modern {
  width: 44px !important;
  height: 44px !important;
  border-radius: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  background: rgba(148, 163, 184, 0.1) !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-icon-modern:hover {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #f1f5f9 !important;
  transform: scale(1.05) !important;
}

/* Responsividade para formulários em grid */
@media (max-width: 1200px) {
  .form-modern[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}
