/* ============================
   Power Law Calculator
   ============================ */

.content-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bg-alt {
    background-color: #e9ecef !important;
    border-color: #dee2e6;
}

.divider-orange {
    width: 50px;
    margin: 15px auto;
    border-top: 2px solid #f7931a;
    opacity: 1;
}

/* --- Interactive Calculator Slider --- */
.slider-container {
    width: 100%;
    margin: 40px 0 20px 0;
    text-align: center;
    position: relative;
}

.calc-date-display {
    font-size: 1.25em;
    font-weight: 700;
    color: #f7931a;
    margin-top: 25px;
    display: block;
    letter-spacing: 0.5px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 85%;
    max-width: 600px;
    height: 8px;
    background: #ced4da;
    border-radius: 10px;
    outline: none;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: background 0.2s;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f7931a;
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 6px rgba(247, 147, 26, 0.4);
    margin-top: -8px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.6);
}

input[type=range]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f7931a;
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 6px rgba(247, 147, 26, 0.4);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.6);
}

.slider-ticks {
    position: relative;
    width: calc(85% - 24px);
    max-width: 576px;
    height: 20px;
    margin: 12px auto 0 auto;
}

.tick-mark {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #adb5bd;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.tick-mark:hover {
    color: #6c757d;
}

.tick-mark::before {
    content: '';
    display: block;
    margin: -10px auto 4px auto;
    width: 2px;
    height: 6px;
    background-color: #adb5bd;
    border-radius: 2px;
}

/* --- Data Table --- */
.table.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table.table-modern th {
    font-weight: 500;
    color: #868e96;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.8px;
    padding: 10px 12px;
}

.table.table-modern td {
    vertical-align: middle;
    padding: 11px 12px;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.15s ease;
}

.table.table-modern tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

/* --- Cell Typography --- */
.kpi-label {
    color: #868e96;
    font-weight: 500;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.kpi-desc {
    color: #495057;
    font-weight: 400;
}

.kpi-value {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-weight: 500;
    color: #212529;
    letter-spacing: -0.2px;
}

.kpi-pct {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-weight: 400;
    font-size: 0.9em;
}

/* --- Highlighted Rows --- */
.table.table-modern .row-support > td {
    background-color: rgba(247, 147, 26, 0.06) !important;
}

.table.table-modern .row-support:hover > td {
    background-color: rgba(247, 147, 26, 0.12) !important;
}

.table.table-modern .row-trend > td {
    background-color: rgba(25, 135, 84, 0.06) !important;
}

.table.table-modern .row-trend:hover > td {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

/* --- BTC Price Row --- */
.table.table-modern .row-btc > td:first-child {
    border-left: 3px solid #f7931a;
}

.table.table-modern .row-btc .kpi-label {
    color: #f7931a !important;
}

.table.table-modern .row-btc .kpi-desc {
    color: #c47210 !important;
    font-weight: 500;
}

.table.table-modern .row-btc .kpi-value {
    color: #212529 !important;
    font-weight: 500;
}

.table.table-modern .row-btc .kpi-pct {
    color: #adb5bd !important;
}


/* --- Percentage Colors --- */
.table.table-modern .text-pos {
    color: #198754 !important;
    font-weight: 500;
}

.table.table-modern .text-neg {
    color: #dc3545 !important;
    font-weight: 500;
}

/* --- Mobile Responsive --- */
@media (max-width: 576px) {
    .content-card {
        padding: 20px 15px;
    }

    .table-modern th,
    .table-modern td {
        font-size: 0.7rem;
        padding: 8px 4px;
    }
}
