/* Estilos para o sistema de notificações */
.notification-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.notification-icon {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #333333;
  text-decoration: none;
  position: relative;
}

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

.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu de notificações */
.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

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

.notifications-dropdown.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

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

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

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

.mark-all-read {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.mark-all-read:hover {
  background-color: rgba(255, 55, 95, 0.1);
}

.notifications-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notification-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
  cursor: pointer;
  position: relative;
}

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

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

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

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

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

.notification-item.unread:hover {
  background-color: rgba(255, 55, 95, 0.1);
}

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

/* Estilo para notificações informativas */
.notification-info {
  background-color: #f0f7ff;
  border-left: 3px solid #4a6cf7;
}

.notification-info .notification-content {
  color: #2c3e50;
}

.notification-info .notification-content strong {
  display: block;
  margin-bottom: 5px;
  color: #1e3a8a;
}

.notification-content {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

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

.notification-actions {
  display: inline-flex;
  align-items: center;
}

.mark-read {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mark-read:hover {
  background-color: rgba(255, 55, 95, 0.1);
}

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

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

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

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

.view-all:hover {
  text-decoration: underline;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ícone de notificação na barra de header */
.header-notification {
  position: relative;
  margin-right: 15px;
}

/* Destacar o ícone de notificação */
.header-notification-icon {
  cursor: pointer;
  color: #ff375f; /* Cor destacada */
  font-size: 1.2em;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.header-notification-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

body.dark-mode .header-notification-icon {
  color: #ff7b93;
  filter: drop-shadow(0 0 2px rgba(255, 123, 147, 0.3));
}

.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;
}

/* Estilos específicos para dispositivos móveis */
@media (max-width: 768px) {
  .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;
  }

  .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;
  }

  /* Destacar ainda mais o ícone em dispositivos móveis */
  .header-notification-icon {
    padding: 10px;
  }

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

