
/* Notification Styles */
.notification-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: var(--z-dropdown);
  width: 300px;
  max-width: 90%;
}

.notification {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-dropdown);
  margin-bottom: 15px;
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  animation: slideInNotification 0.5s forwards;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--secondary-color);
  color: var(--white);
}

.notification-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.notification-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notification-body {
  padding: 15px;
  color: var(--text-dark);
}

.notification-footer {
  padding: 10px 15px;
  display: flex;
  justify-content: flex-end;
  background: var(--lighter-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Notification types */
.notification-success .notification-header {
  background: var(--success);
}

.notification-error .notification-header {
  background: var(--error);
}

.notification-warning .notification-header {
  background: var(--warning);
}

.notification-info .notification-header {
  background: var(--info);
}

/* Bell icon and dropdown styles */
.notification-bell {
  position: relative;
  cursor: pointer;
}

.notification-bell-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.notification-bell-icon:hover {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-dropdown);
  min-width: 300px;
  max-width: 90vw;
  z-index: var(--z-dropdown);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.notification-dropdown.show {
  display: block;
  animation: fadeInDown 0.3s ease forwards;
}

.notification-dropdown-header {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lighter-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.notification-dropdown-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.notification-dropdown-clear {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.notification-dropdown-clear:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.notification-dropdown-item {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.notification-dropdown-item:hover {
  background: var(--lighter-bg);
}

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

.notification-dropdown-item-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.notification-dropdown-item-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
  text-align: right;
}

.notification-dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Animations */
@keyframes slideInNotification {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Responsive styles */
@media (max-width: 576px) {
  .notification-container {
    width: calc(100% - 40px);
    right: 20px;
  }

  .notification-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: calc(100% - 40px);
  }
}

/* Notification Styles */
.notification-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: var(--z-dropdown);
  width: 300px;
  max-width: 90%;
}

.notification {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-dropdown);
  margin-bottom: 15px;
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  animation: slideInNotification 0.5s forwards;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--secondary-color);
  color: var(--white);
}

.notification-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.notification-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notification-body {
  padding: 15px;
  color: var(--text-dark);
}

.notification-footer {
  padding: 10px 15px;
  display: flex;
  justify-content: flex-end;
  background: var(--lighter-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Notification types */
.notification-success .notification-header {
  background: var(--success);
}

.notification-error .notification-header {
  background: var(--error);
}

.notification-warning .notification-header {
  background: var(--warning);
}

.notification-info .notification-header {
  background: var(--info);
}

/* Bell icon and dropdown styles */
.notification-bell {
  position: relative;
  cursor: pointer;
}

.notification-bell-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.notification-bell-icon:hover {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-dropdown);
  min-width: 300px;
  max-width: 90vw;
  z-index: var(--z-dropdown);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.notification-dropdown.show {
  display: block;
  animation: fadeInDown 0.3s ease forwards;
}

.notification-dropdown-header {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lighter-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.notification-dropdown-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.notification-dropdown-clear {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.notification-dropdown-clear:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.notification-dropdown-item {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.notification-dropdown-item:hover {
  background: var(--lighter-bg);
}

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

.notification-dropdown-item-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.notification-dropdown-item-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
  text-align: right;
}

.notification-dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Animations */
@keyframes slideInNotification {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Responsive styles */
@media (max-width: 576px) {
  .notification-container {
    width: calc(100% - 40px);
    right: 20px;
  }

  .notification-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: calc(100% - 40px);
  }
}
