/* PDF to Grayscale Custom Box Styling */
.custom-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin: 20px auto;
  box-sizing: border-box;
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-card.hidden {
  display: none !important;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
}

.file-icon {
  font-size: 28px;
  line-height: 1;
}

.file-info {
  flex: 1;
  overflow: hidden;
}

.file-name {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.reset-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.reset-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.options-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.options-group h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.option-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.custom-select {
  width: 100%;
  height: auto !important;
  min-height: 42px;
  padding: 8px 14px;
  line-height: 1.5;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-sizing: border-box;
}

.custom-select:focus {
  border-color: #3e3ef4;
  box-shadow: 0 0 0 3px rgba(62, 62, 244, 0.15);
}

.grayscale-btn {
  background: #3e3ef4;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.grayscale-btn:hover {
  background: #2b2bd9;
}

.grayscale-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.progress-wrap {
  margin-top: 10px;
}

.progress-wrap.hidden {
  display: none !important;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3e3ef4 0%, #10b981 100%);
  transition: width 0.2s ease;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-top: 6px;
  text-align: center;
}

.status-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.status-alert.hidden {
  display: none !important;
}

.status-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.download-group.hidden {
  display: none !important;
}

.download-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background: #059669;
}

/* Ensure single line heading styling */
.feature-h1,
h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}