* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #007bff;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.form-column {
    flex: 1;
    min-width: 200px;
}

.form-column.checkbox-column {
    flex: 0 0 auto;
    min-width: 150px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

textarea,
input[type="file"],
input[type="text"],
select,
input[type="checkbox"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

textarea {
    height: 120px;
    resize: vertical;
    background-color: #f8f9fa;
}

textarea:disabled {
    background-color: #f8f9fa;
    color: #212529;
}

.file-input-wrapper,
.paste-area-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-input-button,
.paste-area {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    color: #555;
}

.file-input-button i,
.paste-area i {
    margin-right: 8px;
}

.paste-area {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.paste-area.active {
    border-color: #007bff;
}

.submit-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: none;
}

.result h3 {
    margin-top: 0;
    color: #007bff;
    display: flex;
    align-items: center;
}

.result h3 i {
    margin-right: 8px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.result img {
    max-width: calc(25% - 15px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result img:hover {
    transform: scale(1.02);
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('/grumpy/fonts/static/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat-Light';
    src: url('/grumpy/fonts/static/Montserrat-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway-Bold';
    src: url('/grumpy/fonts/static/Raleway-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway-Light';
    src: url('/grumpy/fonts/static/Raleway-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway-Regular';
    src: url('/grumpy/fonts/static/Raleway-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Helvetica';
    src: url('/grumpy/fonts/static/Helvetica.ttf') format('truetype');
}

@font-face {
    font-family: 'Times';
    src: url('/grumpy/fonts/static/times.ttf') format('truetype');
}

@font-face {
    font-family: 'Times-Bold';
    src: url('/grumpy/fonts/static/timesbd.ttf') format('truetype');
}

@font-face {
    font-family: 'Impact';
    src: url('/grumpy/fonts/static/impact.ttf') format('truetype');
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .result img {
        max-width: calc(50% - 15px);
    }
}