/* === Page title === */
h1 {
    color: #f7931a;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.3);
}

/* === Table === */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
    color: #6e7a8a;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid #1e2736;
    white-space: nowrap;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
td {
    padding: 6px 10px;
    border-bottom: 1px solid #151c26;
    vertical-align: top;
}
tr:hover td { background: rgba(247, 147, 26, 0.04); }

/* === Signal text colors (backtest table) === */
.STRONG_BUY  { color: #00e676; font-weight: bold; text-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }
.BUY         { color: #69f0ae; font-weight: bold; }
.TREND_BUY   { color: #a5d6a7; }
.WEAK_BUY    { color: #c8e6c9; }
.NEUTRAL     { color: #6e7a8a; }
.WEAK_SELL   { color: #ffcc80; }
.TREND_SELL  { color: #ffa726; }
.SELL        { color: #ff7043; font-weight: bold; }
.STRONG_SELL { color: #ff1744; font-weight: bold; text-shadow: 0 0 8px rgba(255, 23, 68, 0.4); }

/* === Row highlights === */
.row-strong-buy td {
    background: rgba(0, 230, 118, 0.08) !important;
    border-left: 3px solid #00e676;
}
.row-strong-sell td {
    background: rgba(255, 23, 68, 0.08) !important;
    border-left: 3px solid #ff1744;
}
.row-highlight-buy  { border-left: 3px solid #69f0ae; }
.row-highlight-sell { border-left: 3px solid #ff7043; }

/* === Buttons === */
.btn-small {
    background: linear-gradient(135deg, #1e2736, #151c26);
    color: #c9d1d9;
    border: 1px solid #2a3444;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.btn-small:hover { background: linear-gradient(135deg, #2a3444, #1e2736); border-color: #f7931a; color: #f7931a; }
.btn-small.active { background: linear-gradient(135deg, #f7931a, #e67e00); color: #000; border-color: #f7931a; font-weight: bold; }

/* === Stats grid === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat {
    background: linear-gradient(145deg, #151c26, #0f1319);
    border: 1px solid #1e2736;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s;
}
.stat:hover { transform: translateY(-2px); }
.stat-val { font-size: 24px; font-weight: bold; color: #f7931a; }
.stat-val.green { color: #00e676; }
.stat-val.red   { color: #ff1744; }
.stat-label { font-size: 10px; color: #6e7a8a; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* === Info box === */
.info-box {
    background: linear-gradient(145deg, #141922, #0d1117);
    border: 1px solid #1e2736;
    border-left: 3px solid #f7931a;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #6e7a8a;
    line-height: 1.7;
}
.info-box strong { color: #c9d1d9; }

/* === Strong signals detail === */
.strong-detail {
    background: linear-gradient(145deg, #141922, #0f1319);
    border: 1px solid #1e2736;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}
.strong-detail h2 {
    color: #f7931a;
    font-size: 13px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(247, 147, 26, 0.2);
}
.strong-entry {
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 12px;
}
.strong-entry.buy {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.10), transparent);
    border-left: 3px solid #00e676;
}
.strong-entry.sell {
    background: linear-gradient(90deg, rgba(255, 23, 68, 0.10), transparent);
    border-left: 3px solid #ff1744;
}
.strong-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.strong-date { font-weight: bold; color: #c9d1d9; min-width: 90px; }
.strong-type { font-weight: bold; min-width: 110px; }
.strong-price { color: #f7931a; min-width: 100px; font-weight: bold; }
.strong-scores { color: #6e7a8a; font-size: 11px; }
.strong-reasons {
    margin-top: 6px;
    padding-left: 12px;
    font-size: 11px;
    color: #8b949e;
    line-height: 1.7;
}
.strong-reasons span {
    display: inline-block;
    background: rgba(255,255,255,0.04);
    border: 1px solid #1e2736;
    border-radius: 4px;
    padding: 1px 7px;
    margin: 2px 4px 2px 0;
    font-size: 10px;
}

.signal-reason { color: #6e7a8a; font-size: 10px; }

/* === Responsive === */
@media (max-width: 768px) {
    .strong-header { gap: 6px; }
}

/* === Light mode === */
body.light h1 { color: #c77a0a; text-shadow: none; }

body.light table th {
    color: #333;
    font-weight: bold;
    border-bottom-color: #d0d0d0;
    background: transparent;
}
body.light table td { border-bottom-color: #e8e8e8; }
body.light tr:hover td { background: rgba(247, 147, 26, 0.06); }

body.light .stat {
    background: linear-gradient(145deg, #fff, #f5f5f5);
    border-color: #d0d0d0;
}
body.light .stat-label { color: #555; font-weight: bold; }

body.light .info-box {
    background: linear-gradient(145deg, #fff, #f8f8f8);
    border-color: #d0d0d0;
    border-left-color: #c77a0a;
    color: #555;
}
body.light .info-box strong { color: #1a1a2e; }

body.light .strong-detail {
    background: linear-gradient(145deg, #fff, #f5f5f5);
    border-color: #d0d0d0;
}
body.light .strong-detail h2 { color: #c77a0a; text-shadow: none; }
body.light .strong-scores { color: #888; }
body.light .strong-reasons { color: #555; }
body.light .strong-reasons span {
    background: rgba(0, 0, 0, 0.04);
    border-color: #d0d0d0;
}

body.light .btn-small {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #555;
    border-color: #d0d0d0;
}
body.light .btn-small:hover { border-color: #c77a0a; color: #c77a0a; }
body.light .btn-small.active {
    background: linear-gradient(135deg, #f7931a, #e67e00);
    color: #fff;
    border-color: #e67e00;
}
