/* Enhanced Token Preview Styles */

/* Token Dashboard Layout */
.token-creator-dashboard {
    margin-top: 30px;
    background: rgba(6, 14, 40, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 25px;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.token-creator-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 241, 149, 0.3), transparent);
    z-index: 1;
}

/* Dashboard Display */
.dashboard-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Token Preview */
.token-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(9, 21, 64, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.token-symbol-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9945FF, #14F195);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.3);
}

.token-logo-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 14, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.preview-token-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.preview-token-symbol {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Network Indicator */
.network-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(9, 21, 64, 0.4);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14F195;
    box-shadow: 0 0 8px rgba(20, 241, 149, 0.6);
}

.network-dot.solana {
    background: #14F195;
}

.network-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Token Metrics */
.token-metrics {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.token-metric-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.token-metric-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(9, 21, 64, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: linear-gradient(135deg, rgba(59, 173, 227, 0.8), rgba(87, 111, 230, 0.9));
    box-shadow: 0 2px 15px rgba(59, 173, 227, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: visible;
}

/* Ensure icons display properly */
.metric-icon i,
.metric-icon svg {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    position: relative;
    top: 0;
    left: 0;
}

/* SVG-specific enhancements */
.metric-icon svg {
    fill: #ffffff;
    stroke: #ffffff;
    stroke-width: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    width: 20px;
    height: 20px;
}

.metric-icon.supply {
    background: linear-gradient(135deg, #9945FF, #6978FF);
    box-shadow: 0 0 10px rgba(153, 69, 255, 0.4);
    color: white;
}

.metric-icon.supply i {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Vibrant metric icon backgrounds with stronger gradients */
.metric-icon.supply {
    background: linear-gradient(135deg, #3badfb, #576fe6);
    box-shadow: 0 0 15px rgba(59, 173, 227, 0.7);
}

.metric-icon.decimals {
    background: linear-gradient(135deg, #ff69b4, #d14bcd);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
}

.metric-icon.transactions, 
.metric-icon.fee {
    background: linear-gradient(135deg, #14f195, #1b9c85);
    box-shadow: 0 0 15px rgba(20, 241, 149, 0.7);
}

.metric-icon.fee i, .metric-icon.transactions i {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Enhanced mobile-specific adjustments */
@media screen and (max-width: 767px) {
    .metric-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 14px;
        aspect-ratio: 1 / 1;
    }
    
    .metric-icon i {
        font-size: 14px;
    }
    
    /* Enhanced token preview container for mobile */
    .token-preview {
        gap: 12px;
        padding: 10px;
    }
}

.metric-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Upload Image Preview */
.uploaded-image-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .token-creator-wrapper {
        justify-content: center;
    }
    
    .token-creator-dashboard {
        margin-top: 30px;
    }
}

@media screen and (max-width: 767px) {
    .token-creator-dashboard {
        max-width: 100%;
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .token-preview {
        padding: 12px;
    }
    
    .token-symbol-bg {
        width: 42px;
        height: 42px;
        min-width: 42px; /* Prevents stretching */
        min-height: 42px; /* Prevents stretching */
        aspect-ratio: 1 / 1; /* Forces perfect circle */
    }
    
    .token-logo-preview {
        width: 38px;
        height: 38px;
        min-width: 38px; /* Prevents stretching */
        min-height: 38px; /* Prevents stretching */
        aspect-ratio: 1 / 1; /* Forces perfect circle */
        font-size: 16px;
    }
    
    .preview-token-name {
        font-size: 16px;
    }
    
    .preview-token-symbol {
        font-size: 12px;
    }
    
    .token-metric-row {
        flex-direction: column;
    }
    
    /* Make sure metrics don't get too squished */
    .token-metric-item {
        width: 100%;
        padding: 10px;
    }
    
    .metric-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* For wider phone screens in landscape */
@media screen and (min-width: 480px) and (max-width: 767px) {
    .token-creator-dashboard {
        max-width: 450px;
        margin: 25px auto 0;
    }
    
    .token-metric-row {
        flex-direction: row;
    }
}

/* Token preview animation */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(153, 69, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(153, 69, 255, 0.3);
    }
}

.token-symbol-bg {
    animation: glow-pulse 3s infinite ease-in-out;
}
