/* CheckAI - Dashboard Simplificado */

/* Plan info card styles */
.plan-info-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plan-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.plan-info-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.upgrade-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.upgrade-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.plan-limits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.limit-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.limit-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.limit-value {
  font-weight: 600;
  font-size: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.feature-enabled {
  background: rgba(76, 175, 80, 0.3);
  color: #c8e6c9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.feature-disabled {
  background: rgba(244, 67, 54, 0.3);
  color: #ffcdd2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.support-level {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Tooltip styles */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.action-btn.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.action-btn.disabled:hover {
  background-color: #ccc;
}

/* Layout principal em duas colunas */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 2rem;
  min-height: 80vh;
}

/* Coluna principal (70%) */
.main-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Coluna lateral (30%) */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header do dashboard */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f3f4;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.dashboard-subtitle {
  color: #718096;
  font-size: 1rem;
  margin: 0.25rem 0 0 0;
}

/* Estatísticas simples */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease;
}

.stat-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2d3748;
  display: block;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Lista de formulários */
.forms-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.section-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f7fafc;
  display: flex;
  justify-content: between;
  align-items: center;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.forms-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.form-item {
  padding: 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.form-item:last-child {
  border-bottom: none;
}

.form-item:hover {
  background-color: #f7fafc;
}

.form-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  text-decoration: none;
}

.form-title:hover {
  color: #3182ce;
  text-decoration: none;
}

.form-description {
  color: #718096;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #a0aec0;
  font-size: 0.85rem;
}

.form-stats {
  display: flex;
  gap: 0.75rem;
}

.stat-badge {
  background: #edf2f7;
  color: #4a5568;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Sidebar sections */
.sidebar-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.sidebar-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f7fafc;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.sidebar-content {
  padding: 1.5rem;
}

/* Ações rápidas */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: #edf2f7;
  color: #2d3748;
  text-decoration: none;
  transform: translateY(-1px);
}

.action-btn.primary {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.action-btn.primary:hover {
  background: #2c5aa0;
  color: white;
}

/* Alertas clicáveis na sidebar */
.quick-actions a.action-btn:hover {
  background: #fff5f5;
  border-color: #fed7d7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Busca */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.search-btn {
  padding: 0.5rem 1rem;
  background: #3182ce;
  color: white;
  border: 1px solid #3182ce;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-btn:hover {
  background: #2c5aa0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #718096;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dashboard-container {
    padding: 1rem;
  }
  
  .stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .search-form {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 65% 35%;
  }
}

/* Form View - Layout Simplificado */
.form-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.form-view-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 2rem;
  margin-top: 2rem;
}

/* Header da visualização do formulário */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f1f3f4;
}

.form-info {
  flex: 1;
}

.form-title-main {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.form-description-main {
  color: #718096;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.form-meta-info {
  display: flex;
  gap: 2rem;
  color: #a0aec0;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Seção principal */
.form-main-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Navegação simples */
.form-navigation {
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item-simple {
  flex: 1;
}

.nav-link-simple {
  display: block;
  padding: 1rem 1.5rem;
  color: #4a5568;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
}

.nav-link-simple:hover {
  background: #edf2f7;
  color: #2d3748;
  text-decoration: none;
}

.nav-link-simple.active {
  background: #ffffff;
  color: #3182ce;
  border-bottom-color: #3182ce;
}

/* Conteúdo das abas */
.tab-content-simple {
  padding: 2rem;
  min-height: 400px;
}

.tab-pane-simple {
  display: none;
}

.tab-pane-simple.active {
  display: block;
}

/* Lista de perguntas */
.questions-grid {
  display: grid;
  gap: 1rem;
}

.question-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.question-card:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.question-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
}

.question-number {
  background: #3182ce;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.question-type {
  background: #edf2f7;
  color: #4a5568;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.question-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.question-options {
  margin-top: 0.75rem;
}

.question-options-label {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.option-item {
  padding: 0.25rem 0;
  color: #4a5568;
  font-size: 0.9rem;
}

/* Sidebar de estatísticas */
.stats-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.stats-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d3748;
  display: block;
}

.stat-name {
  color: #718096;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Lista de respostas/alertas */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  transition: background-color 0.2s ease;
}

.item-card:hover {
  background: #edf2f7;
}

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.25rem 0;
}

.item-description {
  color: #718096;
  font-size: 0.8rem;
  margin: 0 0 0.5rem 0;
}

.item-meta {
  color: #a0aec0;
  font-size: 0.75rem;
}

/* Estados vazios */
.empty-content {
  text-align: center;
  padding: 3rem 1rem;
  color: #718096;
}

.empty-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Área de ações */
.form-public-url {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.url-label {
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
}

.url-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.85rem;
  background: white;
}

.copy-btn {
  padding: 0.5rem 0.75rem;
  background: #3182ce;
  color: white;
  border: 1px solid #3182ce;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background: #2c5aa0;
}

/* Responsividade para form view */
@media (max-width: 768px) {
  .form-view-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-view-container {
    padding: 1rem;
  }
  
  .form-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .form-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .nav-list {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .form-meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Forms List - Layout Simplificado */
.forms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.forms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f3f4;
}

.forms-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.forms-subtitle {
  color: #718096;
  font-size: 1rem;
  margin: 0.25rem 0 0 0;
}

/* Filtros */
.filters-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filters-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
}

.filters-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

/* Grid de formulários */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

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

/* Header do card */
.form-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  background: #f7fafc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.form-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.form-card-date {
  color: #a0aec0;
  font-size: 0.8rem;
}

