body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    padding: 20px;
    box-sizing: border-box;
    color: #333;
}

.container {
    background-color: #ffffff;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 900px;
}

h1 {
    color: #1c1e21;
    margin-bottom: 10px;
}

.container > p { /* Target direct child p of container */
    color: #606770;
    font-size: 0.95em;
    margin-bottom: 20px;
}

input[type="file"] {
    margin: 25px auto;
    padding: 12px 15px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    background-color: #f5f6f7;
    cursor: pointer;
    display: block; 
}

input[type="file"]::file-selector-button {
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #e4e6eb;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    color: #4b4f56;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #d8dbdf;
}


.images-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; 
    margin: 30px 0;
    gap: 25px; 
    flex-wrap: wrap; 
}

.image-box {
    flex: 1; 
    min-width: 300px; 
    padding: 15px;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 400px; 
    box-sizing: border-box;
}

.image-box h2 {
    font-size: 1.25em;
    color: #333;
    margin-top: 5px;
    margin-bottom: 15px;
}

.image-box img {
    max-width: 100%;
    max-height: 300px; 
    height: auto;
    border-radius: 6px;
    object-fit: contain; 
    background-color: #e9e9e9; /* Light background for transparent parts of image */
}

.image-box p { /* Placeholder text */
    font-size: 0.9em;
    color: #777;
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%; /* Ensure it tries to fill the image area */
    margin: 0;
    padding: 10px; /* Add some padding inside placeholder */
    box-sizing: border-box;
}

button {
    padding: 12px 25px;
    background-color: #1877f2; 
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: bold;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:disabled {
    background-color: #bcc0c4;
    color: #777777a0; /* Lighter text color for disabled state */
    cursor: not-allowed;
    box-shadow: none;
}

button:hover:not(:disabled) {
    background-color: #166fe5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#loadingIndicator {
    margin-top: 15px;
    font-weight: 500;
    color: #1877f2;
    font-size: 1em;
}

