/* Global ticket notifications + toast UI (Hotwire/Turbo friendly) */

/* Toast animations */
@keyframes beoee-slide-in-right {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes beoee-slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

/* Toast container */
.toast-container-global {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Minimal toast */
.toast-global-minimal {
  background: #fff;
  border-left: 4px solid;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  min-width: 320px;
  max-width: 360px;
  animation: beoee-slide-in-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  transition: box-shadow 0.2s ease;
}

.toast-global-minimal.exit {
  animation: beoee-slide-out-right 0.3s ease-out;
  opacity: 0;
}

.toast-global-minimal:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Type accents */
.toast-global-minimal.success { border-left-color: #10b981; }
.toast-global-minimal.error { border-left-color: #ef4444; }
.toast-global-minimal.warning { border-left-color: #f59e0b; }
.toast-global-minimal.info { border-left-color: #3b82f6; }

/* Icon badge */
.toast-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 600;
}

.toast-global-minimal.success .toast-icon-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.toast-global-minimal.error .toast-icon-badge { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.toast-global-minimal.warning .toast-icon-badge { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.toast-global-minimal.info .toast-icon-badge { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

/* Content */
.toast-content-global { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.toast-title-global { font-size: 14px; font-weight: 600; color: #1f2937; }
.toast-message-global { font-size: 13px; color: #6b7280; line-height: 1.4; }

/* Close button */
.toast-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #d1d5db;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.toast-close-btn:hover { color: #9ca3af; }

/* Ticket notifications pulse */
@keyframes beoee-notification-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

#tickets-notifications-trigger i {
  transition: color 0.2s ease;
  display: inline-block;
}

#tickets-notifications-trigger i.notification-pulse {
  animation: beoee-notification-pulse 1.5s ease-in-out infinite;
}

/* Dropdown content helpers */
.notification-group-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid #e5e7eb;
}

.notification-group-badge {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
}

.ticket-notification-item {
  transition: transform 0.2s ease;
  position: relative;
  background: #fff;
}

.ticket-notification-item.unread { background: #fff; }

.ticket-notification-item:hover { transform: scale(1.01); }

.notification-item-emoji {
  font-size: 16px;
  min-width: 20px;
  display: inline-block;
}

