/* Estilos generales para modo oscuro */
body {
  background-color: #121212;
  color: #ffffff;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Enlaces y navegación */
a, .navbar-brand, .nav-link {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, .nav-link:hover, .navbar-brand:hover {
  color: #40e0d0 !important;
}

/* Contenedores y secciones */
.content-section {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.content-section h2, .content-section h3 {
  font-weight: bold;
  color: #40e0d0;
  margin-bottom: 1.5rem;
}
.content-section h2 i, .content-section h3 i {
  margin-right: 0.5rem;
}

/* Highlight turquesa */
.hover-turquoise {
  transition: color 0.3s ease;
}
.hover-turquoise:hover {
  color: #40e0d0;
}

/* Bloques de código */
pre {
  background: #2b2b2b;
  color: #b9b9b9;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1.5rem 0;
}
code {
  background-color: #2b2b2b;
  color: #40e0d0;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
}

/* Tabla de resultados */
.table-dark {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.table-dark th, .table-dark td {
  color: #fff;
  vertical-align: middle;
  padding: 1rem;
}
.table-dark thead th {
  background-color: #2a2a2a;
  font-weight: bold;
}
.table-hover tbody tr:hover {
  background-color: #333333;
  transition: background-color 0.3s ease;
}

/* Alertas y mensajes */
.alert {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
}
.alert-success {
  background-color: #2e7d32;
  color: #fff;
}
.alert-danger {
  background-color: #c62828;
  color: #fff;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  padding: 2rem 0;
  color: #bdbdbd;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}
footer a {
  color: #40e0d0 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #fff !important;
}

/* Modal personalizado */
.modal-content {
  background-color: #1e1e1e;
  color: #fff;
  border-radius: 8px;
}
.modal-header {
  border-bottom: 1px solid #333;
}
.modal-footer {
  border-top: 1px solid #333;
}
.btn-close {
  filter: invert(1);
}

/* Botones personalizados */
.btn-info {
  background-color: #40e0d0;
  border: none;
  color: #121212;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-info:hover {
  background-color: #30c0b0;
}
.btn-outline-info {
  border-color: #40e0d0;
  color: #40e0d0;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline-info:hover {
  background-color: #40e0d0;
  color: #121212;
}

/* Inputs personalizados */
.form-control {
  background-color: #2b2b2b;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  background-color: #2b2b2b;
  border-color: #40e0d0;
  box-shadow: 0 0 0 0.2rem rgba(64, 224, 208, 0.25);
  color: #fff;
}

/* Mensajes de estado */
#statusMessage, #apiKeyStatus {
  margin-top: 1rem;
  font-weight: bold;
  color: #40e0d0;
}

/* Responsividad */
@media (max-width: 768px) {
  .content-section {
    padding: 1rem;
    margin: 1rem auto;
  }
  .navbar-nav {
    margin-top: 1rem;
  }
  .btn-outline-info {
    margin-top: 1rem;
  }
}