/* Advanced Notification System for Himiq School */

.filter-notification {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 212, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 900;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Generic notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(26, 26, 26, 0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1000;
  max-width: 350px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.success {
  border-left-color: var(--sports);
}

.notification.warning {
  border-left-color: var(--values);
}

.notification.error {
  border-left-color: var(--science);
}

.notification.info {
  border-left-color: var(--humanities);
}

/* Animation for notifications */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Apply animations */
.notification, .filter-notification {
  animation: fadeIn 0.3s ease-out forwards;
}

.notification.fade-out, .filter-notification.fade-out {
  animation: fadeOut 0.5s ease-in forwards;
}

/* Toast notification for copy operations, shares, etc. */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Interactive notifications with actions */
.notification-with-actions {
  display: flex;
  flex-direction: column;
}

.notification-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.notification-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notification-btn.primary {
  background: var(--accent-primary);
  color: white;
}

.notification-btn.primary:hover {
  background: var(--accent-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .notification, .toast-notification {
    max-width: 90%;
    width: 90%;
  }
  
  .filter-notification {
    max-width: 90%;
    font-size: 0.9rem;
  }
}

/* Add support for light theme */
[data-theme="light"] .notification {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toast-notification {
  background: rgba(50, 50, 50, 0.9);
}
