/* Estilos de la plantilla base.
   Estaban incrustados en app/templates/base.html. Se sacaron aqui para
   respetar el limite de 1000 lineas por fichero (docs/convenciones/CONVENCIONES.md).
   Se carga despues de style.css y del bloque styles de cada plantilla,
   igual que cuando estaba dentro del HTML: el orden decide quien gana. */

.navbar .nav-link.login-btn {
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.3s ease;
}

.navbar .nav-link.login-btn:hover {
  color: #0dcaf0;
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Estilos para el chat flotante */
.chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(13, 202, 240, 0.5);
}

.chat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #0dcaf0;
  font-size: 24px;
  position: relative;
}

.chat-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: white;
  color: #0dcaf0;
  border-bottom: 1px solid #eee;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.chat-item:hover {
  background-color: #f8f9fa;
}

.chat-item.unread {
  background-color: #e7f3ff;
}

.chat-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.chat-item-content {
  flex: 1;
}

.chat-item-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.chat-item-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
}

.chat-item-badge {
  background-color: var(--bs-danger);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
