/* notifications.css - Estilos para el centro de notificaciones */

.notif-nav {
  position: relative;
  margin-right: 15px;
}

.notif-trigger {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-color);
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.notif-trigger:hover {
  background: rgba(0,0,0,0.05);
}

.notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.notif-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid #eee;
}

.notif-panel.active {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.notif-header h3 {
  margin: 0;
  font-size: 1rem;
}

.notif-clear-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.notif-list {
  max-height: 400px;
  overflow-y: auto;
}

.notif-item {
  padding: 15px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-item:hover {
  background: #f8f9fa;
}

.notif-item.unread {
  background: #f0f7ff;
}

.notif-item.unread:hover {
  background: #e6f1ff;
}

.notif-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.notif-icon.info { background: #e3f2fd; color: #1976d2; }
.notif-icon.success { background: #e8f5e9; color: #2e7d32; }
.notif-icon.warning { background: #fff3e0; color: #f57c00; }
.notif-icon.error { background: #ffebee; color: #c62828; }

.notif-body {
  flex-grow: 1;
}

.notif-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.notif-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.75rem;
  color: #999;
  margin-top: 5px;
}

.notif-empty {
  padding: 30px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}
