/**
 * Try IA Free Page Styles
 * Custom styles for the AI invoice processing demo page
 */

/* Upload Area Styles */
.upload-area {
  border: 2px dashed #007bff;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #0056b3;
  background: #e9ecef;
}

.upload-area.dragover {
  border-color: #28a745;
  background: #d4edda;
}

/* File Info Styles */
.file-info {
  background: #e9ecef;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

/* Results Container */
.results-container {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  min-height: 400px;
}

/* Scan Counter */
.scan-counter {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Field Items */
.field-item {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.field-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
}

.field-value {
  color: #6c757d;
  word-break: break-word;
}

/* Table Container */
.table-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

/* Vertical scroll for Line Items table */
.table-scroll-y {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: auto;
}

/* Upload Button */
.btn-upload {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-upload:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-upload:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  text-align: center;
  padding: 40px;
}

/* Message Styles */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #c3e6cb;
}

.warning-message {
  background: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #ffeaa7;
}

/* PDF Container */
.pdf-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.pdf-container iframe {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 100%;
}

.pdf-loading {
  padding: 40px;
  color: #6c757d;
}

#pdfViewerSection .card-title {
  margin-bottom: 1rem !important;
}

/* Premium Info Styles */
.premium-info .card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #007bff !important;
  box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.premium-info .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,123,255,0.2);
  transition: all 0.3s ease;
}

.premium-benefits {
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.benefit-item {
  font-size: 14px;
  color: #495057;
}

.premium-info .alert {
  border-left: 4px solid #007bff;
  background: rgba(0,123,255,0.1);
}

@media (max-width: 768px) {

    .hero {
        padding-top: 54px !important;
    }
}