/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


body {
  background-color: #1e1e1e;
  color: #f5f5f5;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Navigation */
.topnav {
  background: #111;
  display: flex;
  padding: 1rem;
  gap: 1.5rem;
  border-bottom: 2px solid #333;
}

.topnav a.right {
  margin-left: auto;
  /* pushes it all the way to the right */
}

.topnav a {
  color: #f5f5f5;
  font-weight: bold;
  transition: color 0.2s;
}

.topnav a:hover {
  color: #ff9800;
}

/* Highlight active tab */
.topnav a.active {
  color: #ff9800;
  border-bottom: 2px solid #ff9800;
  padding-bottom: 2px;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ff9800;
}

header p {
  color: #aaa;
}

/* Form */
form {
  max-width: 600px;
  margin: 2rem auto;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: bold;
}

select,
textarea,
input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: none;
  background: #1e1e1e;
  color: #fff;
  resize: vertical;
}

textarea {
  min-height: 60px;
}

/* Disabled inputs & textareas with red tint */
input:disabled,
textarea:disabled,
select:disabled {
  background-color: #3a1f1f;
  /* dark reddish background */
  color: #ff7f7f;
  /* light red text */
  border: 1px solid #ff4c4c;
  /* subtle red border */
  cursor: not-allowed;
  /* show "no" cursor */
  opacity: 0.9;
  /* optional slight fade */
  transition: background 0.2s, color 0.2s, border 0.2s;
}



button {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #e68900;
}

/* Results */
#results {
  max-width: 800px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

#results img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Job card container */
.job-card {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  margin: 1.5rem auto;
  max-width: 900px;
}

/* Header */
.job-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.text-green {
  color: #4caf50;
  font-weight: bold;
}

/* Progress bar */
.progress-wrapper {
  margin: 1rem 0;
  text-align: center;
}

.progress-container {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  height: 16px;
  width: 100%;
  max-width: 600px;
  margin: 0.5rem auto;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.progress-bar {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width 0.3s ease;
}

/* Status & ETA */
.status,
.eta {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.3rem 0;
}

/* Output grid */
.output-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.output-grid img,
.output-grid audio {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Blur effect (already exists, improved smoothness) */
.blur {
  filter: blur(8px);
  transition: filter 0.3s;
}

.blur:hover {
  filter: blur(0px);
}


.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ff9800;
  /* Orange accent */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}