
.crypto-token-widget {
    position: relative;
    width: 100%;
    max-width: 320px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.98) 0%, rgba(20, 30, 50, 0.98) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    font-family: "Roboto Mono", monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.crypto-token-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 200, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: rgba(0, 200, 255, 0.5);
}

.widget-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.refresh-indicator {
    color: #00ff99;
    font-size: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.refresh-indicator.updating {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.token-list {
    display: flex;
    flex-direction: column;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

.loading-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.7);
    gap: 12px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-top: 2px solid #00c8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.token-item:hover {
    background: linear-gradient(90deg, rgba(0, 200, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    transform: translateX(2px);
}

.token-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-left {
    display: flex;
    align-items: center;
}

.token-right {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: right;
}

.price {
    font-weight: 500;
    margin-bottom: 2px;
}

.volume {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.change.up {
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
}

.change.down {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.widget-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.last-updated {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.token-list::-webkit-scrollbar {
    width: 6px;
}

.token-list::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.6);
    border-radius: 3px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .crypto-token-widget {
        max-width: 280px;
        max-height: 70vh;
    }
    .token-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    .token-item img {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
}
