/* Notification Bell Container - Flexible positioning for header integration */
#notification-bell-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 0px;
  z-index: 9999;
}

#notification-bell {
  background: #dc2e36;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
}

#notification-bell svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

#notification-bell:hover {
  background: #005a87;
  transform: scale(1.05);
}

#notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3232;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

#notification-count.show {
  display: flex;
}

.notification-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.notification-item {
  background: #f9f9f9;
  border-left: 4px solid #007cba;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.notification-item.unread {
  background: #e7f3ff;
  border-left-color: #dc3232;
}

.notification-item:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notification-message {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.notification-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-date {
  color: #999;
}

.mark-read-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.mark-read-btn:hover {
  background: #005a87;
}

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

.notification-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.mark-all-read-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.mark-all-read-btn:hover {
  background: #218838;
}

/* Notification Dropdown Styles */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideDown 0.3s ease;
}

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

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

.notification-dropdown-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.mark-all-read-btn-dropdown {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease;
}

.mark-all-read-btn-dropdown:hover {
  background: #218838;
}

.notification-dropdown-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
}

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

.notification-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-dropdown-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.notification-loading {
  padding: 30px;
  text-align: center;
  color: #999;
}

.notification-dropdown-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  cursor: pointer;
}

.notification-dropdown-item:last-child {
  border-bottom: none;
}

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

.notification-dropdown-item.unread {
  background: #e7f3ff;
  border-left: 3px solid #007cba;
}

.notification-dropdown-message {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 6px;
}

.notification-dropdown-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.notification-dropdown-date {
  color: #999;
}

.notification-dropdown-mark-read {
  background: #007cba;
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
}

.notification-dropdown-mark-read:hover {
  background: #005a87;
}

.notification-dropdown-footer {
  padding: 12px 15px;
  border-top: 1px solid #eee;
  text-align: center;
}

.view-all-link {
  color: #007cba;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

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

.no-notifications-dropdown {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .notification-dropdown {
    width: 320px;
    right: -10px;
  }
}
