/* Unified Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.notification {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 16px;
  border-left: 4px solid #6c757d;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  opacity: 0;
  animation: slideIn 0.3s ease-in-out forwards;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification.success {
  border-left-color: #198754;
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.notification.warning {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.notification.error {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.notification.info {
  border-left-color: #0d6efd;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #343a40;
  margin: 0;
}

.notification-close {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.notification-close:hover {
  opacity: 1;
}

.notification-message {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #e9ecef;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  background: #6c757d;
  transition: width linear;
}

.notification.success .notification-progress-bar {
  background: #198754;
}

.notification.warning .notification-progress-bar {
  background: #ffc107;
}

.notification.error .notification-progress-bar {
  background: #dc3545;
}

.notification.info .notification-progress-bar {
  background: #0d6efd;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* RTL Support */
[dir="rtl"] .notification-container {
  right: auto;
  left: 20px;
}

[dir="rtl"] .notification {
  border-left: none;
  border-right: 4px solid #6c757d;
}

[dir="rtl"] .notification.success {
  border-right-color: #198754;
}

[dir="rtl"] .notification.warning {
  border-right-color: #ffc107;
}

[dir="rtl"] .notification.error {
  border-right-color: #dc3545;
}

[dir="rtl"] .notification.info {
  border-right-color: #0d6efd;
}
