body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
}

h1 {
    color: #0056b3;
    margin-bottom: 10px;
}

p {
    font-size: 1.1em;
    color: #555;
}

main {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.controls {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px dashed #a8d0ed;
    border-radius: 8px;
    background-color: #e6f3ff;
}

.controls label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.controls input[type="file"] {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #a8d0ed;
    border-radius: 4px;
    width: calc(100% - 16px);
    box-sizing: border-box;
    background-color: #fbfdff;
}

.options {
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.options label {
    font-weight: normal;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.options input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #007bff;
}

.tooltip-icon {
    margin-left: 5px;
    cursor: help;
    color: #007bff;
    font-weight: bold;
}

button#convertButton {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
}

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

button#convertButton:active {
    background-color: #004080;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

#status {
    background-color: #e7f3ff;
    color: #007bff;
    border: 1px solid #b3daff;
}

#status.success {
    background-color: #e6ffed;
    color: #28a745;
    border-color: #b8f0c2;
}

#status.error {
    background-color: #ffe6e6;
    color: #dc3545;
    border-color: #f5baba;
}

#downloads-info {
    margin-top: 15px;
    font-size: 0.9em;
    color: #555;
}

.downloads-info .error-item {
    color: #dc3545;
    font-weight: normal;
    margin-bottom: 5px;
}

.downloads-info .error-summary {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
}


.instructions {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
    border-radius: 5px;
}

.instructions h2 {
    color: #007bff;
    margin-top: 0;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    color: #444;
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.footer-branding {
    display: flex;
    align-items: center;
    margin-top: 15px;
    color: #555;
    font-size: 0.85em;
}

.footer-logo {
    height: 25px;
    width: 25px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-branding a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.footer-branding a:hover {
    text-decoration: underline;
}