/* EMERGENCY CSS OVERRIDES - Force UI to show */

[data-nuclear-exempt="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.tool-container {
  position: relative !important;
  min-height: 500px !important;
  padding: 20px !important;
  background: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.dark-theme .tool-container {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.download-button,
.download-btn,
a[download],
a[href*="blob:"] {
  display: inline-block !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  margin: 10px !important;
  font-weight: bold !important;
}

.progress,
.progress-bar,
[data-progress] {
  display: block !important;
  width: 100% !important;
  height: 20px !important;
  background: #f0f0f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin: 20px 0 !important;
}

.progress-fill,
[data-progress-fill] {
  height: 100% !important;
  background: linear-gradient(90deg, #4CAF50, #8BC34A) !important;
  transition: width 0.3s !important;
}

.status,
[data-status] {
  padding: 10px !important;
  margin: 10px 0 !important;
  background: #e3f2fd !important;
  border-radius: 4px !important;
  color: #1976d2 !important;
  font-weight: bold !important;
}

.theme-switcher,
[data-theme-switch] {
  cursor: pointer !important;
  padding: 8px 16px !important;
  background: #f0f0f0 !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  display: inline-block !important;
}

.dark-theme .theme-switcher,
.dark-theme [data-theme-switch] {
  background: #333 !important;
  color: white !important;
  border-color: #555 !important;
}

/* ===== Img-any opt-out: prevent emergency white blocks ===== */
#tool-img-any .tool-container {
  background: transparent !important;
  box-shadow: none !important;
}

#tool-img-any .status,
#tool-img-any [data-status] {
  background: rgba(12, 18, 28, 0.6) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

#tool-img-any .progress,
#tool-img-any .progress-bar,
#tool-img-any [data-progress] {
  background: rgba(255, 255, 255, 0.08) !important;
}
