/* Estilos específicos para a página de Anular Documento */

/* Variáveis de cores */
:root {
  --primary: #b71c50;
  --secondary: #2c3e50;
  --warning: #f39c12;
  --danger: #e74c3c;
  --success: #2ecc71;
  --info: #3498db;
  --dark: #333334;
  --gray: #8f8f8f;
  --light-gray: #f4f4f4;
  --background: #f9f9f9;
}

/* Estilos gerais da página */
.anular-header {
  background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
  color: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.anular-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: pulse 15s infinite linear;
  z-index: 1;
}

.anular-header h1 {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.anular-header h1 i {
  margin-right: 15px;
  font-size: 2.2rem;
}

.anular-header p {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  max-width: 80%;
  opacity: 0.9;
}

/* Estilos para os métodos de anulação */
.anular-metodos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metodo-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.metodo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.metodo-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.metodo-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.metodo-header h3 i {
  margin-right: 10px;
  color: var(--primary);
}

.metodo-header .numero {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.metodo-body {
  padding: 1.5rem;
}

.metodo-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.metodo-body li {
  margin-bottom: 0.8rem;
  position: relative;
}

.metodo-body li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.metodo-footer {
  background-color: var(--light-gray);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.metodo-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Estilos para a seção de passos */
.passos-container {
  margin-bottom: 2rem;
}

.passo {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.passo:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 20px;
  width: 2px;
  height: calc(100% + 1.5rem);
  background-color: var(--light-gray);
  z-index: 0;
}

.passo-numero {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.passo-conteudo {
  flex-grow: 1;
}

.passo-conteudo h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.passo-conteudo p {
  margin: 0;
  color: var(--gray);
}

/* Estilos para as dicas e alertas */
.dica-box {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid var(--info);
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.dica-box i {
  color: var(--info);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.dica-box h4 {
  display: inline-block;
  margin: 0 0 0.5rem 0;
  color: var(--info);
}

.dica-box p {
  margin: 0;
}

.alerta-box {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger);
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.alerta-box i {
  color: var(--danger);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.alerta-box h4 {
  display: inline-block;
  margin: 0 0 0.5rem 0;
  color: var(--danger);
}

.alerta-box p {
  margin: 0;
}

/* Tabela comparativa */
.tabela-comparativa {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.tabela-comparativa th {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
}

.tabela-comparativa td {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tabela-comparativa tr:nth-child(even) {
  background-color: var(--light-gray);
}

.tabela-comparativa tr:hover {
  background-color: rgba(183, 28, 80, 0.05);
}

/* Tabs personalizadas */
.custom-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.custom-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.custom-tab-btn:hover {
  color: var(--primary);
}

.custom-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.custom-tab-content {
  position: relative;
}

.custom-tab-pane {
  transition: opacity 0.3s ease;
}

.custom-tab-pane:not(.active) {
  display: none;
}

/* Animações */
@keyframes pulse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Dark mode para as tabs personalizadas */
[data-bs-theme="dark"] .custom-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .custom-tab-btn {
  color: #aaa;
}

[data-bs-theme="dark"] .custom-tab-btn:hover,
[data-bs-theme="dark"] .custom-tab-btn.active {
  color: var(--primary-light);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .anular-header h1 {
    font-size: 2rem;
  }
  
  .anular-header p {
    max-width: 100%;
    font-size: 1rem;
  }
  
  .anular-metodos {
    grid-template-columns: 1fr;
  }
}

/* Modo escuro */
[data-bs-theme="dark"] {
  --light-gray: #2c2c2c;
  
  .metodo-card,
  .tabela-comparativa {
    background-color: #252525;
  }
  
  .metodo-footer {
    background-color: #333;
  }
  
  .tabela-comparativa tr:nth-child(even) {
    background-color: #333;
  }
  
  .tabela-comparativa tr:hover {
    background-color: rgba(183, 28, 80, 0.1);
  }
  
  .dica-box {
    background-color: rgba(52, 152, 219, 0.05);
  }
  
  .alerta-box {
    background-color: rgba(231, 76, 60, 0.05);
  }
}
