:root {
    --primary-bg: #5e35b1;
    --secondary-bg: #16532A;
    --accent-color: #16532A;
    --text-color: #ffffff;
    --muted-text: #ffffff;
    --chart-color-1: #9575cd;
    --chart-color-2: #7986cb;
    --positive-color: #4caf50;
    --negative-color: #f44336;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

tr {
    border-radius: 24px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.glass-input, .glass-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.glass-input:focus, .glass-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.glass-select option {
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.time-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-btn:hover, .time-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.connect-wallet-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-bg));
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.connect-wallet-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: pulse 1s infinite;
}

#swapButton, #swapFullButton {
    background: linear-gradient(to right, #7e57c2, #5e35b1);
    color: #ffffff;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

#swapButton:hover, #swapFullButton:hover {
    background: linear-gradient(to right, #9575cd, #7e57c2);
    transform: scale(1.05);
}

#tooltip {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#connectWalletModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#connectWalletModal.active {
    display: flex;
}

.chart-background {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.swap-icon {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--muted-text);
    transition: all 0.3s ease;
}

.swap-icon:hover {
    transform: rotate(180deg);
}

.token-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    text-align: center;
}

.token-table th {
    padding: 12px;
    color: var(--muted-text);
    font-weight: 600;
}

.token-table td {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.token-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 4px;
    background-color: var(--chart-color-1);
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

.nav-link {
    position: relative;
    color: var(--muted-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    left: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .time-selector {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .time-btn {
        flex-shrink: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    body {
        background: none;
        color: #000;
    }

    .glass-card {
        box-shadow: none;
        border: 1px solid #000;
    }

    .chart-background {
        display: none;
    }
}

.greed-index-text {
    color: #ffffff;
}

.glass-btn img {
    margin-right: 8px;
}
