/* BiblioClick - Estilos específicos */
/* El estilo base viene de recuedu.css */

/* Estilos específicos para la aplicación */
.author-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Adaptativo: vertical en móviles, horizontal en pantallas medianas o grandes */
.author-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .author-row {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  
  .author-row label {
    min-width: 60px;
  }
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-fields label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

input,
select {
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Botón secundario verde */
.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Botón de peligro */
.btn-danger {
  color: #DC2626 !important;
  border-color: #DC2626 !important;
}

.btn-danger:hover {
  background-color: #DC2626 !important;
  color: white !important;
}

/* Lista de referencias */
.refs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-item {
  background: var(--bg-body);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.2s ease;
}

.ref-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ref-text {
  flex: 1;
  margin-right: 1rem;
  word-break: break-word;
  color: var(--text-main);
  line-height: 1.5;
}