/* Estilos adicionais para o ícone de notificações no menu do usuário */

.notification-wrapper {
  position: relative;
  margin-right: 15px;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.notification-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.notification-icon svg {
  color: var(--text);
}

/* Animação de pulso para o contador de notificações */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.notification-count:not(:empty) {
  animation: pulse 2s infinite;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .notification-wrapper {
    margin-right: 10px;
  }

  .notification-icon {
    width: 36px;
    height: 36px;
  }

  .notification-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Estilos para o sistema de notificações */
.header-notification {
  position: relative;
  margin-right: 15px;
}

.header-notification-icon {
  cursor: pointer;
  color: #ff375f !important;
  font-size: 1.2em;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-notification-icon:hover {
  background-color: rgba(255, 55, 95, 0.1);
  transform: scale(1.1);
}

.header-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

body.dark-mode .header-notification-count {
  border-color: #2d2d2d;
}

#header-notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  display: none;
  border: 1px solid #e0e0e0;
  margin-top: 10px;
}

body.dark-mode #header-notifications-dropdown {
  background-color: #2d2d2d;
  border-color: #444444;
}

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

body.dark-mode .notifications-header {
  border-bottom-color: #444444;
}

.notifications-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

body.dark-mode .notifications-title {
  color: #f0f0f0;
}

#header-mark-all-read {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}

#header-mark-all-read:hover {
  color: #2980b9;
}

#header-notifications-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

body.dark-mode .notification-item {
  border-bottom-color: #444444;
}

.notification-item:hover {
  background-color: #f9f9f9;
}

body.dark-mode .notification-item:hover {
  background-color: #3d3d3d;
}

.notification-item.unread {
  background-color: #f0f7ff;
}

body.dark-mode .notification-item.unread {
  background-color: #2c3e50;
}

.notification-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.notification-message {
  margin-bottom: 5px;
  font-size: 14px;
  color: #333333;
  line-height: 1.4;
}

body.dark-mode .notification-message {
  color: #f0f0f0;
}

.notification-time {
  color: #999;
  font-size: 12px;
}

.notifications-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #eee;
}

body.dark-mode .notifications-footer {
  border-top-color: #444444;
}

.view-all {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}

.notification-empty {
  padding: 20px;
  text-align: center;
  color: #999;
}

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
  #header-notifications-dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 320px !important;
    max-height: 80vh !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    z-index: 1001 !important;
  }

  #header-notifications-list {
    max-height: calc(80vh - 120px) !important;
  }

  .notifications-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .notifications-overlay.active {
    display: block;
  }
}
