/* Notifications System Styles */

/* Notification dropdown menu */
.notifications-menu .dropdown-menu {
  width: 350px;
  max-width: 90vw;
  padding: 0;
}

.notifications-menu .dropdown-menu .header {
  padding: 10px 15px;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  color: #333;
}

.notifications-menu .dropdown-menu .menu {
  max-height: 400px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.notifications-menu .dropdown-menu .menu li {
  border-bottom: 1px solid #f0f0f0;
}

.notifications-menu .dropdown-menu .menu li:last-child {
  border-bottom: none;
}

/* Notification item */
.notification-item {
  position: relative;
}

.notification-item.unread {
  background-color: #f8f9fa;
}

.notification-item.read {
  background-color: #fff;
  opacity: 0.8;
}

.notification-item .notification-link {
  display: flex;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.notification-item .notification-link:hover {
  background-color: #e8e8e8;
  text-decoration: none;
}

.notification-item .notification-link i {
  font-size: 20px;
  width: 30px;
  text-align: center;
  margin-right: 12px;
  margin-top: 2px;
}

.notification-item .notification-content {
  flex: 1;
  min-width: 0;
}

.notification-item .notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-item .notification-message {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-item .notification-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* Unread indicator */
.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #3c8dbc;
}

/* Notification count badge */
.notifications-menu .label {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  padding: 2px 5px;
  min-width: 18px;
  text-align: center;
  border-radius: 10px;
}

/* Footer */
.notifications-menu .dropdown-menu .footer {
  padding: 8px 15px;
  background-color: #f4f4f4;
  border-top: 1px solid #ddd;
  text-align: center;
}

.notifications-menu .dropdown-menu .footer a {
  color: #3c8dbc;
  text-decoration: none;
  font-size: 12px;
}

.notifications-menu .dropdown-menu .footer a:hover {
  text-decoration: underline;
}

/* Color classes for notification types */
.text-blue {
  color: #3c8dbc !important;
}

.text-red {
  color: #dd4b39 !important;
}

.text-green {
  color: #00a65a !important;
}

.text-yellow {
  color: #f39c12 !important;
}

.text-orange {
  color: #ff9800 !important;
}

/* Loading state */
.notifications-menu .menu .text-center {
  padding: 30px 15px;
  color: #999;
}

/* Empty state */
.notifications-menu .menu .text-center em {
  font-style: normal;
  color: #999;
}

/* Scrollbar styling for notification list */
.notifications-menu .menu::-webkit-scrollbar {
  width: 6px;
}

.notifications-menu .menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notifications-menu .menu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.notifications-menu .menu::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .notifications-menu .dropdown-menu {
    width: 300px;
    right: 0;
    left: auto;
  }
}

