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: 30px;
    margin-right: 10px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure it covers the page */
    display: none; /* Hidden by default */
}

#documentPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    background: white;
    z-index: 1000; /* Above overlay */
    display: none; /* Hidden by default */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#pdfPreviewContainer {
    display: none;
    width: 100%;
    height: 60vh;
    margin-bottom: 25px;
    z-index: 1001; /* Ensure it is above other content */
}

iframe#pdfPreview {
    width: 100%;
    height: 60vh;
    border: none;
}

#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;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 15px;
}

.button-container button {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #005A9C;
    color: #005A9C;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-container button:hover {
    background-color: #005A9C;
    color: white;
}

.button-container button.selected {
    background-color: #004a7c;
    color: white;
    border-color: #004a7c;
}

#checkDescription {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

#pdfPreviewContainer {
    text-align: center;
}

#pdfPreview {
    width: 80%;
    height: 60vh;
    margin-bottom: 30px;
}

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

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


#descriptionsContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items at the top for better spacing */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    gap: 20px; /* Space between description boxes */
}

.description-box {
    flex: 1; /* Each box takes equal space */
    display: flex; /* Flexbox to align button and text */
    align-items: flex-start; /* Align content to the top */
    border: 1px solid #ccc; /* Optional: Add a border for clarity */
    padding: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
    border-radius: 8px; /* Optional: Round edges */
    gap: 10px; /* Space between button and text */
}

.description-box button {
    flex-shrink: 0; /* Prevent button from shrinking */
    align-self: flex-start; /* Align button to the top */
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.description-box button:hover {
    background-color: #0056b3;
}

.description-box div {
    flex: 1; /* Allow the text to take the remaining space */
}

.description-box h4 {
    margin-bottom: 10px; /* Add spacing below the heading */
}

.description-box ul {
    list-style: none; /* Remove default bullets */
    padding: 0; /* Remove default padding */
}

.description-box ul li {
    margin: 5px 0; /* Space between list items */
}