@font-face {
  font-family: 'VAG_FONT';
  src: url('/static/Fonts/Vag-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'VAG_BOLD';
  src: url('/static/Fonts/Vag-Bold.otf') format('opentype');
}

/* Loader lagyo */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 99vw;
  overflow-x: hidden;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 300px;
  height: 300px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

header {
  box-shadow: 0 2px 0 #e1e4e8;
  background-color: #FFFFFF;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0px;
  max-width: 100%;
}

header div {
  display: flex;
  align-items: center;
}

header img {
  margin-left: 7.5vw;
}

.main-content {
  padding: 0.5vw;
  margin-top: 3.5vw;
  margin-left: 9vw;
  width: 50vw;
  max-height: none;
  border-radius: 15px;
  padding: 10px;
  border: 2px solid #E5E5E5;
  background-color: #ffffff;
  min-height: 510px;
}

.btn-grad {
  display: block;
  width: 100%;
  border: none;
  background-color: #970000;
  color: white;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  border-radius: 0px 0px 20px 20px;
}

.btn-grad:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}

.body {
  background-color: #FAFAFA;
}

.topnav {
  overflow: hidden;
}

.topnav a:hover{
    color: red;
  transform: scale(1.1);
  transition: ease 0.4s;
}

.topnav a {
  display: block;
  position: relative;
  display: inline-block;
  padding: 6px 12px;
    text-align: center;
  text-decoration: none;
  color: red;
  transition: 0.3s;
    font-family: 'VAG_BOLD';
  font-size: 20px;
}
.topnav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;               /* Start the line a bit in from the left */
  width: 80%;              /* Make the line only half as wide */
  height: 2px;
  background-color: #970000;
  border-radius: 2px;
  border-bottom: 2px;
}
.bauton {
  display: flex;
  align-items: center;
  border-radius: 15px;
  background-color: #F7EAEA;
  cursor: pointer;
  margin-right: 5px;
  padding-left: 20px;
  padding-right: 10px;
  transition: all 0.3s ease-in-out;
  justify-content: left;
  margin-left: 20px;
  font-family: VAG_FONT;
  background: white;
  border: 2px solid #E5E5E5;
  color: black;
  width: fit-content;
  font-size: 1rem;
}

.bauton h2 {
  margin-left: 10px;
  font-size: 18px;
  font-family: 'VAG_FONT';
}

.topnav .icon {
  display: none;
}

.button-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
  margin-left: 32px;
  margin-bottom: 0px;
  padding-bottom: 10px;
  padding-top: 5px;
  gap:18px;
  width: 90%;
  max-width: 100%;
  overflow-x: auto;
}

.btn {
  display: flex;
  align-items: center;
  border: none;
  outline: none;
  padding: 14px;
  width: fit-content;
  border-radius: 15px;
  background-color: #F7EAEA;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
  padding-left: 20px;
  padding-right: 20px;
  transition: all 0.3s ease-in-out;
  text-align: center;
  justify-content: center;
  font-family: VAG_FONT;
  color:black;
}

