/* PDF to Markdown - Tool-specific styles */
@import "../common.css";

/* Upload Card */
.upload-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-label:hover {
  background: rgba(56, 189, 248, 0.1);
  border-style: solid;
}

[data-theme="light"] .upload-label:hover {
  background: rgba(3, 105, 161, 0.1);
}

/* Status Bar */
.status-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

#status {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

#status.processing {
  color: var(--warning-color);
}

#status.success {
  color: var(--success-color);
}

#status.error {
  color: var(--error-color);
}

/* Progress Bar */
progress {
  width: 100%;
  max-width: 300px;
  height: 6px;
  border: none;
  border-radius: 3px;
  background-color: var(--bg-color);
}

progress::-webkit-progress-bar {
  background-color: var(--bg-color);
  border-radius: 3px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary-color), #818cf8);
  border-radius: 3px;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary-color), #818cf8);
  border-radius: 3px;
}

/* Info Box */
.info-box {
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
}

.info-box[hidden] {
  display: none;
}

.info-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-icon {
  color: #6366f1;
  display: flex;
  align-items: center;
}

#info-text {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Output Card */
.output-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.textarea-wrapper {
  position: relative;
}

#output {
  width: 100%;
  min-height: 400px;
  max-height: 70vh;
  padding: 1rem;
  padding-top: 2.5rem;
}

.output-card .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Container override for wider layout */
.container {
  max-width: 800px;
}

/* Responsive */
@media (max-width: 640px) {
  #output {
    min-height: 300px;
  }

  .upload-label {
    width: 100%;
    justify-content: center;
  }
}
