/**
 * Circloud GUI - Notification Styles
 * Toast notifications and confirmation dialogs
 */

#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  min-width: 320px;
  max-width: 500px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  border-left: 4px solid;
}

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

.notification-hide {
  opacity: 0;
  transform: translateX(400px);
}

.notification-success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(22, 27, 34, 0.95) 100%);
}

.notification-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(22, 27, 34, 0.95) 100%);
}

.notification-warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(22, 27, 34, 0.95) 100%);
}

.notification-info {
  border-left-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(22, 27, 34, 0.95) 100%);
}

.notification-icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.notification-success .notification-icon {
  color: #34d399;
}

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

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

.notification-info .notification-icon {
  color: #818cf8;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: transparent;
  border: none;
  color: #b0b0c0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  color: white;
}

/* Confirmation Dialog */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-overlay.confirm-show {
  opacity: 1;
}

.confirm-dialog {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 12px;
  padding: 30px;
  min-width: 400px;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.confirm-overlay.confirm-show .confirm-dialog {
  transform: scale(1);
}

.confirm-title {
  margin: 0 0 20px 0;
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.confirm-message {
  color: #b0b0c0;
  margin-bottom: 30px;
  line-height: 1.6;
  white-space: pre-line;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-btn-cancel {
  background: transparent;
  color: #b0b0c0;
  border: 1px solid #2d2d44;
}

.confirm-btn-cancel:hover {
  background: #2d2d44;
  color: white;
}

.confirm-btn-confirm {
  background: #e74c3c;
  color: white;
}

.confirm-btn-confirm:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
