﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0f172a;
    color: #c9d3e8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    min-height: 100vh;
    line-height: 1.5;
}

#Situation_Block {
    margin: 0px 40px 40px 40px;
}

/* Form */
form {
    float: right;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
}

select {
    background: #1a2436;
    color: #c9d3e8;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin: 50px 0px 0px 10px !important;
}

select:hover,
select:focus {
    border-color: #4a5f8a;
    background: #232e42;
}

.Situation_Header {
    overflow: hidden;
}
/* Coin title */
.coin-title {
    float: left;
    display: flex;
    align-items: center;
}
.coin-title img{
    margin-bottom: -12px;;
}
.coin_name {
    font-size: 80px;
    font-weight: 800;
    color: #ffd900;
    margin: 0px 0px 0px 15px;
}
.coin_subject{
    font-size: 60px;
    font-weight: 800;
    color: #dfdfdf;
    margin-left: 25px;
}
.korea_name{
    font-size: 14px;
    color: #d8dfe9;
    margin-left: 10px;
    border-left: 3px solid #00ff00;
    padding-left: 10px;
}
/* Summary bar */
.summary {
    display: inline-flex;
    gap: 24px;
    margin-bottom: 14px;
    padding: 10px 16px;
    background: #0c1224;
    border: 1px solid #2a3458;
    border-radius: 4px;
    flex-wrap: wrap;
    font-size: 13px;
}

.summary .lbl {
    color: #64748b;
    font-size: 11px;
    margin-right: 5px;
}

/* Fixed points */
.fixed-points {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.fp-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px 10px;
    background: #0c1224;
    border: 1px solid #2a3458;
    border-radius: 6px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

.fp-label {
    font-size: 14px;
    color: #dfdfdf;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fp-cum {
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.fp-day {
    font-size: 13px;
    font-weight: 600;
}

/* Table wrapper */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
    border: 1px solid #2a3458;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    min-width: 1100px;
}

th {
    background: #061329;
    color: #7a8fb5;
    padding: 15px 11px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #2a3458;
    border-right: 1px solid #2a3458;
    white-space: nowrap;
}

th:last-child { border-right: none; }

td {
    padding: 12px 11px;
    text-align: right;
    border-bottom: 1px solid #1e2d45;
    border-right: 1px solid #1e2d45;
    white-space: nowrap;
    color: #c9d3e8;
}

td:last-child { border-right: none; }

tr:nth-child(odd)  > td { background: #0c1224; }
tr:nth-child(even) > td { background: #040b1b; }

tr:hover > td {
    background: #232e42 !important;
}

tr.current-row > td {
    background: #1a2436 !important;
    color: #e2e8f0;
}

td:first-child {
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
    font-size: 11px;
}

td:nth-child(2) {
    text-align: center;
    color: #64748b;
    font-size: 11px;
}

/* Color classes */
.positive { color: #f87171; }
.negative { color: #60a5fa; }
.neutral  { color: #475569; }

.zone-positive {
    color: #f87171;
    font-weight: 600;
    font-size: 11px;
}

.zone-negative {
    color: #60a5fa;
    font-weight: 600;
    font-size: 11px;
}

.zone-neutral {
    color: #334155;
    font-size: 11px;
}

/* 최고 / 최저 */
.positive { color: #00c073; }
.negative { color: #f04f5a; }

/* Donut chart */
.chart-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: #0c1224;
    border: 1px solid #2a3458;
    border-radius: 4px;
    width: 100%;
}

#score-donut { display: block; }

.donut-legend {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #c9d3e8;
}

.donut-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Donut — 구분선 */
.donut-divider {
    width: 1px;
    align-self: stretch;
    background: #2a3458;
    margin: 0 4px;
}

/* Donut — 누적 최고/최저 stats */
.cum-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 0 12px;
}

.cum-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cum-stat-lbl {
    font-size: 10px;
    color: #dfdfdf;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.cum-stat-val {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.cum-stat-day {
    font-size: 11px;
    color: #475569;
}

/* Score stat */
.score-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
}

.score-stat-lbl {
    font-size: 10px;
    color: #dfdfdf;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.score-stat-val {
    font-size: 100px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}
.score-stat-val span {
    font-size: 24px;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 10px;
}

.score-stat-detail {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Info panel (현재가/등락률/누적) */
.info-right {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.info-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-right: 20px;
}

.info-cum-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-right: 20px;
}

.info-lbl {
    font-size: 11px;
    color: #dfdfdf;
    min-width: 70px;
    letter-spacing: 0.3px;
}

.info-price-val {
    font-size: 60px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.info-rate-val {
    font-size: 45px;
    font-weight: 700;
    line-height: 1;
}

.info-cum-val {
    font-size: 45px;
    font-weight: 800;
    line-height: 1;
    padding: 5px 20px 10px 10px;
    border-radius: 4px;
    margin: 10px 0px 0px 0px;
}

/* Select dropdown option 색상 */
option {
    background: #1a2436;
    color: #c9d3e8;
}

/* Scrollbar — select */
select {
    scrollbar-width: thin;
    scrollbar-color: #2a3458 #0c1224;
}

select::-webkit-scrollbar { width: 6px; }
select::-webkit-scrollbar-track { background: #0c1224; border-radius: 3px; }
select::-webkit-scrollbar-thumb { background: #2a3458; border-radius: 3px; }
select::-webkit-scrollbar-thumb:hover { background: #4a5f8a; }

/* Scrollbar — table-wrap */
.table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #2a3458 #0c1224;
}

.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-track { background: #0c1224; border-radius: 3px; }
.table-wrap::-webkit-scrollbar-thumb { background: #2a3458; border-radius: 3px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: #4a5f8a; }

/* Scrollbar — 전체 페이지 */
html {
    scrollbar-width: thin;
    scrollbar-color: #2a3458 #0c1224;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0c1224; }
::-webkit-scrollbar-thumb { background: #2a3458; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a5f8a; }

/* ── 도움말 ───────────────────────────────────────────── */
.help-section {
    margin-top: 24px;
    padding: 20px 24px;
    background: #0c1224;
    border: 1px solid #2a3458;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.help-intro {
    margin-bottom: 20px;
    color: #c9d3e8;
    font-size: 13px;
}

.help-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.help-card {
    flex: 1;
    background: #040b1b;
    border: 1px solid #1e2d45;
    border-radius: 6px;
    padding: 14px 16px;
}

.help-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1e2d45;
}

.help-formula {
    font-size: 13px;
    color: #60a5fa;
    background: #0c1833;
    border-radius: 4px;
    padding: 6px 10px;
    margin: 8px 0;
    font-family: monospace;
}

.help-example {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.help-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.help-threshold {
    color: #94a3b8;
}

.help-case {
    color: #94a3b8;
}

.help-pts {
    font-weight: 700;
    min-width: 44px;
    text-align: right;
}

.help-pts.positive { color: #00c073; }
.help-pts.negative { color: #f04f5a; }
.help-case.positive { color: #7dd3a8; }
.help-case.negative { color: #f87171; }

.help-note {
    margin-top: 8px;
    font-size: 11px;
    color: #475569;
}

.help_coin {
    border: 1px solid #1e2d45;
    padding: 20px;
    border-radius: 4px;
    background: #040b1b;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.help-disclaimer {
    border-top: 1px solid #1e2d45;
    padding-top: 14px;
    font-size: 12px;
    color: #475569;
    line-height: 1.8;
}

.help-disclaimer p { margin: 0; }