/* Reset basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body, html {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    flex-direction: column;
}

/* Container styling */
.container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
}

/* Beautified heading */
.container h1 {
    margin-bottom: 20px;
    font-size: 28px;
    /*color: #333;*/
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: #007bff;
}

/* Labels */
label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: left;
}

/* Radio button group styling */
.radio-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
}

.radio-group label {
    font-weight: normal;
    color: #555;
    cursor: pointer;
}

/* Dropdown and file input styling */
select, input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 14px;
}

/* Help text box styling */
.help-box {
    background-color: #fff9c4; /* Mild yellow for attention */
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
    color: #555;
    margin-top: 5px; /* Close to file input for connection */
    margin-bottom: 15px;
    text-align: left;
}

.help-box::before {
    content: "ℹ️";
    font-size: 15px;
    margin-right: 3px;
}

/* Button styling */
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Error message styling */
.error-message {
    display: flex;
    align-items: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.error-message::before {
    content: "⚠️";
    font-size: 18px;
    margin-right: 8px;
}

/* Result section styling */
#result {
    margin-top: 20px;
    text-align: center;
}

/* Table styling */
#detailsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

#detailsTable th, #detailsTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#detailsTable th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#detailsTable td {
    background-color: #fafafa;
}

/* Hide table by default */
#detailsTable {
    display: none;
}

#loader {
    display: none; /* Initially hidden */
    width: 20px;
    vertical-align: middle;
    margin-left: 8px; /* Space between text and loader */
}

/* Style for the disabled button */
button:disabled, .disabled-button {
    background-color: #ccc; /* Gray background */
    color: #666; /* Dimmed text color */
    cursor: not-allowed; /* Show 'not allowed' cursor */
}

/* Footer styling for full-width bottom alignment */
footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #f4f4f9;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #ddd;
}

/* styling for sample document downloads */
.sample-downloads {
    margin-bottom: 20px;
    text-align: center;
}

.sample-downloads p {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.sample-downloads .sample-link {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 12px;
    background-color: #e7f3ff;
    color: #007bff;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sample-downloads .sample-link:hover {
    background-color: #d0e7ff;
}