.btn img {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.pactive {
  background-image: linear-gradient(to right, #970000 0%, #970000 100%);
  color: white;
}
.pactive img{
  filter: brightness(0) invert(1);
}

.btn:hover {
  color: white;
  transform: scale(1.05);
  background: linear-gradient(to right, #970000 0%, #970000 100%);
}
.btn:hover img{
filter: brightness(0) invert(1);
}

.form-group {
  display: flex;
  flex-direction: column;
  width: auto;
  margin-left: 22px;
  margin-right: 20px;
}

.form-group textarea {
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 12px 12px 0px 0px;
  border: 2px solid #E5E5E5;
  resize: none;
  color: black;
  height: 350px;
  font-size: 22px;
  background-color: #fafafa;
  font-family: 'VAG_FONT';
}

.form-group input:focus {
  outline: none;
  border-color: red;
}

.form-group textarea:focus {
  outline: none;
  border-color: red;
}

.scrollable-table-container {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: auto;
  margin: 16px 16px;
  margin-left: 20px;
  width: 100%;
  max-width: 95%;
}

.tablex {
  border-collapse: separate;
  font-size: 20px;
  width: 100%;
  font-family: 'VAG_FONT';
  color: black;
  border-radius: 10px;
  border: 1.5px solid #e5e5e5;
}

.khutta {
  margin-top: 4vw;
  border: 2px solid #e5e5e5;
  height: 336px;
  width: 100%;
  display: flex;
}

.dot {
  height: 10px;
  width: 10px;
  margin-top: 18px;
  margin-left: 6px;
  margin-right: 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.con-btn {
  background-color: red;
  color: white;
  border-radius: 12px;
  height: 40px;
  border: none;
  transition: transform 0.3s ease;
}
.con-btn:hover{
   transform: scale(1.06);
}
.hover-text ul li a {
            transition: color 0.3s ease;
        }

.hover-text ul li a:hover {
            color: #e74c3c !important;
}



.Con-Group button {
  border-radius: 100px;
  padding: 0px;
  width: 42px;
  height: 42px;
  border: 0.6px solid #ebebeb;
  transition: transform 0.3s ease;
}
.Con-Group button:hover {
 transform: scale(1.2);
}

.Con-Groupx a {
  background-color: #FFFFFF;
  border-radius: 100px;
  padding: 2px;
  padding-top: 5px;
  width: 28px;
  height: 26px;
  border: 0.6px solid #ebebeb;
  transition: transform 0.3s ease;
}
.Con-Groupx a:hover{
   transform: scale(1.2);
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  height: 300px;
  margin-left: auto;
  margin-right: 8vw;
}

@media screen and (max-width: 768px) {
  .iframe-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: 250px;
  }
}

table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  font-size: 1.5rem;
  font-family: 'VAG_FONT';
}

.form-container {
  max-width: 800px;
  width: 100%;
  margin-top: 40px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  flex: 1;
  min-width: 355px;
  height: 42px;
  border-radius: 4px;
  margin-bottom: 32px;
}
.field fieldset{
    border: 2px solid #c4c4c4;
    border-radius: 4px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #666;
}

input[type="text"],
input[type="email"],
input[type="tel"],
.textareab {
  width: 100%;
  padding: 8px 4px;
  font-size: 16px;
  border: none;
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
.textareab:focus {
  border-color: #000;
}

.phone-icon {
  position: relative;
}

.phone-icon::after {
  content: "🖱️";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin: 10px 0 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-weight: normal;
}

input[type="radio"] {
  accent-color: #000;
}

.textareab {
  resize: none;
  height: 80px;
}

.buttonex {
  padding: 12px 24px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.buttonex:hover {
   transform: scale(1.05);
}

table thead tr th {
  background-color: #970000;
  color: white;
  font-family: 'VAG_BOLD';
}

table th,
table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid #dddddd;
  background-color: #fff;
}

table tbody tr:nth-of-type(even) {
  background-color: #ffefef;
}

table thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

table thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.upload-container {
  max-width: 90%;
  margin: 20px auto;
  margin-bottom: -40px;
  background: #FFF9F0;
  border-radius: 12px;
  padding-top: 80px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  .upload-container {
    padding-top: 40px;
    height: 150px;
    max-width: 95%;
  }
}

.upload-container:hover {
  background: #f9f9f9;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.upload-container h2 {
  font-size: 1.5rem;
  color: #e52d27;
  margin-bottom: 0px;
  text-align: center;
  font-family: VAG_FONT;
}

.upload-container input[type="file"] {
  display: none;
  /* Hide the file input */
}

/* Mobile First Responsive Design */

/* Large screens (1200px and up) */
@media screen and (min-width: 1200px) {
  .main-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Medium screens (992px to 1199px) */
@media screen and (max-width: 1199px) {
  .main-content {
    width: 85vw;
    margin-left: 7.5vw;
  }
  
  header img {
    margin-left: 5vw;
  }
}

/* Small screens (768px to 991px) */
@media screen and (max-width: 991px) {
  .main-content {
    width: 90vw;
    margin-left: 5vw;
    margin-top: 2vw;
  }
  
  .button-container {
    margin-left: 20px;
    gap: 12px;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
  
  .form-group textarea {
    font-size: 20px;
  }
}

/* Tablet screens (768px and below) */
@media screen and (max-width: 768px) {
  header {
    padding: 0 15px;
    flex-wrap: wrap;
  }
  
  header img {
    margin-left: 2vw;
    width: 100px;
    height: 55px;
  }
  
  .topnav {
    width: 100%;
    order: 3;
  }
  
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }
  
  .main-content {
    width: 95vw;
    margin-left: 2.5vw;
    margin-top: 20px;
    padding: 15px;
  }
  
  .form-group {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .form-group textarea {
    height: 250px;
    font-size: 18px;
  }
  
  .button-container {
    margin-left: 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 10px 14px;
    flex: 1 1 auto;
    min-width: 120px;
  }
  
  .scrollable-table-container {
    margin-left: 10px;
    width: calc(100% - 20px);
  }
  
  table {
    font-size: 16px;
    width: 100%;
  }
  
  .tablex {
    font-size: 16px;
  }
  
  /* About page responsive */
  .container {
    /* margin-left: 5vw !important; */
    width: 90vw !important;
  }
  
  .story {
    flex-direction: column;
    gap: 20px;
  }
  
  .story img {
    max-width: 100%;
    height: 200px;
  }
  
  .story-text {
    width: 100% !important;
    margin-top: 0;
  }
  
  .story-text h2 {
    width: 100% !important;
  }
  
  .story-text p {
    width: 100% !important;
  }
  
  .objectives,
  .features {
    width: 100% !important;
  }
  
  .objectives-list,
  .features-list {
    grid-template-columns: 1fr;
  }
  
  /* Examples page responsive */
  .grid {
    grid-template-columns: 1fr;
    margin: 0 5px;
  }
  
  .bauton {
    width: 100% !important;
    margin-left: 0 !important;
    font-size: 18px !important;
  }
  
  /* Contact page responsive */
  .form-container {
    width: 100%;
    margin-top: 20px;
  }
  
  .row {
    flex-direction: column;
    gap: 15px;
  }
  
  .field {
    min-width: 100%;
  }
}

/* Mobile screens (600px and below) */
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    padding: 12px 16px;
    font-size: 18px;
  }
  
  header img {
    width: 80px;
    height: 45px;
  }
  
  .main-content {
    width: 98vw;
    margin-left: 1vw;
    padding: 10px;
  }
  
  .form-group textarea {
    height: 200px;
    font-size: 16px;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-width: 100px;
  }
  
  .button-container {
    margin-left: 10px;
    gap: 8px;
  }
  
  table {
    font-size: 14px;
  }
  
  .tablex {
    font-size: 14px;
  }
  
  /* Footer responsive */
  footer {
    padding: 20px 2.5vw !important;
  }
  
  footer > div {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  footer .iframe-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* About page mobile */
  span {
    font-size: 28px !important;
  }
  
  .lead {
    font-size: 1.2rem !important;
  }
  
  .story-text h2 {
    font-size: 24px;
  }
  
  .card-title,
  .feature-title {
    font-size: 1.2rem !important;
  }
  
  .card-p,
  .feature-p {
    font-size: 1.1rem !important;
  }
  
  /* Examples page mobile */
  .bauton {
    font-size: 16px !important;
    height: auto !important;
    padding: 12px !important;
  }
  
  /* Contact page mobile */
  .main-content {
    flex-direction: column !important;
  }
  
  .main-content > div:first-child {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }
  
  .form-container {
    margin-left: 0 !important;
  }
}

/* Extra small screens (480px and below) */
@media screen and (max-width: 480px) {
  .main-content {
    margin-top: 15px;
    min-height: 400px;
  }
  
  .form-group textarea {
    height: 180px;
    font-size: 14px;
  }
  
  .btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  .button-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 8px;
  }
  
  table th,
  table td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .tablex {
    font-size: 12px;
  }
  
  /* OCR responsive */
  .ocr-container {
    flex-direction: column;
    padding: 16px 12px;
  }
  
  .ocr-image-preview,
  .ocr-textarea-container {
    max-width: 100%;
  }
  
  .ocr-textarea-container textarea {
    height: 200px;
  }
  
  .ocr-title {
    font-size: 2.5rem !important;
  }
}

/* Landscape orientation for mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .form-group textarea {
    height: 150px;
  }
  
  .main-content {
    margin-top: 10px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn img {
    width: 16px;
    height: 16px;
  }
}

/* Footer specific responsive styles */
@media screen and (max-width: 768px) {
  .responsive-footer {
    padding: 20px 5vw !important;
  }
  
  .footer-content {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .footer-section {
    min-width: 100% !important;
    margin-left: 0 !important;
  }
  
  .nav-links h3,
  .services-links h3,
  .map-section h3 {
    margin-left: 0 !important;
  }
  
  .nav-links ul,
  .services-links ul {
    margin-left: 0 !important;
  }
  
  .map-container {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
  
  .social-links {
    gap: 15px !important;
    justify-content: center;
  }
  
  .contact-btn {
    width: 100% !important;
    max-width: 250px !important;
  }
}

@media screen and (max-width: 600px) {
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px;
  }
  
  .footer-bottom p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    flex: none !important;
    min-width: 100% !important;
  }
  
  .footer-links {
    text-align: center !important;
  }
}

/* Search input responsive */
@media screen and (max-width: 768px) {
  .group {
    max-width: 100%;
  }
  
  .input {
    width: 100%;
  }
}

/* Upload container responsive */
@media screen and (max-width: 600px) {
  .upload-container {
    padding-top: 40px;
    height: 150px;
  }
  
  .upload-container h2 {
    font-size: 1.2rem;
  }
}

/* Modern input form responsive */
@media screen and (max-width: 600px) {
  .modern-input-form {
    padding: 0 10px;
  }
  
  .modern-input {
    font-size: 16px;
  }
}

/* Responsive tables */
@media screen and (max-width: 600px) {
  .responsive-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .responsive-table th,
  .responsive-table td {
    min-width: 80px;
  }
}

/* Iframe responsive */
@media screen and (max-width: 768px) {
  iframe {
    width: 100% !important;
    height: 200px !important;
  }
}

/* Examples page specific responsive */
@media screen and (max-width: 768px) {
  .examples-header {
    margin-left: 20px !important;
    gap: 20px !important;
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .examples-title {
    font-size: 32px !important;
    min-width: 100% !important;
  }
  
  .search-container {
    width: 100% !important;
    min-width: 100% !important;
  }
  
  .examples-content {
    width: 95vw !important;
    margin-left: 2.5vw !important;
  }
  
  .chanda-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 18px !important;
  }
}

@media screen and (max-width: 600px) {
  .examples-title {
    font-size: 28px !important;
  }
  
  .chanda-button {
    font-size: 16px !important;
    height: auto !important;
    padding: 12px !important;
  }
  
  .chanda-button span {
    font-size: 20px !important;
  }
}

/* Contact page specific responsive */
@media screen and (max-width: 768px) {
  .contact-main-content {
    flex-direction: column !important;
    margin-right: 2vw !important;
  }
  
  .contact-info-card {
    max-width: 100% !important;
    margin-bottom: 20px;
  }
  
  .contact-form-section {
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 600px) {
  .contact-info-card {
    min-height: 400px !important;
  }
}

/* Index page specific responsive */
@media screen and (max-width: 768px) {
  .responsive-form {
    padding: 0 10px;
  }
  
  .modern-input {
    min-height: 180px !important;
  }
  
  .vag-font {
    font-size: 32px !important;
  }
}

@media screen and (max-width: 600px) {
  .modern-input {
    min-height: 150px !important;
    font-size: 16px;
  }
  
  .vag-font {
    font-size: 28px !important;
  }
}

/* General responsive improvements */
@media screen and (max-width: 480px) {
  .modern-btn {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .red-themed-button {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .modern-input-form {
    max-width: 100%;
    padding: 0 5px;
  }
}


h1.vag-font {
  text-align: center;
  color: #b91c1c;
  font-size: 60px;
}

@media screen and (max-width: 768px) {
  h1.vag-font {
    font-size: 40px;
  }
}

@media screen and (max-width: 600px) {
  h1.vag-font {
    font-size: 32px;
  }
}

@media screen and (max-width: 480px) {
  h1.vag-font {
    font-size: 28px;
  }
}

.modern-input-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: auto;
}

.modern-input-form input[type="text"],
.modern-input-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 10px;
}

.modern-input-form input[type="file"] {
  background: #fff;
  color: #222;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
}

.button-with-icon.text-editor-btn,
.modern-btn,
#copyBtn.modern-btn,
.ocr-btn {
  background: linear-gradient(90deg, #980001 60%, #e74c3c 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(152, 0, 1, 0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  min-width: 120px;
  justify-content: center;
  height: fit-content;
}

.button-with-icon.text-editor-btn:hover,
.modern-btn:hover,
.modern-btn:focus,
#copyBtn.modern-btn:hover,
#copyBtn.modern-btn:focus,
.ocr-btn:hover,
.ocr-btn:focus {
  background: linear-gradient(90deg, #e74c3c 60%, #980001 100%);
  box-shadow: 0 4px 16px rgba(152, 0, 1, 0.15);
  transform: translateY(-2px) scale(1.03);
}

.result-box {
  margin-top: 30px;
  text-align: center;
}

.result-box h2 {
  text-align: center;
}

#ocrText {
  font-size: 1.3vw;
  background: #ff4949;
  padding: 20px;
  border-radius: 8px;
  margin-top: 10px;
  display: inline-block;
  text-align: justify;
  line-height: 1.8;
  font-family: 'VAG_FONT', 'VAG_FONT', Arial, sans-serif;
  max-width: 100%;
  overflow-x: auto;
}

.ocr-container {
  max-width: 1600px;
  margin: 40px auto 0 auto;
  margin-top: 10px;
  padding: 32px 24px 40px 24px;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  align-items: flex-start;
  justify-content: center;
}

.ocr-image-preview {
  flex: 1 1 45%;
  max-width: 45%;
}

.ocr-image-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.ocr-textarea-container {
  flex: 1 1 45%;
  max-width: 45%;
}

.ocr-textarea-container textarea {
  width: 100%;
  height: 62vw;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  resize: none;
}

.ocr-title {
  text-align: center;
  margin: 1vw 3vw;
  font-size: 4.5rem;
  color: #b91c1c;
  font-family: 'VAG_BOLD';
}

.ocr-form {
  margin-bottom: 32px;
}

.ocr-form-fields {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ocr-input {
  margin-bottom: 0;
}

.ocr-btn {
  width: 100%;
}

.ocr-result {
  margin-top: 32px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  border: 1.5px solid #f3f4f6;
  position: relative;
}

.ocr-copy-btn {
  float: right;
  margin-bottom: 12px;
}

.ocr-result-title {
  margin-top: 0;
  margin-bottom: 12px;
  color: #b91c1c;
}

.ocr-result-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: #9b9b9b;
  padding: 16px;
  border-radius: 8px;
  min-height: 80px;
  color: #ffffff;
  border: 1.5px solid #f3f4f6;
}

.containere {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* OCR specific responsive styles are now included in the main responsive section above */

@media only screen and (max-width: 1000px) {
  .containere {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}