/* Copilot Prompt:
Write CSS styles for a floating alert popup used in DSLLM UI.
The popup should appear in the bottom right, support dark mode,
have a soft appearance, a progress bar animation, and a close (✖) button.
Use class names: dsllm-popup, dsllm-popup-content, dsllm-popup-close, dsllm-popup-progress.
*/
/* Prompt for Copilot:
Create styles for a floating popup in bottom-right corner used to show broken links (404) in DSLLM UI.

Use:
- Background: dark slate (#1f2937 or rgba(30,41,59,0.95))
- Font: 'Inter', sans-serif
- Border-radius: 12px
- Shadow: soft glowing box-shadow
- Include fade-in animation
- Close button (✖) aligned top-right
- Class names: .dsllm-popup, .dsllm-popup-content, .dsllm-popup-close, .dsllm-popup-progress
*/

.dsllm-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 20px;
  

  background: rgba(255, 255, 255, 0.95);  /* trắng mờ nhẹ */
  background: rgba(31, 41, 55, 0.95);  /* gần như đen */
  
  background: #1f2937;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.1);
  
  font-family: 'Inter', system-ui, -apple-system, sans-serif;  
  color: #1f2937; /* text đậm rõ */
  color: #f3f4f6;
  color: #fbbf24; /* accent yellow */
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); /* thêm đổ bóng mềm */
  border: 1px solid #e2e8f0;
  
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
              0 0 20px rgba(79, 70, 229, 0.1);
  max-width: 320px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.2s ease-out;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.dsllm-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

.dsllm-popup-content {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  padding-right: 24px;
}

.dsllm-popup-close {
  position: absolute;
  top: -4px;
  right: -8px;
  padding: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color 0.15s ease;
}

.dsllm-popup-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

.dsllm-popup-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.dsllm-popup-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0; }
}
