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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

:target {
    scroll-margin-top: 122px;
}

tr:nth-child(odd) {
    background-color: #f5f5f5;
}

#validatorSearchInput {
    padding: 5px;
    margin: 5px;
    min-width: 250px;
    border-color: #dfdfdf;
    border-style: double;
    border-width: thin;
}

table#validatorsTable {
    width: 98%;
    overflow-wrap: anywhere;
    text-align: left;
}
#validatorsTable .name-id {
    color: gray;
}
#validatorsTable td {
    padding: 7px;
    align-content: baseline;
}

#validatorsTable th {
    padding: 7px;
    background-color: aliceblue;
    overflow-wrap: normal;
    align-content: baseline;
}

#validatorsTable thead {
    /* position: sticky; */
    top: 66px;
    z-index: 100;
}

#transactions_menu ul {
    display: flex;
}

#transactions_menu li {
    display: block;
    padding: 8px;
    margin: 10px 8px 0 0;
}

li#transactions_menu_active {
    background-color: aliceblue;
}

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

}

.usd-value {
    color: black;
    font-size: 80%;
}

.usd-value-account {
    color: #474d57;
    font-size: 80%;
}


a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

ul {
    list-style: none;
}
.roles-list {
    color: #327a7c;
    font-variant: all-small-caps;
}
span.norloes {
    opacity: 0.4;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 22px;
}


.logo-row .logo-title a::after {
    content: "beta";
    font-size: 0.5em;
    color: #ff9800;
    vertical-align: super;
    margin-left: 5px;
    font-weight: normal;
    background-color: #f0f0f0;
    padding: 3px 6px;
    border-radius: 3px;
}
h1.logo-title {
    font-size: 1.4em;
}


.donate-link {
    background-color: #fff5e7;
    border-radius: 4px;
    padding: 0px 8px;
    font-weight: 500;
    font-size: 0.8em;
    text-decoration: none;
    /* border: 1px solid #ffe0b2; */
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.18s, color 0.18s;
    margin-left: -14px;
    margin-top: -10px;
}

.donate-link i {
    color: #e53935;
    font-size: 1em;
    margin-right: 4px;
}

.donate-link:hover,
.donate-link:focus {
    background: #ffe0b2;
    color: #c75000;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}


.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 800px;
    max-width: 90vw;
    box-shadow:0 4px 16px rgba(0,0,0,0.3);
    position: relative;
}


.close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}
.close:hover {
    color:#c00;
}
.donate-addr {
    color: #2980b9;
    overflow-wrap: anywhere;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
}
.tx-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    background-color: #f9f9f9;
}
.tx-table td {
    min-width: 55px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    overflow-wrap: anywhere;
}
.tx-table tr:hover {
    background-color: #f5f5f5;
}
.pagination {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    width: fit-content;
}
.pagination a {
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.pagination a.active {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}
.pagination a:hover:not(.active) {
    background-color: #f9f9f9;
}
.hash-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.address-cell {
    overflow-wrap: anywhere;
    max-width: 150px;
    /*            white-space: nowrap;*/
    overflow: hidden;
    text-overflow: ellipsis;
}
.sum-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge {
    display: inline-block;
    background-color: #9b59b6;
    color: #fff;
    font-size: 11px;
    /*            padding: 2px 8px;
                border-radius: 12px;*/
    min-width: 52px;
    text-align: center;
    margin-right: 5px;
    vertical-align: middle;

    padding: 1px 4px;
    border-radius: 3px;
}
.badge.success {
    background-color: #2ecc71;
}
.badge.pending {
    background-color: #f39c12;
}
.badge.failed {
    background-color: #e74c3c;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #3498db;
    display: flex;
    align-items: center;
}

.logo h1 i {
    margin-right: 8px;
    font-size: 28px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: #3498db;
}

.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin-left: 20px;
}

.search-bar input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;

    /*    background-color: #1e2733;
        border: 1px solid #2a3543;*/


}

.search-bar button {
    padding: 10px 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #2980b9;
}

/* Style Switcher */
.style-switcher {
    position: relative;
    margin-left: 20px;
    z-index: 200;
}