.form-card-menu {
  position: relative;
}

.menu-button {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: #4a5568;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background: #edf2f7;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  min-width: 160px;
  display: none;
}

.menu-dropdown.show {
  display: block;
}

.menu-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background: #f7fafc;
  color: #2d3748;
  text-decoration: none;
}

.menu-item.danger {
  color: #e53e3e;
}

.menu-item.danger:hover {
  background: #fed7d7;
}

/* Conteúdo do card */
.form-card-body {
  padding: 1.5rem;
}

.form-description {
  color: #718096;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

/* Estatísticas mini */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mini-stat {
  text-align: center;
  padding: 0.75rem;
  background: #f7fafc;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.mini-stat:hover {
  background: #edf2f7;
}

.mini-stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2d3748;
  display: block;
}

.mini-stat-label {
  color: #718096;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Status badges */
.status-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.active {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.inactive {
  background: #e2e8f0;
  color: #4a5568;
}

.status-badge.with-data {
  background: #bee3f8;
  color: #2c5282;
}

/* Ações do card */
.form-card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-action-btn {
  flex: 1;
  padding: 0.5rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #4a5568;
  text-decoration: none;
  text-align: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  background: #edf2f7;
  color: #2d3748;
  text-decoration: none;
}

.card-action-btn.primary {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.card-action-btn.primary:hover {
  background: #2c5aa0;
  color: white;
}

/* Estado vazio */
.forms-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.empty-icon-forms {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 1.5rem;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.empty-description {
  color: #718096;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contador de resultados */
.results-counter {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counter-text {
  color: #4a5568;
  font-size: 0.9rem;
}

.counter-badge {
  background: #3182ce;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Responsividade para forms */
@media (max-width: 768px) {
  .forms-container {
    padding: 1rem;
  }
  
  .forms-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .filters-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .forms-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mini-stats {
    gap: 0.5rem;
  }
  
  .form-card-header {
    padding: 1rem;
  }
  
  .form-card-body {
    padding: 1rem;
  }
  
  .empty-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .results-counter {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .forms-grid {
    grid-template-columns: 1fr;
  }
  
  .mini-stats {
    grid-template-columns: 1fr;
  }
  
  .form-card-actions {
    flex-direction: column;
  }
}

/* Preview específico */
.preview-field {
  margin: 1rem 0;
}

.form-input.disabled,
.form-slider.disabled {
  background: #f7fafc;
  color: #a0aec0;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.options-list {
  margin: 1rem 0;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #4a5568;
}

.option-item input {
  margin-right: 0.75rem;
  cursor: not-allowed;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.question-number {
  background: #3182ce;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.question-type {
  background: #edf2f7;
  color: #4a5568;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.question-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.field-info {
  display: block;
  margin-top: 0.5rem;
  color: #718096;
  font-size: 0.8rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #718096;
}

.non-questionable {
  padding: 0.75rem;
  background: #e6fffa;
  border: 1px solid #81e6d9;
  border-radius: 6px;
  color: #234e52;
}

.element-type {
  font-size: 0.9rem;
  font-weight: 500;
}

.separator-preview hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 1rem 0;
}

.conditional-info {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 6px;
  color: #c53030;
  font-size: 0.9rem;
}

.group-divider {
  margin: 2rem 0 1rem 0;
  padding: 1rem;
  background: linear-gradient(90deg, #e6fffa 0%, #e3f2fd 100%);
  border-left: 4px solid #38b2ac;
  border-radius: 6px;
}

.group-title {
  font-weight: 600;
  color: #2c7a7b;
  font-size: 1.1rem;
}

.stats-section,
.quick-actions,
.form-status {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
}

.actions-list {
  padding: 0;
}

.action-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #4a5568;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.action-item:last-child {
  border-bottom: none;
}

.action-item:hover {
  background: #f7fafc;
  color: #2d3748;
  text-decoration: none;
}

.action-item i:first-child {
  margin-right: 0.75rem;
  width: 1.2rem;
  text-align: center;
}

.action-item i:last-child {
  margin-left: auto;
}

.status-info {
  padding: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-badge.active {
  background: #f0fff4;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.status-badge.inactive {
  background: #fef5e7;
  color: #744210;
  border: 1px solid #f6e05e;
}

.status-badge i {
  margin-right: 0.5rem;
}

.status-details p {
  margin: 0.5rem 0;
  color: #718096;
  font-size: 0.9rem;
}

.status-details code {
  background: #edf2f7;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #2d3748;
}

/* Status do Formulário */
.form-status {
  padding: 1rem 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid;
}

.status-indicator.active {
  background: #f0fff4;
  color: #22543d;
  border-color: #9ae6b4;
}

.status-indicator.inactive {
  background: #fef5e7;
  color: #744210;
  border-color: #f6e05e;
}

.status-indicator i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.status-text {
  font-weight: 600;
  font-size: 1rem;
}

.status-description {
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Botões de ação com cores específicas */
.action-btn.success {
  background: #38a169;
  color: white;
  border: 1px solid #38a169;
}

.action-btn.success:hover {
  background: #2f855a;
  border-color: #2f855a;
}

.action-btn.warning {
  background: #ed8936;
  color: white;
  border: 1px solid #ed8936;
}

.action-btn.warning:hover {
  background: #dd6b20;
  border-color: #dd6b20;
}

/* Alertas flutuantes */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 1.25rem 1rem;
  background: none;
  border: 0;
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235 1.818.741-.741 14.527 14.527-.741.741L.235 1.818z'/%3e%3cpath d='m14.527 1.818.741.741L1.741 16.086 1 15.345 14.527 1.818z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.375rem;
  opacity: 0.5;
}

.btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

/* =======================
   RESPONSE VIEW STYLES
   ======================= */

/* Container principal da visualização de resposta */
.response-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Breadcrumb da resposta */
.response-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #718096;
}

.response-breadcrumb a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s ease;
}

.response-breadcrumb a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #a0aec0;
  font-weight: 500;
}

/* Botão voltar */
.response-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3182ce;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-bottom: 2rem;
}

.response-back-button:hover {
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Header da resposta */
.response-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.response-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.response-subtitle {
  color: #718096;
  font-size: 1.1rem;
  margin: 0;
}

/* Seção de informações da resposta */
.response-info-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.response-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.response-meta-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 4px solid #3182ce;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
}

/* Seção do formulário respondido */
.response-form-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.response-form-header {
  background: #f7fafc;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.response-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.response-form-description {
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

/* Container das respostas */
.response-answers-container {
  padding: 1.5rem;
}

/* Item de pergunta e resposta */
.response-question-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.response-question-item:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.response-question-item.answered {
  border-left: 4px solid #38a169;
  background: #f0fff4;
}

.response-question-item.unanswered {
  border-left: 4px solid #ed8936;
  background: #fffaf0;
}

/* Indicadores da pergunta */
.question-indicators {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.response-hierarchy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3182ce;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 1.5rem;
  height: 1.5rem;
}

.response-question-type {
  display: inline-block;
  background: #edf2f7;
  color: #4a5568;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.response-conditional-indicator {
  display: inline-block;
  background: #38a169;
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.response-required-icon {
  color: #e53e3e;
  font-size: 0.7rem;
}

/* Texto da pergunta */
.response-question-text {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.response-question-hint {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 400;
  margin-top: 0.5rem;
  font-style: italic;
  padding: 0.5rem;
  background: #f7fafc;
  border-radius: 4px;
  border-left: 3px solid #3182ce;
}

.response-question-hint i {
  margin-right: 0.25rem;
  color: #3182ce;
}

/* Container da resposta */
.response-answer-container {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 4px solid #38a169;
}

.response-answer-container.no-answer {
  border-left-color: #ed8936;
  background: #fffaf0;
}

.response-answer-value {
  font-size: 0.95rem;
  color: #2d3748;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
}

.response-answer-value.no-answer {
  color: #c05621;
  font-style: italic;
}

/* Seção de alertas */
.response-alerts-section {
  margin-top: 2rem;
}

.response-alerts-title {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.response-alerts-title i {
  color: #ed8936;
}

.response-alert-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #3182ce;
}

.response-alert-item.high {
  border-left-color: #e53e3e;
  background: #fed7d7;
}

.response-alert-item.medium {
  border-left-color: #ed8936;
  background: #feebc8;
}

.response-alert-item.low {
  border-left-color: #38a169;
  background: #c6f6d5;
}

.response-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.response-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #3182ce;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.response-alert-link:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

.response-alert-severity {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.response-alert-severity.high {
  color: #e53e3e;
}

.response-alert-severity.medium {
  color: #ed8936;
}

.response-alert-severity.low {
  color: #38a169;
}

.response-alert-severity i {
  font-size: 0.5rem;
}

.response-alert-message {
  color: #2d3748;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.response-alert-timestamp {
  font-size: 0.75rem;
  color: #718096;
}

/* Responsividade */
@media (max-width: 768px) {
  .response-view-container {
    padding: 1rem;
  }
  
  .response-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .response-header {
    padding: 1.5rem;
  }
  
  .response-title {
    font-size: 1.5rem;
  }
  
  .response-question-item {
    padding: 1rem;
  }
  
  .response-form-header {
    padding: 1rem;
  }
  
  .response-answers-container {
    padding: 1rem;
  }
  
  .response-alert-item {
    padding: 1rem;
  }
  
  .question-indicators {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .response-view-container {
    padding: 0.5rem;
  }
  
  .response-back-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .response-breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}

/* =======================
   ALERT VIEW STYLES
   ======================= */

/* Container principal da visualização de alerta */
.alert-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Breadcrumb do alerta */
.alert-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #718096;
  flex-wrap: wrap;
}

.alert-breadcrumb a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s ease;
}

.alert-breadcrumb a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

/* Botão voltar do alerta */
.alert-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3182ce;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-bottom: 2rem;
}

.alert-back-button:hover {
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Header do alerta */
.alert-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.alert-severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.alert-severity-badge.alta {
  background: #fed7d7;
  color: #e53e3e;
  border: 2px solid #e53e3e;
}

.alert-severity-badge.media {
  background: #feebc8;
  color: #ed8936;
  border: 2px solid #ed8936;
}

.alert-severity-badge.baixa {
  background: #c6f6d5;
  color: #38a169;
  border: 2px solid #38a169;
}

.alert-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.alert-subtitle {
  color: #718096;
  font-size: 1.1rem;
  margin: 0;
}

/* Seção de informações do alerta */
.alert-info-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.alert-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.alert-meta-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 4px solid #3182ce;
}

.alert-severity-text.alta {
  color: #e53e3e;
  font-weight: 600;
}

.alert-severity-text.media {
  color: #ed8936;
  font-weight: 600;
}

.alert-severity-text.baixa {
  color: #38a169;
  font-weight: 600;
}

.ai-generated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #e6fffa;
  color: #234e52;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Seção da mensagem do alerta */
.alert-message-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.alert-message-header {
  background: #f7fafc;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.alert-message-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-message-content {
  padding: 1.5rem;
}

.alert-message-text {
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
}

/* Seção do prompt */
.alert-prompt-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.alert-prompt-header {
  background: #e6fffa;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.alert-prompt-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-prompt-name {
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
}

.alert-prompt-content {
  padding: 1.5rem;
}

.prompt-description {
  margin-bottom: 1.5rem;
}

.prompt-description h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.prompt-description p {
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

.prompt-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
}

.prompt-code {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2d3748;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px;
  overflow-y: auto;
}

/* Seção da resposta bruta da IA */
.alert-raw-response-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.alert-raw-response-header {
  background: #fef5e7;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.alert-raw-response-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-raw-response-content {
  padding: 1.5rem;
}

.raw-response-code {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2d3748;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
}

/* Seção de metadados */
.alert-metadata-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.alert-metadata-header {
  background: #edf2f7;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.alert-metadata-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-metadata-content {
  padding: 1.5rem;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.metadata-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 4px solid #4a5568;
}

.metadata-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metadata-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d3748;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Seção de ações */
.alert-actions-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.alert-actions-header {
  background: #f7fafc;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.alert-actions-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-actions-content {
  padding: 1.5rem;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-button.primary {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.action-button.primary:hover {
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.action-button.secondary {
  background: #edf2f7;
  color: #4a5568;
  border-color: #e2e8f0;
}

.action-button.secondary:hover {
  background: #e2e8f0;
  color: #2d3748;
  text-decoration: none;
  transform: translateY(-1px);
}

.action-button.success {
  background: #38a169 !important;
  color: white !important;
  border-color: #38a169 !important;
}

/* Responsividade para alertas */
@media (max-width: 768px) {
  .alert-view-container {
    padding: 1rem;
  }
  
  .alert-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .alert-header {
    padding: 1.5rem;
  }
  
  .alert-title {
    font-size: 1.5rem;
  }
  
  .alert-message-header,
  .alert-prompt-header,
  .alert-raw-response-header,
  .alert-metadata-header,
  .alert-actions-header {
    padding: 1rem;
  }
  
  .alert-message-content,
  .alert-prompt-content,
  .alert-raw-response-content,
  .alert-metadata-content,
  .alert-actions-content {
    padding: 1rem;
  }
  
  .metadata-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-button {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .alert-view-container {
    padding: 0.5rem;
  }
  
  .alert-back-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .alert-breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  .alert-severity-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* =======================
   AUTH PAGES STYLES
   ======================= */

/* Container principal para páginas de autenticação */
.auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layout centralizado para formulários de auth */
.auth-layout {
  width: 100%;
  max-width: 500px;
}

/* Card de autenticação */
.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header do card de auth */
.auth-card-header {
  padding: 1.5rem;
  text-align: center;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.auth-card-header.login {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
}

.auth-card-header.register {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  color: white;
}

.auth-card-header.profile {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Corpo do card de auth */
.auth-card-body {
  padding: 2rem;
}

/* Formulários de autenticação */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Grupos de campos do formulário */
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
}

.auth-form-input {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-form-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.auth-form-input.is-invalid {
  border-color: #e53e3e;
}

.auth-form-input.is-invalid:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Mensagens de validação */
.auth-invalid-feedback {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.auth-form-text {
  color: #718096;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Checkbox e remember me */
.auth-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.auth-form-check-label {
  color: #4a5568;
  font-size: 0.9rem;
  margin: 0;
}

/* Botões de submissão */
.auth-submit-btn {
  padding: 0.75rem 1.5rem;
  background: #3182ce;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: #2c5aa0;
  transform: translateY(-1px);
}

.auth-submit-btn.register {
  background: #38a169;
}

.auth-submit-btn.register:hover {
  background: #2f855a;
}

/* Seções de links */
.auth-links-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.auth-links-section p {
  margin: 0.5rem 0;
  color: #4a5568;
  font-size: 0.9rem;
}

.auth-links-section a {
  color: #3182ce;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-links-section a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

/* Profile específico */
.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: #f7fafc;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  border: 3px solid #e2e8f0;
}

.profile-avatar i {
  font-size: 3rem;
  color: #a0aec0;
}

.profile-info-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-info-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 4px solid #3182ce;
}

.profile-info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.profile-info-value {
  color: #2d3748;
  font-size: 0.95rem;
}

.profile-info-value code {
  background: #edf2f7;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #2d3748;
}

/* Status badges para profile */
.profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-status-badge.active {
  background: #c6f6d5;
  color: #22543d;
}

.profile-status-badge.inactive {
  background: #e2e8f0;
  color: #4a5568;
}

/* Ações do profile */
.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.profile-action-btn:hover {
  background: #f7fafc;
  color: #2d3748;
  text-decoration: none;
  transform: translateY(-1px);
}

.profile-action-btn.primary {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.profile-action-btn.primary:hover {
  background: #2c5aa0;
  color: white;
}

.profile-action-btn.success {
  background: #38a169;
  color: white;
  border-color: #38a169;
}

.profile-action-btn.success:hover {
  background: #2f855a;
  color: white;
}

/* Seção de links secundários do profile */
.profile-secondary-actions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.profile-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #edf2f7;
  color: #4a5568;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.profile-secondary-btn:hover {
  background: #e2e8f0;
  color: #2d3748;
  text-decoration: none;
}

/* Responsividade para auth pages */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
    min-height: 70vh;
  }
  
  .auth-layout {
    max-width: 100%;
  }
  
  .auth-card-body {
    padding: 1.5rem;
  }
  
  .profile-actions {
    grid-template-columns: 1fr;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .profile-avatar i {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 0.5rem;
  }
  
  .auth-card-body {
    padding: 1rem;
  }
  
  .auth-card-title {
    font-size: 1.25rem;
  }
  
  .profile-info-grid {
    gap: 0.75rem;
  }
  
  .profile-actions {
    gap: 0.75rem;
  }
}

/* ============================
   PRICING PAGE STYLES
   ============================ */

/* Grid dos planos */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Card do plano */
.pricing-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Plano atual */
.pricing-card.current-plan {
  border-color: #38a169;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

/* Plano recomendado */
.pricing-card.recommended {
  border-color: #3182ce;
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

/* Badge do plano */
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.plan-badge.current {
  background: #38a169;
  color: white;
}

.plan-badge.recommended {
  background: #3182ce;
  color: white;
}

/* Header do card */
.pricing-header {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: white;
}

.plan-price {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Features do plano */
.pricing-features {
  padding: 2rem 1.5rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f4;
  font-size: 0.95rem;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item.disabled {
  opacity: 0.5;
}

.feature-check {
  color: #38a169;
  font-size: 1rem;
  min-width: 16px;
}

.feature-cross {
  color: #a0aec0;
  font-size: 1rem;
  min-width: 16px;
}

/* Ação do card */
.pricing-action {
  padding: 1.5rem;
  border-top: 1px solid #f1f3f4;
}

.pricing-action .action-btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  padding: 0.875rem;
}

.pricing-action form {
  width: 100%;
}

/* Alert card para fallback */
.alert-card {
  background: #fff5f5;
  border: 2px solid #fed7d7;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #c53030;
}

.alert-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e53e3e;
}

.alert-card p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

/* Seção de comparação */
.comparison-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.features-table th {
  background: #f7fafc;
  padding: 1rem;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
}

.features-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f3f4;
  text-align: center;
}

.features-table tr:last-child td {
  border-bottom: none;
}

.feature-name {
  font-weight: 600;
  text-align: left !important;
  background: #f7fafc;
}

.feature-value {
  color: #4a5568;
}

.text-success {
  color: #38a169 !important;
}

.text-muted {
  color: #a0aec0 !important;
}

.plan-column {
  min-width: 120px;
}

/* FAQ Section */
.faq-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.faq-content {
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid #f1f3f4;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f7fafc;
}

.faq-question h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

.faq-question i {
  color: #718096;
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #4a5568;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dashboard-container {
    padding: 1rem;
  }
  
  .pricing-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .plan-name {
    font-size: 1.25rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .features-table {
    font-size: 0.8rem;
  }
  
  .features-table th,
  .features-table td {
    padding: 0.75rem 0.5rem;
  }
}
