/* Token Upload Fix
   Prevent token logo from overlapping other sections on mobile */

/* Make sure uploaded images are properly contained */
.uploaded-image-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 50%;
}

/* Fix for logo preview container */
#logo-preview-container {
    max-width: 100%;
    margin: 15px auto;
    text-align: center;
}

#uploaded-logo-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

/* Fix for token logo in preview */
.token-logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: rgba(25, 35, 77, 0.6);
}

.token-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ensure all images in token creator are responsive */
.token-creator-form img,
.token-preview img {
    max-width: 100%;
    height: auto;
}

/* Responsive fixes for mobile */
@media screen and (max-width: 767px) {
    .logo-upload-area {
        padding: 20px;
        min-height: 150px;
    }
    
    /* Perfectly circular token logo on mobile */
    .token-logo-preview {
        width: 60px;
        height: 60px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        margin: 0 auto 10px auto;
        box-shadow: 0 0 10px rgba(0, 148, 255, 0.3);
    }
    
    /* Ensure proper stacking on mobile */
    .token-preview {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Fix for uploaded preview images */
    #logo-preview-container.uploaded {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #uploaded-logo-preview {
        max-height: 120px;
    }
    
    /* Fix for the token display */
    .token-display {
        overflow: hidden;
    }
}
