/* Notification Sidebar */
.notification-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1625 0%, #2d1b4e 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.notification-sidebar.open {
  right: 0;
}

.notification-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1a1625 0%, #2d1b4e 100%);
  z-index: 10;
}

.notification-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.notification-close-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s;
}

.notification-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.notification-tabs {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.notification-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.notification-tab.active {
  color: #fff;
}

.notification-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
}

.notification-tab:hover:not(.active) {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.notification-content {
  padding: 16px 20px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  align-items: center;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 58, 237, 0.5);
}

.notification-item.clickable:hover {
  transform: translateX(-3px);
}

.notification-item.unread {
  border-left: 3px solid #7C3AED;
  background: rgba(124, 58, 237, 0.1);
}

/* Arrow indicator for clickable notifications */
.notification-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  padding-left: 8px;
  transition: all 0.3s;
}

.notification-item:hover .notification-arrow {
  color: #7C3AED;
  transform: translateX(3px);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.notification-icon.success {
  background: rgba(16, 185, 129, 0.2);
  color: #bb44f0;
}

.notification-icon.info {
  background: rgba(99, 102, 241, 0.2);
  color: #6366F1;
}

.notification-icon.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #bb44f0;
}

.notification-icon.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.notification-details {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: #666;
}

.notification-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.notification-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #444;
}

.notification-empty-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.notification-empty-subtext {
  font-size: 13px;
  color: #555;
}

.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.notification-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Badge on notification button */
.btn-notifications {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Loading state */
.notification-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #888;
}

.notification-loading i {
  font-size: 32px;
  margin-bottom: 12px;
  color: #7c3aed;
}

/* Header actions */
.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-mark-all-btn {
  background: rgba(16, 185, 129, 0.2);
  border: none;
  color: #bb44f0;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.notification-mark-all-btn:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* Unread dot */
.notification-unread-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  /* Notification sidebar should not cover bottom nav */
  .notification-sidebar {
    height: calc(100vh - 70px) !important; /* 70px = bottom nav height */
    bottom: 70px !important;
    top: auto !important;
  }

  .notification-sidebar.open {
    right: 0 !important;
    width: 100% !important;
  }
}