/* Converter Page Specific Styles */

.preview-area-wrapper {
  min-height: 250px;
  background-color: #0b0f19;
  background-image:
    linear-gradient(45deg, #121824 25%, transparent 25%),
    linear-gradient(-45deg, #121824 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #121824 75%),
    linear-gradient(-45deg, transparent 75%, #121824 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 12px;
  border: 1px dashed var(--glass-border);
}

#imagePreview {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

/* Custom Table Design */
.table-custom {
  color: var(--text-light) !important;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-custom th {
  background: rgba(15, 23, 42, 0.8) !important;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-custom td {
  padding: 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Translucent Success / Error Rows */
.table-custom tr.green {
  background: rgba(16, 185, 129, 0.05) !important;
  border-left: 4px solid var(--success-glow);
}

.table-custom tr.red {
  background: rgba(239, 68, 68, 0.05) !important;
  border-left: 4px solid var(--danger-glow);
}

.table-custom tr {
  border-left: 4px solid transparent;
  transition: var(--transition-smooth);
}

.table-custom tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Queue progress indicators */
progress {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

progress::-webkit-progress-bar {
  background: rgba(15, 23, 42, 0.6);
}

progress.blue::-webkit-progress-value {
  background: linear-gradient(90deg, #0284c7, var(--primary-glow));
}

progress.green::-webkit-progress-value {
  background: linear-gradient(90deg, #059669, var(--success-glow));
}

progress.red::-webkit-progress-value {
  background: linear-gradient(90deg, #dc2626, var(--danger-glow));
}

/* Action button stylings inside cells */
.table-custom button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  margin: 0.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.table-custom button:hover {
  background: var(--primary-glow);
  color: #0f172a;
  border-color: var(--primary-glow);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Error cell style */
td.error {
  color: #f87171 !important;
  font-weight: 600;
}
