/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme Variables */
:root {
    /* Dark Theme */
    --background-body: #1A1A1A;
    --text-color: #e0e0e0;
    --secondary-text: #b0bec5;
    --header-bg-start: #1A1A1A;
    --header-bg-end: #2A2A2A;
    --sidebar-bg: #000000;
    --sidebar-border: #00CC99;
    --accent-color: #00CC99;
    --accent-hover: #30ff38;
    --token-line-bg-start: #1c2526;
    --token-line-bg-end: #141a1b;
    --token-line-border: #00cc99;
    --network-bg: rgba(255, 64, 129, 0.1);
    --network-border: #ff4081;
    --network-text: #ff4081;
    --vote-pump-bg: #00cc99;
    --vote-dump-bg: #ff4081;
    --vote-count-bg: #7c4dff;
    --error-bg: rgba(255, 82, 82, 0.2);
    --error-text: #ff5252;
    --scrollbar-track: #16213e;
    --scrollbar-thumb: #00CC99;
    --scrollbar-thumb-hover: #30ff38;
    --home-icon-color: #ffbd28;
    --agent-icon-color: #28fff4;
    --whale-icon-color: #4caf50;
    --ai-icon-color: #a974ff;
    --trending-icon-color: #ff2865;
    --newpool-icon-color: #9C27B0;
    --vote-icon-color: #ff5722;
    --listed-icon-color: #90d000;
    --earn-icon-color:#74a2ff;
    --icon-bg-start: #00ff8b4d;
    --icon-bg-end: #05fff23d;
    --active-color: #ff5722;
}

[data-theme="light"] {
    /* Light Theme */
    --background-body: #f5f5f5;
    --text-color: #333333;
    --secondary-text: #6b7280;
    --header-bg-start: #ffffff;
    --header-bg-end: #e8ecef;
    --sidebar-bg: #e8ecef;
    --sidebar-border: #16a34a;
    --accent-color: #16a34a;
    --accent-hover: #15803d;
    --token-line-bg-start: #ffffff;
    --token-line-bg-end: #e8ecef;
    --token-line-border: #16a34a;
    --network-bg: rgba(219, 39, 119, 0.1);
    --network-border: #db2777;
    --network-text: #db2777;
    --vote-pump-bg: #16a34a;
    --vote-dump-bg: #db2777;
    --vote-count-bg: #6d28d9;
    --error-bg: rgba(239, 68, 68, 0.2);
    --error-text: #b91c1c;
    --scrollbar-track: #e5e7eb;
    --scrollbar-thumb: #16a34a;
    --scrollbar-thumb-hover: #15803d;
    --home-icon-color: #d97706;
    --agent-icon-color: #0891b2;
    --whale-icon-color: #15803d;
    --ai-icon-color: #7e22ce;
    --trending-icon-color: #b91c1c;
    --newpool-icon-color: #7e22ce;
    --vote-icon-color: #c2410c;
    --listed-icon-color: #65a30d;
    --earn-icon-color:#747eff;
    --icon-bg-start: #f3f4f6;
    --icon-bg-end: #d1d5db;
    --active-color: #c2410c;
}
.earn-icon{
            color: var(--earn-icon-color);
            border: solid 1px var(--secondary-text);
            padding: 10px;
            border-radius: 7px;
            width: 50px;
            background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
        }
