/* image_gen.css — Scoped styling for FLUX.2 Klein 4B Image Generation Tab */

.ig-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .ig-container {
    grid-template-columns: 1fr;
  }
}

/* GPU Status Header */
.ig-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.ig-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.ig-status-badge.loaded {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ig-status-badge.unloaded {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ig-status-badge.busy {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Upload drop zone */
.ig-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md, 8px);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.2);
}

.ig-dropzone:hover, .ig-dropzone.dragover {
  border-color: var(--primary, #00f2fe);
  background: rgba(0, 242, 254, 0.04);
}

.ig-dropzone-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* Song Progress List */
.ig-song-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md, 8px);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.ig-song-card.active {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.02);
}

.ig-song-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ig-song-title {
  font-weight: 600;
  font-size: 14px;
  color: #f3f4f6;
}

.ig-song-meta {
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
}

/* Image preview thumbnails */
.ig-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ig-thumb-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.ig-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.ig-thumb-box:hover img {
  transform: scale(1.05);
}

.ig-thumb-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #e5e7eb;
}

/* Log Stream Console */
.ig-log-console {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #38bdf8;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Archive status pill */
.ig-archive-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ig-archive-badge.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ig-archive-badge.partial {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.ig-archive-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Guidance callout box */
.ig-info-callout {
  background: rgba(0, 242, 254, 0.05);
  border-left: 3px solid var(--primary, #00f2fe);
  padding: 8px 12px;
  font-size: 11.5px;
  color: #94a3b8;
  border-radius: 0 4px 4px 0;
  margin-top: 6px;
  line-height: 1.4;
}

/* Pulsing Generating Badge */
@keyframes igPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.8;
    transform: scale(0.98);
  }
}

.ig-status-badge.busy {
  animation: igPulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Queue Table Enhancements */
#ig-queue-list tr:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

#ig-queue-list tr td {
  vertical-align: middle;
}

/* Custom Scrollbars */
.ig-log-console::-webkit-scrollbar,
#ig-queue-list::-webkit-scrollbar,
#ig-completed-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.ig-log-console::-webkit-scrollbar-thumb,
#ig-queue-list::-webkit-scrollbar-thumb,
#ig-completed-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

