.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;
}

#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;
}
