
.ocr-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  margin: 0;
  padding: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  height: 100vh;
}

/* --- Main Container & Layout --- */
.ocr-body .merge-container {

  width: 100%;
  max-width: 900px;
  padding: 2.5rem 3rem;
  text-align: center;
}

/* --- Header Section --- */
.ocr-body .tool-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #5b21b6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ocr-body .tool-header h1 i {
  color: #5b21b6;
  font-size: 2.5rem;
}

.ocr-body .tool-header p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* --- Upload Section --- */
.ocr-body .upload-section {
  border: 3px dashed #e5e7eb;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.ocr-body .upload-section:hover,
.ocr-body .upload-section.highlight {
  border-color: #5b21b6;
  background-color: #c4b5fd;
}

.ocr-body .drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ocr-body .drop-content .bi-folder-plus {
  font-size: 4rem;
  color: #5b21b6;
  margin-bottom: 0.5rem;
}

.ocr-body .drop-content p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4c1d95;
  margin: 0;
}

.ocr-body .drop-content span {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* --- File Status Area --- */
.ocr-body .file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #f3f4f6;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  width: 100%;
}

.ocr-body .file-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.ocr-body .file-details .folder-icon {
  font-size: 1.5rem;
  color: #5b21b6;
}

.ocr-body .file-details span {
  font-size: 1rem;
}

.ocr-body .status-message-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.ocr-body .status-message-container .status-text {
  color: #4c1d95;
}

.ocr-body .status-message-container .spinner {
  border: 4px solid #e5e7eb;
  border-top: 4px solid #5b21b6;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ocr-body .status-message-container .success-icon {
  color: #10b981;
  font-size: 1.5rem;
}

.ocr-body .status-message.error {
  color: #ef4444;
  font-weight: 600;
  margin-top: 1rem;
}

/* --- Action Buttons --- */
.ocr-body .action-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.ocr-body .btn {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  justify-content: center;
  border: none;
}

.ocr-body .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.ocr-body .btn-convert {
  background-color: #5b21b6;
  color: #ffffff;
}

.ocr-body .btn-convert:disabled {
  background-color: #e5e7eb;
  cursor: not-allowed;
  color: #6b7280;
}

.ocr-body .btn-download {
  background-color: #10b981;
  color: #ffffff;
}

.ocr-body .btn-download i,
.ocr-body .btn-convert i {
  margin-left: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .ocr-body .merge-container {
    padding: 2rem 1.5rem;
  }
  
  .ocr-body .tool-header h1 {
    font-size: 1.75rem;
  }
  
  .ocr-body .tool-header p {
    font-size: 1rem;
  }
  
  .ocr-body .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}