/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Footer */
        footer {
            background-color: #000000; 
            color: #39FF14; /* Greenlight */
            padding: 15px;
            text-align: center;
            font-size: 14px;
            line-height: 1.6;
            border-top: 2px solid #39FF14; 
            box-shadow: 0 -2px 10px rgba(57, 255, 20, 0.3);
            flex-shrink: 0;
        }

        footer p {
            margin: 0;
            font-weight: 300;
            letter-spacing: 0.5px;
        }
        
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1A1A1A;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(90deg, #1A1A1A, #2A2A2A);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #39FF14;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #39FF14;
}

.nav-link.active {
    color: #39FF14;
    font-weight: 600;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2A2A2A;
    border: 1px solid #39FF14;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 120px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara gambar dan teks */
    padding: 10px 15px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #39FF14;
    color: #1A1A1A;
}

.network-logo {
    width: 20px;
    height: 20px;
    object-fit: contain; /* Memastikan gambar tidak terdistorsi */
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #39FF14;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.positive {
    color: #28a745; /* Green for positive */
    font-weight: bold;
}

.negative {
    color: #dc3545; /* Red for negative */
    font-weight: bold;
}

h1 {
    text-align: center;
    color: #39FF14;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
}

/* Input Section */
.input-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.input-section label {
    font-weight: 400;
    font-size: 13px;
    color: #FFFFFF;
    align-self: center;
}

.input-section input {
    padding: 10px;
    width: 300px;
    border: 1px solid #39FF14;
    border-radius: 5px;
    background-color: #2A2A2A;
    color: #FFFFFF;
    font-size: 14px;
}

.input-section input::placeholder {
    color: #888;
}

.input-section button {
    padding: 10px 20px;
    background-color: #39FF14;
    color: #1A1A1A;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.input-section button:hover {
    background-color: #2ECC10;
}

/* Result Section */
.result-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.bottom-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid-item {
    padding: 15px;
    background-color: #2A2A2A;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#token-info h3, #whale-data h3, #retail-data h3 {
    color: #39FF14;
    margin-bottom: 10px;
}

#token-info p, #whale-data p, #retail-data p {
    color: #FFFFFF;
    font-size: 14px;
}

#alert {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 400;
}

.alert.success {
    background-color: rgba(57, 255, 20, 0.1);
    color: #39FF14;
}

.alert.warning {
    background-color: rgba(255, 243, 205, 0.1);
    color: #FFC107;
}

.visualization {
    background-color: #2A2A2A;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Pastikan SVG responsif */
#visualization svg {
    width: 100% !important;
    max-width: 100%;
    height: auto;
}

/* Popup */
#popup {
    background-color: #2A2A2A;
    border: 1px solid #39FF14;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    color: #FFFFFF;
}

#popup div {
    margin-bottom: 5px;
}

#popup a {
    color: #39FF14;
    text-decoration: none;
}

#popup a:hover {
    text-decoration: underline;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #2A2A2A;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 20px;
        text-align: center;
    }

    /* Dropdown di Mobile */
    .dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        background-color: #1A1A1A;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 30px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center; /* Pusatkan gambar dan teks di mobile */
        gap: 8px;
    }

    .hamburger {
        display: block;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 11px;
    }

    .input-section {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .input-section input {
        width: 100%;
        max-width: 300px;
    }

    .input-section button {
        width: 100%;
        max-width: 300px;
    }

    .top-grid {
        grid-template-columns: 1fr 1fr; /* Dua kolom untuk Whale dan Retail */
        gap: 10px; /* Kurangi gap agar lebih rapi di mobile */
    }

    #token-info {
        grid-column: span 2; /* Token Info mengambil dua kolom penuh */
    }

    #whale-data, #retail-data {
        grid-column: span 1; /* Whale dan Retail masing-masing satu kolom */
    }

    .visualization {
        grid-column: span 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #visualization svg {
        width: 100% !important;
        height: 500px !important;
        max-width: 100%;
    }

    #popup {
        width: 100%;
        margin-bottom: 10px;
    }
}