.style-toggle {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.style-toggle:hover {
    background-color: #2980b9;
    transform: rotate(30deg);
}

.style-options {
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    width: 250px;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 201;
}

.style-options.active {
    display: flex;
}

.style-option {
    width: 45%;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.style-option:hover {
    background-color: #f5f5f5;
}

.style-option.active {
    background-color: #eaf2fa;
}

.style-preview {
    display: block;
    width: 100%;
    height: 30px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.style-preview.default {
    background: linear-gradient(to right, #3498db, #2980b9);
}

.style-preview.dark {
    background: linear-gradient(to right, #2c3e50, #34495e);
}

.style-preview.colorful {
    background: linear-gradient(to right, #3498db, #9b59b6, #e74c3c, #f39c12);
}

.style-preview.minimal {
    background: linear-gradient(to right, #ecf0f1, #bdc3c7);
}

.style-preview.retro {
    background: linear-gradient(to right, #f1c40f, #d35400);
}

/* Hero Section Styles */
.hero {
    background-color: #3498db;
    color: #fff;
    padding: 40px 0;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.stat-box p {
    font-size: 24px;
    font-weight: 700;
}

.stat-box .price {
    font-size: 28px;
}

.stat-box .change {
    font-size: 14px;
    margin-top: 5px;
}

.stat-box .change.positive {
    color: #2ecc71;
}

.stat-box .change.negative {
    color: #e74c3c;
}

.stat-box .sub {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.error-code{
    margin: auto;
    max-width: 1200px;
    background-color: #ffe9dc;
    padding: 20px;
    height: 60vh;
    color: red;
    overflow-wrap: anywhere;
}
.info-code{
    margin: auto;
    max-width: 1200px;
    background-color : #d1f2d7;
    padding: 20px;
    color: red;
    text-align: left;
    overflow-wrap: anywhere;
}
.panel {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /*    overflow: hidden;*/
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.panel-header .view-all {
    font-size: 14px;
}

.panel-body {
    padding: 0;
}

.toggle-link {
    color: #0078c9;
    cursor: pointer;
    text-decoration: underline;
    padding: 10px;
}

/* Block List Styles */
.block-list li, .tx-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    /*    display: flex;*/
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.block-list {
    padding: 15px;
    overflow-wrap: anywhere;

}

.block-list li:hover, .tx-list li:hover {
    background-color: #f9f9f9;
}

.block-list li:last-child, .tx-list li:last-child {
    border-bottom: none;
}

.block-info {
    display: flex;
    flex-direction: column;
}

.block-number {
    font-weight: 700;
    color: #3498db;
}

.block-time {
    font-size: 12px;
    color: #000000;
}

.block-details {
    flex: 1;
    padding: 0 15px;
}

.block-details p, .tx-details p {
    font-size: 13px;
    margin-bottom: 5px;
}

.block-reward {
    font-weight: 700;
    color: #2ecc71;
}

/* Transaction List Styles */
.tx-list li {
    flex-direction: column;
}

.tx-hash {
    margin-bottom: 10px;
    width: 100%;
    display: grid;
    align-items: center;
    opacity: 0.6;
}

.tx-hash a {
    font-size: 14px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.tx-hash.contract {
    display: flex;
    justify-content: space-between;
}

.badge {
    background-color: #9b59b6;
    color: #fff;
    font-size: 11px;
    /*    padding: 2px 8px;
        border-radius: 12px;*/
    padding: 1px 4px;
    border-radius: 3px;
}

.address-link {
    font-family: monospace;
    font-size: 13px;
}
.marked {
    background: aliceblue;
}

.tx-details {
    width: 100%;
    overflow-wrap: anywhere;
}
.tx-raw-details {
    overflow-wrap: anywhere;
    padding: 15px;
    display: none;
}

.tx-value {
    font-weight: 700;
    color: #2ecc71;
    text-align: right;
    margin-top: -62px;


}
.tx-value-index {
    font-weight: 700;
    color: #2ecc71;
    text-align: right;
    margin-top: 0px;
}

.tx-value-holders {
    font-weight: 700;
    color: #2ecc71;
    text-align: right;
    margin-top: 0px;

}
/* Network Info Styles */
.network-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.network-info h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.info-item h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.info-item p {
    font-weight: 700;
    font-size: 18px;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 25px 0 20px;

}
.footer-column {
    overflow-wrap: anywhere;
}

.footer-columns {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    /* gap: 30px; */
    margin-bottom: 10px;
}

.footer-column h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column p {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

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

.social-links a {
    color: #bdc3c7;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 14px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .stats-overview, .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media screen and (max-width: 768px) {
    .tx-value {
        margin-top: 0px;

    }
    .columns {
        grid-template-columns: 1fr;
    }

    .stats-overview, .info-grid, .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .logo {
        margin-bottom: 15px;
    }

    nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
    }

    nav ul {
        width: 100%;
        padding-bottom: 5px;
    }

    .search-bar {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .style-switcher {
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .block-details, .tx-details {
        padding: 0 5px;
    }

    .tx-hash a {
        max-width: 70%;
    }
}

@media screen and (max-width: 480px) {
    .stats-overview, .info-grid, .footer-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .pagination a {
        padding: 4px;

    }

    nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    nav ul li {
        margin: 5px 15px 5px 0;
    }

    .style-options {
        right: -10px;
        width: 200px;
    }

    .tx-hash a {
        max-width: 55%;
        font-size: 12px;
    }

    .address-link {
        font-size: 11px;
        word-break: break-all;
    }

    .block-info, .block-details, .block-reward {
        font-size: 14px;
    }

    .panel-header {
        padding: 12px 15px;
    }

    .block-list li, .tx-list li {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .block-details {
        flex: 100%;
        padding: 5px 0;
    }

    .block-reward {
        width: 100%;
        text-align: left;
        margin-top: 5px;
    }

    .info-item {
        padding: 10px;
    }

    .hero {
        padding: 20px 0;
    }

    .stat-box {
        padding: 15px 10px;
    }
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #3498db;
    font-size: 24px;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .tx-value {
        margin-top: 0px;

    }
    .tx-value-holders {
        margin-top: 0px;
        width: 100%;
    }
    .tx-value-index {
        margin-top: 0px;
    }
    .address-link {
        font-size: 11px;
        word-break: break-all;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .style-switcher {
        top: 15px;
        right: 60px;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
    }
}

/* Account and Block Page Styles */
.page-header {
    background-color: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.page-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.address-text {

    font-family: monospace;
    font-size: 16px;
    background-color: #e1f3ff;
    padding: 8px 12px;
    border-radius: 4px;
    word-break: break-all;
    flex: 1;
}

.address-action {
    display: flex;
    gap: 10px;
}

.address-action button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.address-action button:hover {
    background-color: #f0f0f0;
}

.account-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .account-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {

    .account-overview {
        grid-template-columns: 1fr;
    }

    .address-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .address-action {
        width: 100%;
        justify-content: space-between;
    }
}

.account-info-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.account-info-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.account-info-value {
    font-size: 22px;
    font-weight: 500;
}

.account-info-note {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.transactions-tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #888;
}

span.tx-header-h2 {
    font-size: 80%;
    overflow-wrap: anywhere;
    color: gray;
}

.head-bg{
    background-color: #f1f1f1;
}

.tab-button.active {
    border-bottom-color: #3498db;
    color: #3498db;
}

.transaction-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.transaction-list-header {
    display: grid;
    grid-template-columns: 2.5fr 3fr 1.8fr 0.5fr 0.9fr;
    padding: 15px 20px;
    background-color: #f9f9f9;
    font-weight: 500;
}

.transaction-item {
    display: grid;
    grid-template-columns: 2.5fr 3fr 1.8fr 0.5fr 0.9fr;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.event-item {
    display: grid;
    grid-template-columns: 2.0fr 2fr 1fr 1.5fr 0.5fr;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.tx-direction {
    color: #888;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.tx-direction.in {
    color: #2ecc71;
}

.tx-direction.out {
    color: #e74c3c;
}

.tx-direction.Endowed {
    color: #3c5fe7;
}
.tx-direction.Awarded {
    color: #876bff;
}
.tx-direction.Slashed {
    color: red;
}


@media screen and (max-width: 768px) {
    .transaction-list-header, .transaction-item {
        grid-template-columns: 0.5fr 1.5fr 1fr;
    }
    .event-item {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .transaction-list-header .tx-amount, .transaction-item .tx-amount {
        /*        display: none;*/
    }
    .tx-table th{
        display: none;
    }
    /*    .tx-table tr{
            display: grid;
        justify-content: space-evenly;
        align-items: stretch;
        justify-items: stretch;
        align-content: stretch;
        }*/
    .hash-cell{
        max-width: fit-content !important;
    }
}

@media screen and (max-width: 600px) {
    .transaction-list-header {
        display: none;
    }

    .event-item {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .transaction-item {
        display: block;
    }

    .tx-hash {
        margin-bottom: 5px;
    }

    .tx-address {
        margin-bottom: 5px;
    }

    .tx-status {
        margin-top: 5px;
    }

}

/* Block details page */
.block-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.block-detail-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
}

.block-detail-label {
    color: #888;
    font-size: 14px;
}

.block-detail-value {
    font-weight: 500;
    text-align: right;
}

.block-detail-value .address-link {
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .event-item {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    .block-detail-grid {
        grid-template-columns: 1fr;
    }
    .tx-value {
        margin-top: 0px;

    }
    #validatorsTable td {
        font-size: 9px;
        padding: 5px;
    }
    #validatorsTable thead{
        font-size: 11px;
    }
}