/**
 * DeMV Platform - Notification Styles
 * Styles for the notification system
 */

/* Notification bell in navigation */
.nav-actions {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.notification-bell-btn {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-bell-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.notification-bell-btn:active {
  transform: scale(0.95);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff3e3e;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-weight: bold;
  border: 2px solid #1e1e2f;
  transform: translate(25%, -25%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification-badge.has-notifications {
  opacity: 1;
}

/* Mobile notification link */
.mobile-notification-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Mobile menu close button */
.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff3366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: #ff0044;
  transform: scale(1.1);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

.mobile-notification-badge {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  margin-left: 10px;
  min-width: 22px;
  height: 22px;
}

/* Notification panel */
.notification-panel {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background-color: #1e1e2f;
  border: 1px solid #2a2a45;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s ease;
}

.notification-panel.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #2a2a45;
}

.notification-panel-header h3 {
  margin: 0;
  color: #fff;
}

.notification-panel-header button {
  background: none;
  border: none;
  color: #00a8ff;
  cursor: pointer;
  font-size: 0.8rem;
}

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

.notification-item {
  padding: 15px;
  border-bottom: 1px solid #2a2a45;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.notification-item.unread {
  border-left: 3px solid #00a8ff;
}

.notification-item.priority-urgent {
  border-left: 3px solid #ff3e3e;
}

.notification-item.priority-high {
  border-left: 3px solid #ff9f1a;
}

.notification-item.priority-medium {
  border-left: 3px solid #00a8ff;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.notification-title {
  font-weight: bold;
  color: #fff;
}

.notification-time {
  font-size: 0.8rem;
  color: #8a8a9b;
}

.notification-content {
  color: #c5c5d2;
  font-size: 0.9rem;
}

.notification-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.notification-action-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: none;
  background-color: #2a2a45;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}

.notification-action-btn:hover {
  background-color: #3a3a55;
}

.notification-action-btn.primary {
  background-color: #00a8ff;
}

.notification-action-btn.primary:hover {
  background-color: #0090e0;
}

.empty-notifications {
  padding: 20px;
  text-align: center;
  color: #8a8a9b;
}

/* Cyberpunk theme enhancements */
.cyberpunk-theme .notification-bell-btn {
  text-shadow: 0 0 5px rgba(0, 168, 255, 0.7);
}

.cyberpunk-theme .notification-bell-btn:hover {
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.9);
}

.cyberpunk-theme .notification-badge {
  box-shadow: 0 0 5px rgba(255, 62, 62, 0.7);
}

.cyberpunk-theme .notification-panel {
  border: 1px solid #00a8ff;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.cyberpunk-theme .notification-panel-header {
  background: linear-gradient(90deg, #1e1e2f 0%, #2a2a45 100%);
}

.cyberpunk-theme .notification-item.unread {
  background: linear-gradient(90deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 168, 255, 0) 100%);
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .notification-panel {
    width: 90%;
    max-width: 350px;
    right: 5%;
  }
}

/* Special handling for problematic width range (762px-975px) */
@media screen and (min-width: 762px) and (max-width: 975px) {
  .nav-actions {
    margin-right: 5px;
  }
  
  .notification-bell-btn {
    font-size: 1rem;
    width: 32px;
    height: 32px;
  }
}

/* Toast notifications */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #1e1e2f;
  border-left: 4px solid #00a8ff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 350px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast.priority-high {
  border-left-color: #ff9f1a;
}

.notification-toast.priority-urgent {
  border-left-color: #ff3e3e;
}

.notification-toast-title {
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

.notification-toast-message {
  color: #c5c5d2;
  font-size: 0.9rem;
}
