.container-image-to-text {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #fdf7eb 0%, #fff6e8 100%);
  min-height: 100vh;
  padding: 20px;
  /* Responsive Design */
}
.container-image-to-text .containerr {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.container-image-to-text .headerr {
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
  padding: 40px 30px;
  text-align: center;
  color: white;
}
.container-image-to-text .headerr h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.container-image-to-text .headerr p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.container-image-to-text .main-content {
  padding: 40px 30px;
}
.container-image-to-text .upload-section {
  background: #f7f5f3;
  border: 3px dashed #e2dfda;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  position: relative;
}
.container-image-to-text .upload-section.dragover {
  border-color: #de9406;
  background: #f8eedb;
}
.container-image-to-text .upload-icon {
  font-size: 4rem;
  color: #797367;
  margin-bottom: 20px;
  line-height: 100px;
}
.container-image-to-text .upload-text {
  font-size: 1.3rem;
  color: #504c45;
  margin-bottom: 20px;
}
.container-image-to-text .upload-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.container-image-to-text .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.container-image-to-text .btn-primary {
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
  color: white;
}
.container-image-to-text .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #de920670;
}
.container-image-to-text .btn-secondary {
  background: #706b60;
  color: white;
}
.container-image-to-text .btn-secondary:hover {
  background: #69655c;
  transform: translateY(-2px);
}
.container-image-to-text .btn-success {
  background: #de9406;
  color: white;
}
.container-image-to-text .btn-success:hover {
  background: #de9406;
  transform: translateY(-2px);
}
.container-image-to-text .btn-warning {
  background: #de9406;
  color: #3b3830;
}
.container-image-to-text .btn-warning:hover {
  background: #de9406;
  transform: translateY(-2px);
}
.container-image-to-text .url-input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 2px solid #bbb7b0;
  border-radius: 8px;
  font-size: 1rem;
  margin: 10px 0;
}
.container-image-to-text .supported-formats {
  background: #eceae4;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}
.container-image-to-text .supported-formats h4 {
  color: #555047;
  margin-bottom: 10px;
}
.container-image-to-text .formats-list {
  color: #534f47;
  font-weight: 500;
}
.container-image-to-text .files-preview {
  margin: 30px 0;
}
.container-image-to-text .file-item {
  background: white;
  border: 1px solid #d6d0c5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.container-image-to-text .file-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.container-image-to-text .file-name {
  font-weight: 600;
  color: #615a4d;
  flex: 1;
}
.container-image-to-text .file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.container-image-to-text .preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.container-image-to-text .results-section {
  margin-top: 30px;
}
.container-image-to-text .result-item {
  background: white;
  border: 1px solid #cfcabf;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.container-image-to-text .result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.container-image-to-text .result-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.container-image-to-text .result-image {
  flex: 1;
  min-width: 300px;
}
.container-image-to-text .result-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}
.container-image-to-text .result-text {
  flex: 1;
  min-width: 300px;
}
.container-image-to-text .text-area {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #d4d0c9;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
}
.container-image-to-text .text-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.container-image-to-text .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.container-image-to-text .modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}
.container-image-to-text .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.container-image-to-text .close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.container-image-to-text .close:hover {
  color: black;
}
.container-image-to-text .loading {
  display: none;
  text-align: center;
  padding: 20px;
}
.container-image-to-text .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f0debe;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.container-image-to-text .global-actions {
  text-align: center;
  margin: 30px 0;
  display: none;
}
.container-image-to-text .global-actions .btn {
  margin: 0 10px;
}
@media (max-width: 768px) {
  .container-image-to-text .headerr h1 {
    font-size: 2rem;
  }
  .container-image-to-text .headerr p {
    font-size: 1rem;
  }
  .container-image-to-text .main-content {
    padding: 20px 15px;
  }
  .container-image-to-text .upload-section {
    padding: 20px;
  }
  .container-image-to-text .upload-buttons {
    flex-direction: column;
    align-items: center;
  }
  .container-image-to-text .result-content {
    flex-direction: column;
  }
  .container-image-to-text .result-image,
  .container-image-to-text .result-text {
    min-width: auto;
  }
  .container-image-to-text .file-header,
  .container-image-to-text .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .container-image-to-text .file-actions,
  .container-image-to-text .text-actions {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {

  .container-image-to-text .headerr {
    padding: 20px 15px;
  }
  .container-image-to-text .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .container-image-to-text .modal-content {
    margin: 10% auto;
    padding: 15px;
  }
}
.container-image-to-text .hidden {
  display: none;
}
.container-image-to-text #fileInput {
  display: none;
}
.container-image-to-text .progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e9e7e4;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}
.container-image-to-text .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #de9406, #de9406);
  width: 0%;
  transition: width 0.3s ease;
}