/* ========================================
   GreenOCR - Styles
   ======================================== */

.ocr-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* OCR Cards - no hover animation */
.ocr-card {
  transform: none !important;
}

.ocr-card:hover {
  transform: none !important;
}

/* Upload Area */
.ocr-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.ocr-upload-area:hover {
  border-color: var(--primary);
  background: rgba(57, 211, 83, 0.05);
}

.ocr-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(57, 211, 83, 0.1);
  transform: scale(1.02);
}

.ocr-upload-area svg {
  color: var(--text-muted);
}

/* Paste hint */
.paste-hint kbd {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
}

/* Image Preview */
.image-preview-container {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.image-preview {
  max-height: 300px;
  overflow: auto;
  border-radius: var(--radius-sm);
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Progress */
.ocr-progress {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.progress-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.progress {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

/* Result Stats */
.result-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-item svg {
  color: var(--primary);
}

/* Result Container */
.result-container {
  min-height: 300px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 280px;
  color: var(--text-muted);
  text-align: center;
}

.result-placeholder svg {
  opacity: 0.3;
}

.result-placeholder p {
  margin-top: var(--space-md);
}

.result-textarea {
  width: 100%;
  min-height: 280px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  resize: vertical;
  padding: 0;
}

.result-textarea:focus {
  outline: none;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.result-actions .download-btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

/* Confidence Bar */
.confidence-info {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.confidence-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.5s ease;
  border-radius: var(--radius-full);
}

/* Feature icons */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(57, 211, 83, 0.1);
  border-radius: var(--radius-lg);
  color: var(--primary-dark);
}

[data-bs-theme="dark"] .feature-icon {
  color: var(--primary);
}

/* Form Controls */
.form-select {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(57, 211, 83, 0.15);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Toast */
.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.toast-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.toast-body {
  color: var(--text-secondary);
}

/* Processing animation */
.processing .ocr-upload-area {
  pointer-events: none;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 576px) {
  .result-actions .download-btn {
    flex: 1 1 100%;
  }
  
  .result-stats {
    gap: var(--space-md);
  }
}
