/* Notifications CSS */

@keyframes bell-ring {
  0%        { transform: rotate(0deg); }
  8%        { transform: rotate(-15deg); }
  16%       { transform: rotate(14deg); }
  24%       { transform: rotate(-10deg); }
  30%       { transform: rotate(7deg); }
  36%       { transform: rotate(-3deg); }
  40%, 100% { transform: rotate(0deg); }
}

.bell-has-unread {
  animation: bell-ring 4s ease-in-out infinite;
  display: inline-block;
  transform-origin: top center;
}

.app-notifications-dropdown .dropdown-toggle::after {
  display: none; /* Hide the default caret */
}

.app-notifications-dropdown .dropdown-menu {
  animation: dropdownFadeIn 0.2s ease-out;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.app-notification-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.app-notification-item {
  transition: background-color 0.2s ease, transform 0.1s ease;
  border-color: var(--border-color) !important;
}

.app-notification-item:hover {
  background-color: var(--hover-bg, #f8fafc);
}

.app-notification-unread {
  background-color: #f0fdf4 !important; /* Very subtle green/blue depending on theme */
  border-left: 4px solid var(--bs-primary) !important;
}

.app-notification-unread:hover {
  background-color: #e6fcf0 !important;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.app-notification-action {
  transition: color 0.2s ease;
}

.app-notification-action:hover {
  color: var(--bs-primary) !important;
}

.max-w-4xl {
  max-width: 56rem;
}

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

/* Fix para dropdown de notificações no mobile */
@media (max-width: 576px) {
  .app-notifications-menu {
    position: fixed !important;
    top: 60px !important; /* Altura aproximada do topbar */
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important; /* Desativa transformações do Popper.js */
  }
}

/* Premium Modal Styles matching the base image but adapted to standard layout (8px radius) */
.notification-modal-content {
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden;
  background-color: #ffffff;
}

.notification-modal-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 14px 18px !important;
}

.btn-close-custom {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  transition: all 0.2s;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.btn-close-custom:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Tabs styles */
.notification-tabs {
  border-bottom: none !important;
}

.notification-tabs .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b !important;
  border: none !important;
  padding: 0.5rem 0.25rem 0.75rem 0.25rem !important;
  background: transparent !important;
  position: relative;
  transition: color 0.2s ease;
}

.notification-tabs .nav-link:hover {
  color: #3b82f6 !important;
}

.notification-tabs .nav-link.active {
  color: #2563eb !important;
  font-weight: 600;
}

.notification-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #2563eb;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.notification-tabs .nav-link.active::after {
  transform: scaleX(1);
}

.badge-count {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
}

.notification-tabs .nav-link.active .badge-count {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}

.notification-tabs .nav-link:not(.active) .badge-count {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
}

.mark-all-read-btn {
  color: #2563eb !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
}

.mark-all-read-btn:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* Notification Item Layout */
.notification-list-item {
  transition: background-color 0.2s ease;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9 !important;
}

.notification-list-item:hover {
  background-color: #f8fafc;
}

/* Pastel Icon Circle Styles */
.icon-circle-pastel {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notif-color-blue {
  background-color: #eff6ff;
  color: #3b82f6;
}

.notif-color-green {
  background-color: #f0fdf4;
  color: #22c55e;
}

.notif-color-orange {
  background-color: #fff7ed;
  color: #f97316;
}

/* Unread blue dot indicator */
.unread-dot-indicator {
  width: 8px;
  height: 8px;
  background-color: #2563eb;
  border-radius: 50%;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
}

.badge-nova-pill {
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Text descriptions styles */
.font-title {
  color: #0f172a;
}

.text-description {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-outline-acessar {
  border: 1.5px solid #bfdbfe !important;
  color: #2563eb !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-acessar:hover {
  background-color: #eff6ff;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

.btn-marcar-lida {
  color: #64748b !important;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0;
  margin-left: 0.75rem;
  transition: color 0.2s;
  border: none;
  background: transparent;
}

.btn-marcar-lida:hover {
  color: #0f172a !important;
}

/* Style dropdown items */
.style-dropdown-item {
  font-size: 0.875rem;
  color: #334155;
  transition: all 0.15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.style-dropdown-item:hover {
  background-color: #f1f5f9;
}

/* Empty states styling */
.empty-state-container {
  padding: 3rem 1.5rem !important;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background-color: #f8fafc;
  color: #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
