body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 10px;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* File Upload Style */
.input-group {
    margin-bottom: 25px;
}

.file-label {
    display: block;
    padding: 15px;
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #dee2e6;
}

.file-label span {
    font-weight: bold;
    color: #007bff;
}

#image-upload {
    display: none; /* Hide the default file input */
}

/* Resize Options */
.resize-options {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.resize-options h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1em;
}

/* Submit Button */
#submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

#submit-button:hover:not(:disabled) {
    background-color: #218838;
}

#submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Status and Download Area */
#status-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
}

#download-area {
    margin-top: 25px;
    padding: 20px;
    background-color: #e0f7fa;
    border: 1px solid #00bcd4;
    border-radius: 8px;
    text-align: center;
}

#download-area h2 {
    color: #007bff;
    margin-top: 0;
}

.hidden {
    display: none;
}