/* Modern Notification Styles for VFX Masters */

/* Bell Container */
.notification-bell-container {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 1000;
}

/* Bell Button */
.notification-bell {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #fff;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #4F46E5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid #4F46E5;
  outline: none;
  /* Create inner padding for the bell icon */
  box-sizing: border-box;
}

.notification-bell:hover {
  transform: scale(1.05);
  background-color: #4338ca;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

/* Badge for unread count */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  border-radius: 10px;
  background-color: #ef4444;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Notification Popup */
.notification-popup {
  position: fixed;
  bottom: 140px;
  right: 20px;
  z-index: 1001;
  width: 380px;
  max-width: 95vw;
  max-height: 80vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notification Popup Content */
.notification-popup-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 80vh;
}

/* Notification Header */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.notification-count {
  font-size: 12px;
  color: #6B7280;
  background-color: #F3F4F6;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 10px;
  font-weight: 500;
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-button:hover {
  background-color: #F3F4F6;
  color: #4B5563;
}

/* Notification Body */
.notification-body {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

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

.notification-body::-webkit-scrollbar-track {
  background: #F1F5F9;
}

.notification-body::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 20px;
}

/* Empty notification state */
.empty-notification {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #6B7280;
  text-align: center;
}

.empty-notification svg {
  margin-bottom: 15px;
  opacity: 0.6;
}

.empty-notification p {
  font-size: 16px;
  font-weight: 500;
  color: #4B5563;
  margin: 0 0 8px 0;
}

.empty-notification span {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.4;
}

/* Notification List */
.notification-list {
  display: flex;
  flex-direction: column;
}

/* Notification Item */
.notification-item {
  display: flex;
  padding: 16px 20px;
  transition: background-color 0.2s;
  position: relative;
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
  background-color: rgba(59, 130, 246, 0.05);
}

.notification-item.unread:hover {
  background-color: rgba(59, 130, 246, 0.08);
}

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

.notification-item.success.unread:before {
  background-color: #10B981;
}

.notification-item.warning.unread:before {
  background-color: #F59E0B;
}

.notification-item.error.unread:before {
  background-color: #EF4444;
}

.notification-icon {
  margin-right: 12px;
  color: #6B7280;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(107, 114, 128, 0.1);
  border-radius: 50%;
  padding: 6px;
}

.notification-item.success .notification-icon {
  color: #10B981;
  background-color: rgba(16, 185, 129, 0.1);
}

.notification-item.warning .notification-icon {
  color: #F59E0B;
  background-color: rgba(245, 158, 11, 0.1);
}

.notification-item.error .notification-icon {
  color: #EF4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.notification-item.info .notification-icon {
  color: #3B82F6;
  background-color: rgba(59, 130, 246, 0.1);
}

.notification-content {
  flex: 1;
}

.notification-content a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-message {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.notification-date {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.notification-action {
  font-size: 12px;
  color: #3B82F6;
  font-weight: 500;
  display: inline-block;
  padding: 2px 0;
  transition: color 0.2s;
}

.notification-action:hover {
  color: #2563EB;
  text-decoration: underline;
}

.notification-item.success .notification-action {
  color: #10B981;
}

.notification-item.success .notification-action:hover {
  color: #059669;
}

.notification-item.warning .notification-action {
  color: #F59E0B;
}

.notification-item.warning .notification-action:hover {
  color: #D97706;
}

.notification-item.error .notification-action {
  color: #EF4444;
}

.notification-item.error .notification-action:hover {
  color: #DC2626;
}

/* Notification Footer */
.notification-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.notification-footer a {
  font-size: 13px;
  color: #4F46E5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.notification-footer a:hover {
  color: #4338ca;
  text-decoration: underline;
}

/* Notification Flash Animation */
@keyframes notification-flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: #4F46E5; }
  100% { transform: scale(1); }
}

.notification-flash {
  animation: notification-flash 0.5s ease-in-out 2;
}

/* Custom icons for different notification types */
.notification-item .notification-icon i {
  font-size: 16px;
}

.notification-item.info .notification-icon i:before {
  content: "\f05a"; /* info circle */
}

.notification-item.success .notification-icon i:before {
  content: "\f058"; /* check circle */
}

.notification-item.warning .notification-icon i:before {
  content: "\f071"; /* exclamation triangle */
}

.notification-item.error .notification-icon i:before {
  content: "\f057"; /* times circle */
}
