/* Main CSS for KaspaViewer */

/* Global Styles */
:root {
    --primary-color: #ff5722;
    --secondary-color: #2196f3;
    --background-color: #f0f0f0;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
    --positive-color: #4caf50;
    --negative-color: #f44336;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

#logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.twitter {
    background-color: #1da1f2;
}

.facebook {
    background-color: #4267b2;
}

.telegram {
    background-color: #0088cc;
}

.support-address {
    text-align: center;
    margin-top: 10px;
}

.address-box {
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    word-break: break-all;
    margin-top: 5px;
    color: var(--primary-color);
}

/* Main Content Styles */
main {
    margin: 20px 0;
}

/* Address Input Section */
.address-input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#address-input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

.button-group {
    display: flex;
    gap: 10px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
}

.small-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

/* Overview Section */
.overview-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.overview-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.overview-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.overview-card p {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

#recent-addresses {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-address {
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.recent-address:hover {
    background-color: #e8e8e8;
}

/* Token Table Section */
.token-table-section {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

#token-table {
    width: 100%;
    border-collapse: collapse;
}

#token-table th,
#token-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#token-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.token-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.token-icon-placeholder {
    color: var(--primary-color);
}

/* Style for the actual token image */
.token-icon-img {
    width: 24px;  /* Fixed width */
    height: 24px; /* Fixed height */
    object-fit: contain; /* Scale image while preserving aspect ratio */
    vertical-align: middle; /* Align nicely with text */
}

.positive-change {
    color: var(--positive-color);
}

.negative-change {
    color: var(--negative-color);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: var(--primary-color);
}

.message {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: var(--text-color);
}

.hidden {
    display: none;
}

/* Footer Styles */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .overview-section {
        flex-direction: column;
    }
    
    .overview-card {
        width: 100%;
    }
    
    .token-table-section {
        margin-bottom: 20px; /* Add margin to the bottom of the section */
    }

    #token-table {
        font-size: 14px;
    }
    
    #token-table th,
    #token-table td {
        padding: 8px;
    }

    /* Style the market stats table like the token table */
    .market-stats-section {
        width: 100%;
        margin-bottom: 20px;
    }

    #market-stats-table {
        width: 100%;
        border-collapse: collapse;
    }

    #market-stats-table th,
    #market-stats-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    #market-stats-table th {
        background-color: #f8f8f8;
        font-weight: bold;
    }
}






