* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #080b10;
    color: #e8edf2;
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    height: 56px;
    background: #10151d;
    border-bottom: 1px solid #273241;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.4px;
}

nav a {
    color: #b9c4d0;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
}

nav a:hover {
    color: #ffffff;
}

.page {
    width: 100%;
    padding: 18px;
}

.panel {
    background: #0d1118;
    border: 1px solid #263140;
    border-radius: 10px;
    padding: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

h1 {
    margin: 0 0 4px 0;
    font-size: 22px;
}

p {
    margin: 0;
    color: #8d99a8;
    font-size: 13px;
}

.controls {
    display: flex;
    gap: 8px;
}

input {
    background: #06080c;
    border: 1px solid #354255;
    color: #ffffff;
    padding: 9px 10px;
    border-radius: 6px;
    min-width: 220px;
}

button {
    background: #1f6feb;
    border: 0;
    color: white;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.status-line {
    display: flex;
    justify-content: space-between;
    color: #8d99a8;
    font-size: 12px;
    margin: 10px 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #222b38;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1900px;
    font-size: 12px;
}

th {
    background: #161d28;
    color: #d8dee8;
    text-align: left;
    padding: 9px;
    border-bottom: 1px solid #2a3545;
    position: sticky;
    top: 0;
    z-index: 1;
}

td {
    padding: 8px 9px;
    border-bottom: 1px solid #1b2330;
    white-space: nowrap;
}

tr:hover td {
    background: #141b26;
}

.cell {
    border-radius: 4px;
    padding: 5px 7px;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}

.up {
    background: #0f5132;
    color: #d1ffe3;
}

.down {
    background: #842029;
    color: #ffe0e3;
}

.neutral {
    background: #343a40;
    color: #f1f3f5;
}

.warning {
    background: #8a6d1d;
    color: #fff3cd;
}

.danger {
    background: #b02a37;
    color: #ffffff;
}

.info {
    background: #055160;
    color: #cff4fc;
}

.symbol {
    font-weight: 700;
    color: #ffffff;
}

.meta-missing {
    color: #ffb3b3;
}

.master-lens {
    background: #0d1118;
    border: 1px solid #263140;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.master-lens-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.master-lens-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.master-card {
    border: 1px solid #2a3545;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #151b25;
}

.master-card-label {
    padding: 8px;
    color: #d8dee8;
    border-bottom: 1px solid #2a3545;
    font-size: 13px;
}

.master-card-state {
    padding: 10px;
    font-weight: 700;
}

.eth {
    background: #2563eb;
    color: #ffffff;
}

.btc {
    background: #f59e0b;
    color: #111827;
}

.info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    border-radius: 50%;
    background: #2d3748;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.info-tip:hover {
    background: #4b5563;
    color: #ffffff;
}

.info-tip::after {
    content: attr(data-tip);
    display: none;
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    white-space: normal;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.info-tip:hover::after {
    display: block;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.filter-card {
    background: #10151d;
    border: 1px solid #263140;
    border-radius: 8px;
    padding: 10px;
}

.filter-card label {
    display: block;
    color: #d8dee8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.filter-card select,
.filter-card input {
    width: 100%;
    margin-bottom: 6px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.login-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #0b1118;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 380px;
    background: #111827;
    border: 1px solid #243041;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
}

.login-card h1 {
    color: white;
    margin-bottom: 24px;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #0f1722;
    border: 1px solid #334155;
    color: white;
    border-radius: 6px;
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.login-error {
    margin-top: 15px;
    color: #ef4444;
}
