/* Garment selector styling (no change) */
#garmentSelector {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#garmentSelector:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
    outline: none;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.3);
    border-top-color: black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preview-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}

.preview-item {
    position: relative;
    max-width: 100px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-item img {
    width: 100%;
    height: auto;
}

.preview-item-result {
    position: relative;
    max-width: 200px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-item-result img {
    width: 100%;
    height: auto;
}

#result {
    font-size: 1.5rem;
    color: #007bff;
    margin: 1rem 0;
    text-align: center;
}

.main-content {
    background: white;
    width: 100%;
    margin: auto;
    display: none;
}

.upload-area {
    width: 100%;
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(0, 123, 255, 0.05);
    border-color: #0056b3;
}

#preview {
    max-width: 200px;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: none;
}