/* NotificationManager Styles */

/* Container for all notifications */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

/* Toast Notifications */
.notification-toast {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-toast[data-show="true"] {
  transform: translateX(0);
}

.notification-toast-content {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 12px;
  position: relative;
}

.notification-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon svg {
  width: 100%;
  height: 100%;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-message {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}

.notification-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.notification-close:hover {
  color: #ffffff;
}

/* Progress Bar */
.notification-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  width: 100%;
  background: currentColor;
  transition: width linear;
}

/* Toast Types */
.notification-success {
  border-left: 3px solid #10b981;
}

.notification-success .notification-icon {
  color: #10b981;
}

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

.notification-error {
  border-left: 3px solid #ef4444;
}

.notification-error .notification-icon {
  color: #ef4444;
}

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

.notification-warning {
  border-left: 3px solid #f59e0b;
}

.notification-warning .notification-icon {
  color: #f59e0b;
}

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

.notification-info {
  border-left: 3px solid #3b82f6;
}

.notification-info .notification-icon {
  color: #3b82f6;
}

.notification-info .notification-progress-bar {
  background: #3b82f6;
}

/* Confirmation Dialog */
.notification-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.notification-backdrop[data-show="true"] {
  opacity: 1;
}

.notification-confirm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  min-width: 320px;
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.notification-confirm[data-show="true"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.notification-confirm-content {
  padding: 24px;
  text-align: center;
}

.notification-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.notification-confirm-icon svg {
  width: 24px;
  height: 24px;
}

.notification-confirm-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.notification-confirm-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.notification-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.notification-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.notification-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.notification-btn-confirm {
  background: #3b82f6;
  color: #ffffff;
}

.notification-btn-confirm:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Confirm Types */
.notification-confirm-danger .notification-confirm-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.notification-btn-danger {
  background: #ef4444;
}

.notification-btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.notification-confirm-warning .notification-confirm-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.notification-btn-warning {
  background: #f59e0b;
}

.notification-btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.notification-confirm-info .notification-confirm-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Loading Spinner */
.notification-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: notification-spin 0.8s linear infinite;
}

@keyframes notification-spin {
  to { transform: rotate(360deg); }
}

/* Position Variants */
.notification-top-left {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  transform: translateX(-120%);
}

.notification-top-left[data-show="true"] {
  transform: translateX(0);
}

.notification-bottom-right {
  position: fixed;
  top: auto;
  bottom: 20px;
  right: 20px;
  transform: translateX(120%);
}

.notification-bottom-right[data-show="true"] {
  transform: translateX(0);
}

.notification-bottom-left {
  position: fixed;
  top: auto;
  bottom: 20px;
  left: 20px;
  right: auto;
  transform: translateX(-120%);
}

.notification-bottom-left[data-show="true"] {
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 480px) {
  .notification-container {
    max-width: calc(100vw - 40px);
  }

  .notification-confirm {
    width: calc(100vw - 40px);
    max-width: none;
  }

  .notification-confirm-buttons {
    flex-direction: column;
  }

  .notification-btn {
    width: 100%;
  }
}