/* MaxiCare Admin Booking - Notification CSS Fixes */

/* Notification Dropdown Styling */
.dropdown-menu.to-top {
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

/* Notification Header */
.notification-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 16px;
  margin: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-header h6 {
  color: white !important;
  margin: 0;
  font-weight: 600;
}

/* Notification Count Badge */
#notificationCount {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* Notification List Container */
#notificationsList {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

#notificationsList::-webkit-scrollbar {
  width: 6px;
}

#notificationsList::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#notificationsList::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#notificationsList::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Individual Notification Items */
.notification-item {
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.notification-item:hover {
  background-color: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.notification-item.unread {
  background-color: #fef3c7;
  border-left: 3px solid #f59e0b;
}

/* Notification Icon */
.notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.notification-icon.primary {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.notification-icon.success {
  background-color: #d1fae5;
  color: #059669;
}

.notification-icon.danger {
  background-color: #fee2e2;
  color: #dc2626;
}

.notification-icon.warning {
  background-color: #fef3c7;
  color: #d97706;
}

.notification-icon.info {
  background-color: #dbeafe;
  color: #0284c7;
}

/* Notification Content */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1f2937;
  line-height: 1.4;
}

.notification-message {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Notification Time */
.notification-time {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Loading State */
.notification-loading {
  text-align: center;
  padding: 24px;
}

.notification-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #3b82f6;
}

.notification-loading p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Empty State */
.notification-empty {
  text-align: center;
  padding: 32px 24px;
}

.notification-empty .icon {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

.notification-empty p {
  color: #6b7280;
  margin: 0;
  font-size: 0.875rem;
}

/* See All Notifications Link */
.notification-footer {
  text-align: center;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.notification-footer a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.notification-footer a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* Notification Bell Icon */
.notification-bell {
  position: relative;
}

.notification-bell.has-notifications::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-item {
    padding: 12px 16px;
  }
  
  .notification-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .notification-message {
    max-width: 150px;
  }
  
  #notificationsList {
    max-height: 300px;
  }
}

/* Dark Theme Support */
[data-theme="dark"] .notification-item {
  color: #e5e7eb;
}

[data-theme="dark"] .notification-item:hover {
  background-color: #374151;
}

[data-theme="dark"] .notification-item.unread {
  background-color: #451a03;
  border-left-color: #f59e0b;
}

[data-theme="dark"] .notification-title {
  color: #f3f4f6;
}

[data-theme="dark"] .notification-message {
  color: #9ca3af;
}

[data-theme="dark"] .notification-time {
  color: #6b7280;
}

[data-theme="dark"] .notification-footer {
  background-color: #374151;
  border-top-color: #4b5563;
}

[data-theme="dark"] .notification-footer a {
  color: #60a5fa;
}

[data-theme="dark"] .notification-footer a:hover {
  color: #93c5fd;
}

/* Animation for new notifications */
@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification-item.new {
  animation: notificationSlideIn 0.3s ease-out;
}

/* Pulse animation for notification count */
@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#notificationCount.has-notifications {
  animation: notificationPulse 2s infinite;
}
