/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
  font-size: var(--body-size);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: #D1D5DB;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-body);
}

.btn-ghost:hover {
  background-color: var(--bg-alt);
  color: var(--text-main);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Badges / Pills */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: 500;
  background-color: var(--primary-light);
  color: var(--primary);
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.credit-badge i {
  color: #F59E0B; /* Warning yellow for the zap icon */
}

@media (max-width: 640px) {
  .credit-badge span {
    display: none;
  }
  .credit-badge::after {
    content: 'Unlimited';
  }
}

/* Form Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-label {
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text-main);
}

.input-field {
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-size: var(--body-size);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Drag and Drop Upload Area */
.upload-area {
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--primary);
}

.upload-text {
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.upload-subtext {
  font-size: var(--small-size);
  color: var(--text-muted);
}

/* Tool Workspace System */
.tool-workspace {
  background-color: var(--bg-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0,0,0,0.05);
  margin-top: var(--space-4);
}

.processing-container {
  display: none;
  text-align: center;
  padding: var(--space-12) 0;
}

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.result-container {
  display: none;
  text-align: center;
  padding: var(--space-8) 0;
}

.result-preview {
  width: 100%;
  max-width: 400px;
  height: 250px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #D1D5DB;
  color: var(--text-muted);
}

.result-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* Tool Header */
.tool-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.tool-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.tool-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}
