body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.top-bar {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.nav-links a {
    margin-left: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0056b3;
    text-decoration: underline;
}

.build-info {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(51, 51, 51, 0.5);
    white-space: nowrap;
}

.upload-area {
    border: 2px dashed #ccc;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-area p {
    color: #777;
    margin: 0;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-area,
.options-area,
.results-area {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.preview-area h3,
.options-area h3,
.results-area h3 {
    color: #555;
    margin-top: 0;
}

.options-area label {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

pre {
    background-color: #eee;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

code {
    font-family: "Fira Code", "Courier New", Courier, monospace;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
}

.docs-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1100px;
    margin-bottom: 60px;
}

.docs-container section {
    margin-bottom: 40px;
}

.docs-container h2 {
    color: #333;
    margin-bottom: 15px;
}

.docs-container p,
.docs-container li {
    color: #555;
    line-height: 1.6;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

th {
    background-color: #f9f9f9;
    font-weight: 600;
}

/* Spinner styles */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Thumbnail styles */
.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    font-size: 12px;
    color: #555;
    text-align: center;
    word-break: break-all;
    padding: 5px;
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 15px;
    }

    .build-info {
        margin-left: 0;
        align-self: flex-end;
        font-size: 0.7rem;
    }

    .docs-container {
        padding: 20px;
    }

    .upload-area {
        padding: 30px;
    }

    button {
        padding: 10px 15px;
        font-size: 14px;
    }
}