/* ===== NOTIFICATION SYSTEM ===== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  border-left: 4px solid;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.notification.show {
  transform: translateX(0);
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification.success {
  border-left-color: #059669;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #065f46;
}

.notification.warning {
  border-left-color: #d97706;
  background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
  color: #92400e;
}

.notification.error {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #991b1b;
}

.notification.info {
  border-left-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
}

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

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

.notification-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
}

.notification.success .notification-icon {
  background: #059669;
  color: white;
}

.notification.warning .notification-icon {
  background: #d97706;
  color: white;
}

.notification.error .notification-icon {
  background: #dc2626;
  color: white;
}

.notification.info .notification-icon {
  background: #2563eb;
  color: white;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 16px;
  line-height: 1;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.notification-message {
  color: inherit;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  background: currentColor;
  transition: width linear;
  border-radius: 0 0 8px 8px;
  opacity: 0.6;
}

.notification.success .notification-progress-bar {
  background: #059669;
}

.notification.warning .notification-progress-bar {
  background: #d97706;
}

.notification.error .notification-progress-bar {
  background: #dc2626;
}

.notification.info .notification-progress-bar {
  background: #2563eb;
}

/* Hover effects untuk interaktivitas yang lebih baik */
.notification:hover {
  transform: translateX(0) translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
}

/* Focus states untuk accessibility */
.notification:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Animation classes */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    margin-bottom: 8px;
    padding: 14px 16px;
  }
  
  .notification:hover {
    transform: translateX(0);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .notification {
    background: #1f2937;
    color: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .notification.success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #d1fae5;
  }
  
  .notification.warning {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fef3c7;
  }
  
  .notification.error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fecaca;
  }
  
  .notification.info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #dbeafe;
  }
  
  .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Accessibility */
.notification[role="alert"] {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .notification {
    border-width: 2px;
  }
  
  .notification-progress {
    height: 4px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .notification {
    transition: none;
  }
  
  .notification-progress-bar {
    transition: none;
  }
  
  .notification:hover {
    transform: none;
  }
}