/* Base Styles */
.dropdown_menu span {
  margin: 0 10px;
  color: #3F88A5;
}

.d-flex .background2 {
  background: #ffffff;
  padding-bottom: inherit;
  width: 100%;
  left: 0;
  top: 0;
  position: fixed;
  z-index: 1045;
}

.back_text {
  color: #3F88A5;
  font-size: 28;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  word-wrap: "break-word"
}

.back_quninti:hover,
.back_quninti a:hover,
.back_quninti .step_icon:hover,
.back_quninti i:hover {
  cursor: pointer;
}

li.nav-item.dropdown.text_down {
  align-items: center;
  gap: 11px;
}

/* Header overflow fix - IMPORTANT */
.notification-dropdown {
  position: static !important;
}

.topbar_esg {
  overflow: visible !important;
}

.navbar {
  overflow: visible !important;
}

#page-content-wrapper {
  overflow: visible !important;
}

/* ========================================
   NOTIFICATION DRAWER - IMPROVED DESIGN
   ======================================== */

/* Notification Drawer Container */
.notification-drawer {
  position: fixed;
  right: 20px;
  top: 70px;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  overflow: hidden;
  border: 1px solid rgba(63, 136, 165, 0.1);
}

.notification-drawer.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Notification Drawer Header */
.notification-drawer-header {
  background: linear-gradient(135deg, #3F88A5 0%, #2d6b82 100%);
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-title i {
  font-size: 18px;
}

.unread-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  min-width: 24px;
  backdrop-filter: blur(10px);
}

/* Notification Actions */
.notification-actions {
  display: flex;
  gap: 8px;
}

.notification-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.notification-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.notification-action-btn i {
  font-size: 14px;
}

/* Notification Drawer Body */
.notification-drawer-body {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
}

/* Custom Scrollbar */
.notification-drawer-body::-webkit-scrollbar {
  width: 6px;
}

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

.notification-drawer-body::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.notification-drawer-body::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Notification Item */
.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  background: #ffffff;
}

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

.notification-item.unread {
  background: linear-gradient(to right, rgba(63, 136, 165, 0.04) 0%, rgba(63, 136, 165, 0.02) 100%);
}

.notification-item.unread:hover {
  background: linear-gradient(to right, rgba(63, 136, 165, 0.06) 0%, rgba(63, 136, 165, 0.03) 100%);
}

/* Notification Icon Wrapper */
.notification-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.notification-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3F88A5 0%, #2d6b82 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(63, 136, 165, 0.25);
}

.notification-icon i {
  color: #ffffff;
  font-size: 18px;
}

.unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #3F88A5;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63, 136, 165, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(63, 136, 165, 0);
  }
}

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

.notification-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.notification-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.notification-time {
  font-size: 11px;
  color: #718096;
  font-weight: 500;
  white-space: nowrap;
  background: #f7fafc;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.notification-message {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Notification Footer */
.notification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-date {
  font-size: 11px;
  color: #a0aec0;
  font-weight: 500;
}

.mark-read-btn {
  background: transparent;
  border: 1px solid #3F88A5;
  color: #3F88A5;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.mark-read-btn:hover {
  background: #3F88A5;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(63, 136, 165, 0.25);
}

.mark-read-btn i {
  font-size: 10px;
}

/* Empty State */
.notification-empty-state {
  padding: 60px 30px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-icon i {
  font-size: 36px;
  color: #cbd5e0;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.empty-message {
  font-size: 13px;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

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

/* ========================================
   NOTIFICATION BELL ICON
   ======================================== */

/* Bell Icon Container */
.elly a {
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.elly a:hover {
  background-color: var(--primary-blue-light);
  transform: scale(1.08);
}

/* Bell Icon Animation on Hover */
.ellly {
  transition: all 0.3s ease;
}

.elly a:hover .ellly {
  animation: bell-ring 0.5s ease-in-out;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
  50% { transform: rotate(0deg); }
}

/* Notification Bell Badge */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #3F88A5 0%, #2d6b82 100%);
  color: #ffffff;
  border-radius: 50%;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(63, 136, 165, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* ========================================
   MODAL STYLING - CONSISTENT DESIGN
   ======================================== */

/* Modal and Backdrop Z-Index Management */
/* .modal {
  z-index: 10000 !important;
}

.modal-backdrop {
  z-index: 9999 !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(2px);
}

.modal.show {
  display: block !important;
}

.modal-content {
  border-radius: 12px;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: linear-gradient(135deg, #3F88A5 0%, #2d6b82 100%);
  border-bottom: none;
  padding: 20px 24px;
}

.modal-header .modal-title {
  color: #ffffff ;
  font-size: 18px;
  font-weight: 600 ;
  display: flex;
  align-items: center;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 32px 24px;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px;
  background: #f8fafc;
}

.modal-footer .btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #3F88A5 0%, #2d6b82 100%);
  border: none;
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 136, 165, 0.3);
}

.modal-footer .btn-danger {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  border: none;
}

.modal-footer .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.modal-footer .btn-outline-secondary {
  border: 2px solid #cbd5e0;
  color: #4a5568;
  background: #ffffff;
}

.modal-footer .btn-outline-secondary:hover {
  background: #f7fafc;
  border-color: #a0aec0;
  transform: translateY(-2px);
} */

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .notification-drawer {
    width: calc(100vw - 24px);
    right: 12px;
    top: 60px;
  }

  .notification-drawer-body {
    max-height: 360px;
  }

  .notification-drawer-header {
    padding: 14px 16px;
  }

  .notification-item {
    padding: 14px 16px;
  }

  .notification-icon {
    width: 38px;
    height: 38px;
  }

  .notification-icon i {
    font-size: 16px;
  }

  .notification-item-title {
    font-size: 13px;
  }

  .notification-message {
    font-size: 12px;
  }

  .modal-dialog {
    margin: 1rem;
  }

  .notification-actions {
    gap: 6px;
  }

  .notification-action-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .notification-drawer {
    width: calc(100vw - 16px);
    right: 8px;
  }

  .notification-title {
    font-size: 14px;
  }

  .mark-read-btn {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.notification-action-btn:focus,
.mark-read-btn:focus {
  outline: 2px solid #3F88A5;
  outline-offset: 2px;
}

.notification-item:focus {
  outline: 2px solid #3F88A5;
  outline-offset: -2px;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
  .notification-drawer {
    background: #1a202c;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .notification-drawer-body {
    background: #1a202c;
  }

  .notification-item {
    background: #1a202c;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .notification-item:hover {
    background: #2d3748;
  }

  .notification-item.unread {
    background: linear-gradient(to right, rgba(63, 136, 165, 0.12) 0%, rgba(63, 136, 165, 0.06) 100%);
  }

  .notification-item-title {
    color: #e2e8f0;
  }

  .notification-message {
    color: #cbd5e0;
  }

  .notification-time {
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
  }

  .empty-icon {
    background: rgba(255, 255, 255, 0.05);
  }

  .empty-title {
    color: #e2e8f0;
  }

  .modal-content {
    background: #2d3748;
    color: #e2e8f0;
  }

  .modal-footer {
    background: #1a202c;
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.toast-label {
  font-weight: 600;
  margin-right: 4px;
}

.toast-body-text .tagged-name {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.25);
}

.toast-body-text .tagged-everyone {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background-color: rgba(255, 193, 7, 0.3);
  color: #fffbe6;
}

.notification-body-html .tagged-name {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background-color: rgba(0, 123, 255, 0.15);
  color: #0056b3;
}

.notification-body-html .tagged-everyone {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background-color: rgba(255, 193, 7, 0.25);
}

