/* Gerador e Validador de CPF - Codetude */

.codetude-cpf-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.cpf-tools-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.cpf-tool-section {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #6272a4;
}

.tool-title {
  color: #2c3e50;
  font-size: 24px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.tool-description {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.cpf-generator-form,
.cpf-validator-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #34495e;
  font-weight: 500;
  font-size: 14px;
}

.cpf-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.cpf-input:focus {
  outline: none;
  border-color: #6272a4;
}

.form-group input[type="checkbox"] {
  margin-right: 8px;
  width: auto;
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: #6272a4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #525f8f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(98, 114, 164, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

.cpf-resultado {
  margin-top: 20px;
}

.cpf-item {
  background: #f8f9fa;
  padding: 15px;
  padding-right: 50px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
  position: relative;
}

.cpf-item:hover {
  border-color: #6272a4;
  background: #f0f2f5;
}

.cpf-numero {
  font-family: "Courier New", monospace;
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  display: block;
  width: 100%;
}

.btn-copiar {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #6272a4;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-copiar:hover {
  background: #525f8f;
}

.btn-copiar.copiado {
  background: #067a06;
  color: #fff;
}

.validacao-resultado {
  margin-top: 20px;
  padding: 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.validacao-resultado.valido {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.validacao-resultado.invalido {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.cpf-loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
}

/* DOCUMENTAÇÃO */

.cpf-documentacao {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-top: 50px;
  line-height: 1.8;
}

.cpf-documentacao h2 {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 600;
  border-bottom: 3px solid #6272a4;
  padding-bottom: 15px;
}

.cpf-documentacao h3 {
  color: #34495e;
  font-size: 22px;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.doc-section {
  margin-bottom: 30px;
}

.doc-section p {
  color: #555;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

.doc-section ul,
.doc-section ol {
  margin-left: 25px;
  margin-bottom: 15px;
  color: #555;
}

.doc-section li {
  margin-bottom: 10px;
  font-size: 16px;
}

.doc-section strong {
  color: #2c3e50;
  font-weight: 600;
}

.doc-section a {
  color: #6272a4;
  text-decoration: none;
  font-weight: 500;
}

.doc-section a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  .codetude-cpf-container {
    padding: 15px;
  }

  .cpf-tools-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cpf-tool-section {
    padding: 20px;
  }

  .tool-title {
    font-size: 20px;
  }

  .cpf-documentacao {
    padding: 25px;
  }

  .cpf-documentacao h2 {
    font-size: 22px;
  }

  .cpf-documentacao h3 {
    font-size: 18px;
  }

  .cpf-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 15px;
  }

  .btn-copiar {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }
}
