body {
    font-family: sans-serif;
    background-color: #f4f4f4;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding-top: 84px; /* Adjust for fixed header */
    padding-bottom: 20px;
}

.upload-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 600px;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
}

.upload-container > p {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #555;
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Styles for image preview */
#preview-container {
    display: none; /* Hidden by default */
    margin-top: 15px;
}

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    max-height: 300px; /* Limit height and make it scrollable */
    overflow-y: auto;
    background-color: #f9f9f9;
}

#image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.custom-file-upload:hover {
    background-color: #f1f1f1;
}

#file-input {
    display: none; /* Hide the actual file input */
}

#file-count {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}
