/* ============================================================================
   SISTEMA DE NOTIFICAÇÕES - DROPDOWN (Global)
   ============================================================================ */

.notification-dropdown-container {
  position: relative;
  margin-right: 12px;
}

.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.notification-bell:hover {
  background: #A259FF;
  color: white;
  transform: scale(1.05);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: rgba(30, 30, 30, 0.98);
  border: 2px solid rgba(162, 89, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.2s ease;
}

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

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(162, 89, 255, 0.2);
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(255, 184, 0, 0.05));
}

.notification-dropdown-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: #A259FF;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 1rem;
}

.mark-all-read-btn:hover {
  background: rgba(162, 89, 255, 0.2);
  color: #FFB800;
}

.notification-dropdown-body {
  overflow-y: auto;
  max-height: 380px;
  padding: 0.5rem 0;
}

.notification-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
  background: rgba(162, 89, 255, 0.5);
  border-radius: 3px;
}

.notification-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background: rgba(162, 89, 255, 0.1);
}

.notification-item.unread {
  background: rgba(162, 89, 255, 0.05);
  border-left: 3px solid #A259FF;
}

.notification-item.unread:hover {
  background: rgba(162, 89, 255, 0.15);
}

.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(162, 89, 255, 0.2);
  border-radius: 50%;
  color: #A259FF;
  font-size: 1.1rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-message {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.75rem;
  color: #888;
}

.notification-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.notification-loading,
.notification-empty,
.notification-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #888;
  text-align: center;
}

.notification-loading i,
.notification-empty i,
.notification-error i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.notification-dropdown-footer {
  border-top: 1px solid rgba(162, 89, 255, 0.2);
  padding: 0.75rem;
  text-align: center;
}

.notification-dropdown-footer a {
  color: #A259FF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.notification-dropdown-footer a:hover {
  color: #FFB800;
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: calc(100vw - 2rem);
    right: -100px;
  }
}
