body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6; /* Increase line spacing for better readability */
}
.header {
    display: flex;
    justify-content: center; /* Center the header content */
    align-items: center;
    margin-bottom: 20px;
}
.index-container, .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}
.logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Add margin to separate logo from content */
}
.logo img {
    max-height: 50px;
    margin-right: 10px;
}
.warning-container {
    background-color: #fff3cd;
    padding: 10px 20px; /* Increase padding for better spacing */
    border-radius: 4px;
    text-align: center;
    margin: 0 auto 20px auto;
    display: inline-block;
}
.warning {
    font-size: 1em; /* Small text size */
    color: #856404;
}
.result-container {
    display: none; /* Hide initially */
}
h1 {
    font-size: 2em; /* Increase text size for main title */
    margin-bottom: 20px; /* Increase margin for better spacing */
}
h2 {
    font-size: 1.5em; /* Increase text size for subheadings */
    margin-bottom: 15px; /* Increase margin for better spacing */
}
h3 {
    font-size: 1.25em; /* Increase text size for smaller subheadings */
    margin-bottom: 10px; /* Increase margin for better spacing */
}
p, .result p, .result ul, .result ol, .result h2, .result h3, .result h4 {
    font-size: 1em; /* Small text size */
    margin-bottom: 15px; /* Increase margin for better spacing */
}
.result {
    padding: 15px; /* Increase padding for better spacing */
    background-color: #e9ecef;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}
.result ul, .result ol {
    padding-left: 20px;
}
.result ul li, .result ol li {
    margin-bottom: 10px; /* Increase margin for better spacing */
}
.result hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}
button {
    padding: 10px 20px;
    font-size: 1em; /* Small text size */
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #d0d0d0;
}
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: url('../images/back-button.svg') no-repeat center center;
    background-size: contain;
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
}
.back-button:hover {
    background-color: #d0d0d0; /* Change this to the desired hover background color */
}
.loader {
    display: flex;
    justify-content: center;
    height: 100vh;
    font-size: 2em; /* Large text size */
    color: #333;
    padding-top: 200px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #ddd; /* Ensure table borders are visible */
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f2f2f2; /* Ensure header background color is visible */
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.button-container button {
    padding: 5px 10px;
    font-size: 0.9em;
    color: #333;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin: 1px;
}
.button-container button:hover {
    background-color: #d0d0d0;
}
.form-container {
    margin-top: 10px;
}
.form-container .form-field {
    margin-bottom: 20px;
}
.form-container .form-field label {
    font-weight: bold;
}
.form-container .form-field .guidance {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}
.form-container input, .form-container textarea {
    width: calc(100% - 20px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 20px;
    background-color: #fff;
}
.form-container input[readonly], .form-container textarea[readonly] {
    background-color: #f9f9f9;
}
.submit-button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.submit-button:hover {
    background-color: #d0d0d0;
}
.footer-note {
    margin-top: 20px;
    font-size: 12px;
    color: #333;
}
.selected {
    background-color: #004a7c !important;
    color: #fff !important;
}

.upload-container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#uploadButton {
    background-color: white;
    border: 2px solid #005A9C;
    color: #005A9C;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#uploadButton img {
    width: 35px;
    margin-right: 10px;
}

#documentPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 50vw; 
    height: 80vh; 
    text-align: center;
}

#pdfPreview {
    width: 100%;
    height: 65vh;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

#loadingContainer {
    width: 300px;
    background-color: #e0e0e0;
    margin: 20px auto;
    height: 20px;
}

#loadingBar {
    width: 0;
    height: 20px;
    background-color: #4CAF50;
    
}


#analysisResult {
    margin-top: 20px;
    display: none;
}

.success-tick {
    color: green;
    font-size: 24px;
    display: none;
}


#translationOptions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

#languageDropdown {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#startTranslationBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#startTranslationBtn:hover {
    background-color: #45a049;
}

#popupContent {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#pdfPreview {
    flex: 3; /* Take up most of the space */
    width: 100%;
    height: 65vh;
    border: 1px solid #ddd;
    margin-right: 15px;
}

#translationOptions {
    flex: 1; /* Take up less space */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#languageDropdown {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#startTranslationBtn {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

#startTranslationBtn:hover {
    background-color: #45a049;
}

#loadingContainer {
    margin-top: 15px;
}

#loadingBar {
    width: 0;
    height: 20px;
    background-color: #4CAF50;
}



#translatedPdfPreview {
    width: 100%;
    height: 80vh; /* Increased height to 80% of viewport height */
    border: 1px solid #ddd;
    margin: 20px 0;
}

#analysisResult {
    margin-top: 20px;
    display: none;
    width: 90%; /* Increased width to 90% of container */
    max-width: 1200px; /* Added maximum width for very large screens */
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Adjust container width to accommodate larger preview */
.container, .index-container {
    max-width: 1200px; /* Increased from 900px */
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}