/* Token dashboard styling fixes */
.token-creator-dashboard {
    background: rgba(3, 13, 67, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 148, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 148, 255, 0.1);
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    transition: all 0.3s ease;
    padding: 20px;
    color: #ffffff !important; /* Ensure all text is white by default */
    background-image: linear-gradient(125deg, rgba(9, 26, 76, 0.7), rgba(3, 13, 67, 0.6), rgba(9, 26, 76, 0.7));
    position: relative;
}

/* Add glowing border effect */
.token-creator-dashboard::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, transparent, rgba(0, 148, 255, 0.2), transparent);
    border-radius: 16px;
    z-index: -1;
    animation: border-glow 5s linear infinite;
}

@keyframes border-glow {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* Force all text elements in the dashboard to have appropriate colors */
.token-creator-dashboard * {
    color: inherit;
}

.token-creator-dashboard h1, 
.token-creator-dashboard h2, 
.token-creator-dashboard h3, 
.token-creator-dashboard h4, 
.token-creator-dashboard h5, 
.token-creator-dashboard h6, 
.token-creator-dashboard p, 
.token-creator-dashboard span, 
.token-creator-dashboard div {
    color: #ffffff !important;
}

.token-creator-dashboard .dashboard-display {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(4, 16, 44, 0.4);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.token-creator-dashboard .dashboard-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 148, 255, 0.3), transparent);
    z-index: 2;
}

.token-creator-dashboard .token-preview {
    background: rgba(5, 17, 43, 0.7);
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 148, 255, 0.15);
    background-image: radial-gradient(circle at center, rgba(9, 30, 90, 0.8), rgba(5, 17, 43, 0.9));
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.token-creator-dashboard .token-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 148, 255, 0.05), transparent 70%);
    z-index: 0;
}

.token-creator-dashboard .token-preview::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(0deg, transparent, rgba(0, 148, 255, 0.03), transparent);
    transform: rotate(35deg);
    animation: shimmer-effect 8s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer-effect {
    0% { transform: translateY(-100%) rotate(35deg); }
    100% { transform: translateY(100%) rotate(35deg); }
}

/* Adding modern web font for token elements */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.token-creator-dashboard .token-symbol-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9945FF, #14F195);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 5;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(153, 69, 255, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: token-float 4s infinite ease-in-out;
    transform-style: preserve-3d;
    background-size: 300% 300%;
    background-image: linear-gradient(135deg, #9945FF, #14F195, #9945FF, #14F195);
    animation: gradient-shift 8s ease infinite, token-float 4s infinite ease-in-out;
    transition: all 0.4s ease;
}

.token-creator-dashboard .token-symbol-bg::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.5), rgba(20, 241, 149, 0.5));
    z-index: -1;
    filter: blur(5px);
    opacity: 0.7;
    animation: glow-pulse 3s infinite alternate;
}

.token-creator-dashboard .token-symbol-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 50%);
    z-index: 1;
}

@keyframes token-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
    0% { opacity: 0.5; filter: blur(5px); }
    100% { opacity: 0.8; filter: blur(8px); }
}

.token-creator-dashboard .token-logo-preview {
    width: 68px;
    height: 68px;
    /* Improved circular shape for better text fit */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #081832;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateZ(5px);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(240, 240, 240, 0.95));
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

.token-creator-dashboard .token-logo-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.15), inset 0 2px 6px rgba(255, 255, 255, 0.8);
    z-index: 7;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 60%);
}

.token-creator-dashboard .token-logo-preview::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
    z-index: 5;
    opacity: 0.5;
    filter: blur(1px);
}

.token-creator-dashboard .token-details {
    margin-top: 15px;
    position: relative;
    z-index: 5;
    padding: 10px 15px;
    background: rgba(4, 16, 44, 0.6);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 148, 255, 0.1);
    transform: translateZ(2px);
    transition: all 0.3s ease;
}

.token-creator-dashboard .token-details::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 148, 255, 0.3), transparent);
}

.token-creator-dashboard .token-details::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 148, 255, 0.1), transparent);
}

.token-creator-dashboard .preview-token-name {
    font-size: 22px;
    font-weight: 700;
    color: white !important;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 148, 255, 0.5);
    position: relative;
    z-index: 6;
    background: linear-gradient(90deg, #fff, #0094ff, #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 6s linear infinite;
    font-family: 'Outfit', sans-serif;
    transform: translateZ(2px);
}

@keyframes text-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.token-creator-dashboard .preview-token-symbol {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95) !important;
    position: relative;
    z-index: 6;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 148, 255, 0.2);
    border-radius: 6px;
    letter-spacing: 0.8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 148, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    transform: translateZ(3px);
}

.token-creator-dashboard .preview-token-symbol::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: symbol-shimmer 4s infinite linear;
    pointer-events: none;
}

@keyframes symbol-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.token-creator-dashboard .token-network {
    margin-top: 10px;
}

.token-creator-dashboard .network-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    padding: 5px 12px;
    background: rgba(4, 16, 44, 0.5);
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(20, 241, 149, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.token-creator-dashboard .network-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: rgba(4, 16, 44, 0.6);
}

.token-creator-dashboard .network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14F195, #00FFA3);
    box-shadow: 0 0 10px rgba(20, 241, 149, 0.7);
    position: relative;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(20, 241, 149, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); }
}

.token-creator-dashboard .network-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Inter', sans-serif;
}

.token-creator-dashboard .token-metrics {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 400px;
}

.token-creator-dashboard .token-metric-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.token-creator-dashboard .token-metric-item.transactions-fee {
    width: 210px;
    max-width: 100%;
}

.token-creator-dashboard .token-metric-item {
    flex: 1 1 30%;
    min-width: 90px;
    max-width: 130px;
    transition: all 0.3s ease;
    transform: translateZ(0);
    border-radius: 10px;
    padding: 10px;
    background: rgba(5, 17, 43, 0.5);
    border: 1px solid rgba(0, 148, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-creator-dashboard .token-metric-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.token-creator-dashboard .token-metric-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 148, 255, 0.25);
    background: rgba(5, 17, 43, 0.7);
}

.token-creator-dashboard .token-metric-item:hover::before {
    animation: metric-shine 1.5s forwards;
    opacity: 1;
}

@keyframes metric-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.token-creator-dashboard .metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(9, 30, 90, 0.7), rgba(9, 30, 90, 0.9));
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.token-creator-dashboard .metric-icon i {
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 148, 255, 0.5);
}

.token-creator-dashboard .metric-icon.supply i {
    color: #14F195;
}

.token-creator-dashboard .metric-icon.decimals i {
    color: #00C2FF;
}

.token-creator-dashboard .metric-icon.transactions i {
    color: #9945FF;
}

.token-creator-dashboard .metric-details {
    display: flex;
    flex-direction: column;
}

.token-creator-dashboard .metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 1px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.token-creator-dashboard .metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 148, 255, 0.3);
    white-space: nowrap;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .token-creator-dashboard .token-metrics {
        flex-direction: column;
        gap: 10px;
    }
}

/* Add spacing after token metrics section */
.token-creator-dashboard .token-metrics + * {
    margin-top: 20px;
}

/* Media Queries */
@media (max-width: 991px) {
    .token-creator-dashboard {
        padding: 15px;
    }
    
    .token-creator-dashboard .token-metrics {
        gap: 10px;
    }
    
    .token-creator-dashboard .metric-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .token-creator-dashboard .token-metrics {
        flex-direction: column;
    }
    
    .token-creator-dashboard .token-metric-item {
        width: 100%;
    }
}
