/* Notifications Styles */

.notifications-container {
  position: relative;
  display: inline-block;
}

/* Hide the img notification icon, only show the SVG */
/* .notifications-container img.notification-icon {
  display: none;
} */

.notifications-container a {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-sizing: content-box !important;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  & > svg,
  & > img {
    height: 30px;
    width: 30px;
  }
}

.notifications-container a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.notifications-container a.active {
  background-color: black;
  border-radius: 6px;
}

.notifications-container a.active .notification-icon {
  filter: brightness(1.2);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  display: none !important;
  top: 10%;
  right: 24%;
  background-color: #ffe01b;
  color: white;
  border-radius: 50%;
  width: 7.5px;
  height: 7.5px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid red;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Notifications Panel */
.notifications-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 440px;
  max-height: 400px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
  margin-top: 8px;
}

.notifications-panel.active {
  display: block;
  animation: slideDown 0.2s ease-out;
}

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

/* Notifications Minibar */
.notifications-minibar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #e9e9e9;
  border-bottom: 1px solid #e0e0e0;
}

.minibar-text {
  color: var(--Gris, #231f20) !important;
  font-size: 18px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 18px */
}
button.minibar-text {
  & > svg {
    flex-grow: 0;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 768px) {
  #notificationsPanel {
    width: 100vw;
    position: fixed;
    left: 0;
    top: 50px;
    border-radius: 0;
    height: calc(100vh - 50px);
    height: calc(100svh - 50px);
    max-height: none;
  }
}

.notifications-minibar button {
  background: none;
  border: none;
  color: #007bff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notifications-minibar button:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Notifications List */
.notifications-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
}

.notifications-list::-webkit-scrollbar {
  width: 6px;
}

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

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

.notifications-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Notification Item */
.notification-item {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.notification-content button {
  display: flex;
  padding: 16px 30px !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  background: var(--Rojo-1, #df0209);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 16px */
  cursor: pointer;
}

.notification-item:last-child {
  border-bottom: none;
}

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

/* .notification-item.unread {
  background-color: #f0f8ff;
  border-left: 3px solid #007bff;
} */

.notification-item.unread::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 16px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Notification Content */
.notification-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-title {
  color: var(--Gris, #231f20);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 19.2px */
}

.notification-text {
  color: var(--Gris, #231f20);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.notification-time {
  color: rgba(35, 31, 32, 0.5);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
}

/* .notification-content button {
  align-self: flex-start;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
} */

/* .notification-content button:hover {
  background-color: #0056b3;
} */

/* Empty State */
.notifications-empty {
  padding: 32px 16px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notifications-panel {
    width: 300px;
    right: -50px;
  }
}

@media (max-width: 480px) {
  .notifications-panel {
    width: 280px;
    right: -100px;
  }

  .notification-item {
    padding: 12px;
  }

  .notifications-minibar {
    padding: 12px;
  }
}