button {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}
/* Sidebar Icons */
.home-icon {
    color: var(--home-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.agent-icon {
    color: var(--agent-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.whale-icon {
    color: var(--whale-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.ai-icon {
    color: var(--ai-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.trending-icon {
    color: var(--trending-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.newpool-icon {
    color: var(--newpool-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.vote-icon {
    color: var(--vote-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.listed-icon {
    color: var(--listed-icon-color);
    border: solid 1px;
    padding: 10px;
    border-radius: 7px;
    width: 50px;
    background: linear-gradient(45deg, var(--icon-bg-start), var(--icon-bg-end)) !important;
}

.active {
    color: var(--active-color) !important;
}

/* HTML and Body */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: monospace;
    background-color: var(--background-body);
    color: var(--text-color);
    line-height: 1.6;
}

body.sidebar-open {
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg));
    /*box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);*/
    z-index: 900;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-header .logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
}

.sidebar-header .logo span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 8px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.network-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.close-sidebar {
    display: none;
}

.sidebar-content {
    padding: 20px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-content h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    list-style: none;
    margin-bottom: 10px;
    padding: 4px;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav {
    padding: 20px;
    display: none;
}

.sidebar-nav .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: var(--token-line-bg-start);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-nav .nav-link:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    color: var(--text-color);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.sidebar-nav .nav-link:hover i {
    color: var(--text-color);
}

/* Header */
header {
    background: linear-gradient(90deg, var(--header-bg-start), var(--header-bg-end));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Hamburger */
.hamburger {
    display: none !important;
    cursor: pointer;
    font-size: 24px;
    color: var(--accent-color);
    background: none;
    border: none;
    padding: 10px;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Vote Items */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Vote Items */
#tokenContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.token-line {
    background: linear-gradient(145deg, var(--token-line-bg-start), var(--token-line-bg-end));
    border: 1px solid var(--token-line-border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.token-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.1), transparent);
    transition: left 0.5s ease;
}

.token-line:hover {
    transform: translateY(-3px);
    border-color: var(--accent-hover);
}

.token-line:hover::before {
    left: 100%;
}

.symbol {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(22, 163, 74, 0.3);
}

.network {
    color: var(--network-text);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--network-bg);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--network-border);
    text-shadow: 0 0 3px rgba(219, 39, 119, 0.2);
}

.address {
    color: var(--text-color);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-label {
    color: var(--secondary-text);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.3s ease, border-color 0.3s ease;
}

.vote-button:hover {
    transform: scale(1.05);
    border-color: var(--text-color);
}

.vote-button.pump {
    background: var(--vote-pump-bg);
    color: var(--text-color);
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

.vote-button.dump {
    background: var(--vote-dump-bg);
    color: var(--text-color);
    box-shadow: 0 0 8px rgba(219, 39, 119, 0.4);
}

.vote-button.count {
    background: var(--vote-count-bg);
    color: var(--text-color);
    box-shadow: 0 0 8px rgba(124, 77, 255, 0.4);
}

.token-line {
    animation: slideIn 0.4s ease forwards;
}

.error {
    text-align: center;
    color: var(--error-text);
    padding: 20px;
    background: var(--error-bg);
    border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop */
@media (min-width: 769px) {
    .sidebar {
        left: 0;
        transition: none;
    }

    .sidebar-nav {
        display: none;
    }

    .container {
        margin-left: 270px;
        max-width: calc(1200px - 270px);
    }

    .hamburger {
        display: none !important;
    }

    header {
        display: block;
    }

    #tokenContainer {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        z-index: 99999;
    }

    .sidebar {
        left: -250px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-nav {
        display: block;
    }

    .hamburger {
        display: block !important;
        position: static !important;
        z-index: 1100 !important;
    }

    .navbar {
        display: none;
    }

    .container {
        margin: 70px 15px 15px;
    }

    #tokenContainer {
        grid-template-columns: 1fr;
    }

    .token-line {
        font-size: 0.9rem;
        padding: 15px;
    }

    .vote-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Phone */
@media (max-width: 480px) {
    .sidebar {
        /* width: 200px; */
        /* left: -200px; */
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-header .logo {
        font-size: 16px;
    }

    .sidebar-content h3 {
        font-size: 16px;
    }

    .sidebar-links a {
        font-size: 14px;
    }

    .sidebar-nav .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .container {
        margin: 60px 10px 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hamburger {
        font-size: 20px;
        padding: 8px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .token-line {
        font-size: 0.85rem;
    }

    .symbol {
        font-size: 1.2rem;
    }

    .network {
        font-size: 0.9rem;
    }

    .address {
        font-size: 0.85rem;
    }
}