   
    
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      color: var(--dark-color);
      background-color: #f5f7ff;
      padding: 0;
      margin: 0;
    }
    
    header {
      background: #5175a2;
      color: white;
      text-align: center;
      padding: 2rem 1rem;
      margin-bottom: 2rem;
      padding: 20px 0;
	  height: 90px;
    
    }
    
    h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }
    
	header p {
      margin: 5px 0 0;
      font-size: 1rem;
    }
	
	
	 /* Navigation Bar */
    nav {
      background: #333;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px 0;
	  margin-top: -32px;
      flex-wrap: wrap; /* Allow wrapping for smaller screens */
    }
    nav a {
      color: white;
      text-decoration: none;
      margin: 0 15px;
      font-size: 1rem;
      white-space: nowrap; /* Prevent text from breaking into multiple lines */
    }
    nav a:hover {
      text-decoration: underline;
    }
    /* Hero Section */
    .hero {
      background: #d7dfea; /* Soft Pale Yellow Background */
      color: black; /* Black Text Color */
      text-align: center;
      padding:  20px;/* Reduced padding for smaller height */
	  height: auto;
	  margin-bottom: 20px;
    }
    .hero h2 {
      font-size: 1.5rem; /* Slightly smaller font size */
      margin: 0;
	  Color: #000;
	}
    
	 :root {
      --primary-color: #4361ee;
      --secondary-color: #3f37c9;
      --success-color: #4cc9f0;
      --light-color: #f8f9fa;
      --dark-color: #212529;
      --border-color: #dee2e6;
      --error-color: #f72585;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
	
	
	
	
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }
    
    .main-section {
	  width: 650px;
		height: auto;
		margin: 0 auto;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      padding: 2rem;
      margin-bottom: 2rem;
    }
    
    h2 {
      color: var(--primary-color);
      margin-bottom: 1.5rem;
      font-size: 1.5rem;
	  text-align: center;
    }
    
    .upload-box {
      border: 2px dashed var(--border-color);
      border-radius: 8px;
      padding: 2rem;
      text-align: center;
      margin-bottom: 1.5rem;
      transition: all 0.3s ease;
      position: relative;
      background-color: var(--light-color);
    }
    
    .upload-box:hover {
      border-color: var(--primary-color);
      background-color: rgba(67, 97, 238, 0.05);
    }
    
    .upload-box i {
      font-size: 3rem;
      color: var(--primary-color);
      margin-bottom: 1rem;
      display: block;
    }
    
    .upload-box p {
      margin-bottom: 1.5rem;
      font-size: 1.1rem;
    }
    
    .file-input-label {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      background-color: var(--primary-color);
      color: white;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s;
      font-weight: 500;
    }
    
    .file-input-label:hover {
      background-color: var(--secondary-color);
    }
    
    #ocrFileInput {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    
    .file-info {
      margin-top: 1rem;
      font-size: 0.9rem;
      color: #6c757d;
    }
    
    .progress-container {
      margin: 1.5rem 0;
    }
    
    .progress-label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
    }
    
    .progress-bar {
      height: 10px;
      background-color: var(--border-color);
      border-radius: 5px;
      overflow: hidden;
    }
    
    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary-color), var(--success-color));
      width: 0%;
      transition: width 0.3s ease;
    }
    
    .output-container {
      margin-top: 2rem;
    }
    
    .output-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }
    
    .output-box {
      width: 100%;
      min-height: 200px;
      padding: 1rem;
      border: 1px solid var(--border-color);
      background-color: var(--light-color);
      border-radius: 8px;
      white-space: pre-wrap;
      font-family: 'Noto Sans', 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      overflow-y: auto;
      max-height: 500px;
      font-size: 16px;
      line-height: 1.8;
    }
    
    /* RTL languages */
    .rtl-text {
      direction: rtl;
      text-align: right;
      font-size: 18px;
      line-height: 2.2;
    }
    
    .btn-group {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
      flex-wrap: wrap;
    }
    
    .btn {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .btn-primary {
      background-color: var(--primary-color);
    }
    
    .btn-primary:hover {
      background-color: var(--secondary-color);
    }
    
    .btn-success {
      background-color: var(--success-color);
    }
    
    .btn-success:hover {
      background-color: #38b6db;
    }
    
    .btn-outline {
      background-color: transparent;
      border: 1px solid var(--primary-color);
      color: var(--primary-color);
    }
    
    .btn-outline:hover {
      background-color: rgba(67, 97, 238, 0.1);
    }
    
    .hidden {
      display: none;
    }
    
    .error-message {
      color: var(--error-color);
      margin-top: 1rem;
      font-weight: 500;
    }
    
    .language-selector {
      margin: 1rem 0;
    }
    
    select {
      padding: 0.5rem;
      border-radius: 5px;
      border: 1px solid var(--border-color);
      background-color: white;
      width: 100%;
      max-width: 300px;
    }
    
    @media (max-width: 768px) {
      .main-section {
        padding: 1.5rem;
      }
      
      h1 {
        font-size: 1.5rem;
      }
      
      h2 {
        font-size: 1.3rem;
      }
      
      .btn-group {
        flex-direction: column;
      }
      
      .btn {
        width: 100%;
        justify-content: center;
      }
      
      select {
        max-width: 100%;
      }
    }
    
    /* Focus styles for accessibility */
    button:focus, input:focus, select:focus, .file-input-label:focus {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }
    
    /* Skip link for keyboard users */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: var(--primary-color);
      color: white;
      padding: 8px;
      z-index: 100;
      transition: top 0.3s;
    }
    
    .skip-link:focus {
      top: 0;
    }
 
 
 
 	  footer {
		  background: #333;
		  color: white;
		  display: flex;
		  justify-content: center; /* Center-align footer content */
		  align-items: center;
		  padding: 20px;
		  flex-wrap: wrap; /* Allow wrapping for smaller screens */
		  position: fixed; /* Fix the footer at the bottom */
		  bottom: 0; /* Position it at the bottom of the page */
		  left: 0;
		  width: 100%; /* Ensure it stretches across the whole width */
		  z-index: 100; /* Make sure it's on top of other content */
		}

		footer {
		  background: #333;
		  color: white;
		  display: flex;
		  justify-content: center; /* Center-align footer content */
		  align-items: center;
		  padding: 20px;
		  position: fixed; /* Fix the footer at the bottom */
		  bottom: 0;
		  left: 0;
		  width: 100%; /* Ensure it stretches across the whole width */
		  z-index: 100; /* Make sure it's on top of other content */
		}

		footer p {
		  margin: 0;
		  text-align: center; /* Center-align the text */
		  font-size: 0.9rem;
		  margin-right: 20px; /* Add spacing between copyright and links */
		}

		footer .footer-links {
		  display: flex;
		  gap: 20px; /* Space between links */
		  margin-left: 20px; /* Add spacing between copyright and links */
		  justify-content: center; /* Ensure the links are centered */
		}

		footer .footer-links a {
		  color: white;
		  text-decoration: none;
		  font-size: 0.9rem;
		}

		footer .footer-links a:hover {
		  text-decoration: underline;
		}

		/* This ensures that both the text and links are aligned together in the center */
		footer p, .footer-links {
		  display: inline-flex; /* This ensures they are aligned side by side */
		  align-items: center;
		}