* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #17345f;
}


button,
input,
select {
    font-family: inherit;
}


/* =========================
   APP
========================= */

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 250px;
    background: linear-gradient(
        180deg,
        #102f55,
        #071e3c
    );

    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    padding: 25px 15px;

    display: flex;
    flex-direction: column;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 5px 10px 30px;
}


.logo-icon {
    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: #2587e8;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
}


.logo h2 {
    font-size: 20px;
}


.logo span {
    color: #8bc7ff;
    font-size: 13px;
}


nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.nav-item {
    width: 100%;

    border: none;
    background: transparent;

    color: #dcecff;

    text-align: left;

    padding: 15px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;

    transition: 0.2s;
}


.nav-item:hover,
.nav-item.active {
    background: #1476d4;
    color: white;
}


.sidebar-bottom {
    margin-top: auto;

    text-align: center;

    color: #9db8d5;

    padding: 20px 10px;
}


.chain-icon {
    font-size: 70px;
    color: #298eea;
    margin-bottom: 15px;
}


.sidebar-bottom p {
    font-size: 12px;
    line-height: 1.7;
}


/* =========================
   MAIN
========================= */

.main {
    margin-left: 250px;
    width: calc(100% - 250px);
}


.header {
    height: 90px;

    background: linear-gradient(
        100deg,
        #174a83,
        #2674bd
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;
}


.header h1 {
    font-size: 25px;
    margin-bottom: 5px;
}


.header p {
    font-size: 14px;
    color: #d9edff;
}


.admin {
    font-size: 15px;
}


/* =========================
   CONTENT
========================= */

.content {
    padding: 25px;
    max-width: 1500px;
    margin: auto;
}


.section {
    display: block;
}


.hidden {
    display: none !important;
}


/* =========================
   WELCOME
========================= */

.welcome-card {
    background: white;

    border: 1px solid #dbe7f3;

    border-radius: 12px;

    padding: 25px;

    display: flex;
    align-items: center;

    gap: 20px;

    box-shadow: 0 4px 15px rgba(
        20,
        60,
        100,
        0.05
    );

    margin-bottom: 20px;
}


.welcome-icon {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #1879d2;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}


.welcome-card h2 {
    margin-bottom: 8px;
}


.welcome-card p {
    color: #647a96;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================
   STATISTICS
========================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 20px;
}


.stat-card {
    background: white;

    border: 1px solid #dbe7f3;

    border-radius: 12px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;
}


.stat-icon {
    width: 50px;
    height: 50px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
}


.blue {
    background: #e4f1ff;
}


.purple {
    background: #eeeaff;
}


.green {
    background: #e2f8ee;
}


.stat-card span {
    display: block;

    color: #74869c;

    font-size: 13px;

    margin-bottom: 5px;
}


.stat-card strong {
    font-size: 22px;
}


/* =========================
   CARD
========================= */

.card {
    background: white;

    border: 1px solid #dbe7f3;

    border-radius: 12px;

    padding: 22px;

    margin-bottom: 20px;

    box-shadow: 0 4px 15px rgba(
        20,
        60,
        100,
        0.04
    );
}


.card-title {
    margin-bottom: 20px;
}


.card-title h2 {
    font-size: 18px;
    margin-bottom: 5px;
}


.card-title p {
    color: #73869d;
    font-size: 13px;
}


/* =========================
   FORM
========================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.form-group label {
    font-size: 13px;

    font-weight: bold;

    color: #284568;
}


.form-group input,
.form-group select,
.big-search {
    border: 1px solid #ccdbea;

    border-radius: 7px;

    padding: 12px;

    outline: none;

    color: #263f5d;

    background: white;
}


.form-group input:focus,
.form-group select:focus,
.big-search:focus {
    border-color: #2684df;

    box-shadow:
        0 0 0 3px
        rgba(38, 132, 223, 0.1);
}


.form-buttons {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}


.btn {
    border: none;

    border-radius: 7px;

    padding: 12px 25px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;
}


.btn-primary {
    background: #147bd1;
    color: white;
}


.btn-primary:hover {
    background: #0968b8;
}


.btn-secondary {
    background: #edf2f7;
    color: #40566e;
}


.btn-secondary:hover {
    background: #dce5ee;
}


/* =========================
   TABLE
========================= */

.table-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;
}


.table-header h2 {
    font-size: 18px;
}


.table-header input {
    width: 260px;

    padding: 10px 13px;

    border: 1px solid #cbd9e8;

    border-radius: 7px;

    outline: none;
}


.table-container {
    overflow-x: auto;
}


table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}


th {
    background: #f0f6fc;

    color: #526b86;

    text-align: left;

    padding: 12px;
}


td {
    border-bottom: 1px solid #edf1f5;

    padding: 13px 12px;

    color: #344e6b;
}


tr:hover td {
    background: #fafcff;
}


.badge {
    padding: 5px 10px;

    border-radius: 20px;

    background: #dff7eb;

    color: #16865c;

    font-size: 11px;

    font-weight: bold;
}


.view-btn {
    border: none;

    background: #e4f1ff;

    color: #1675c9;

    padding: 7px 10px;

    border-radius: 6px;

    cursor: pointer;
}


/* =========================
   BLOCKCHAIN
========================= */

.block {
    border: 1px solid #d6e3ef;

    border-radius: 10px;

    padding: 20px;

    margin-bottom: 15px;

    background: #fbfdff;
}


.block-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 15px;
}


.block-number {
    font-weight: bold;

    color: #176fbd;
}


.block-time {
    font-size: 12px;

    color: #7a8da1;
}


.block-data {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 15px;
}


.data-item {
    background: white;

    border: 1px solid #e5ecf3;

    padding: 10px;

    border-radius: 6px;
}


.data-item small {
    display: block;

    color: #8393a5;

    margin-bottom: 5px;
}


.hash {
    background: #f0f4f8;

    padding: 10px;

    border-radius: 6px;

    margin-top: 8px;

    font-family: monospace;

    font-size: 11px;

    word-break: break-all;
}


/* =========================
   SEARCH
========================= */

.big-search {
    width: 100%;

    font-size: 16px;

    margin-bottom: 20px;
}


.search-result {
    min-height: 100px;
}


.result-card {
    border: 1px solid #d9e5ef;

    padding: 20px;

    border-radius: 8px;

    background: #fafdff;
}


.result-card h3 {
    margin-bottom: 12px;
}


.result-card p {
    margin: 7px 0;

    color: #526b82;
}


/* =========================
   MODAL
========================= */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(
        5,
        25,
        50,
        0.55
    );

    align-items: center;

    justify-content: center;

    z-index: 1000;
}


.modal.show {
    display: flex;
}


.modal-content {
    background: white;

    width: 90%;

    max-width: 650px;

    border-radius: 12px;

    padding: 25px;

    position: relative;

    max-height: 90vh;

    overflow-y: auto;
}


.close {
    position: absolute;

    right: 15px;

    top: 12px;

    border: none;

    background: none;

    font-size: 28px;

    cursor: pointer;

    color: #63758a;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .sidebar {
        width: 200px;
    }

    .main {
        margin-left: 200px;

        width: calc(100% - 200px);
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .sidebar {
        position: relative;

        width: 100%;

        height: auto;
    }

    .app {
        display: block;
    }

    .main {
        margin-left: 0;

        width: 100%;
    }

    .header {
        height: auto;

        padding: 20px;

        gap: 15px;

        flex-direction: column;

        align-items: flex-start;
    }

    .content {
        padding: 15px;
    }

    .table-header {
        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }

    .table-header input {
        width: 100%;
    }

    .block-data {
        grid-template-columns: 1fr;
    }

}