/* Market Chart widget */
.bs-mc {
    width: 100%;
}

.bs-mc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.bs-mc-title-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.bs-mc-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.bs-mc-icon svg {
    width: 20px;
    height: 20px;
    color: #1DB0E1;
}

.bs-mc-title-text {
    min-width: 0;
}

.bs-mc .bs-mc-title,
.bs-mc h3.bs-mc-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #171717;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.bs-mc h3.bs-mc-title {
    font-size: 18px;
}

.bs-mc-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.bs-mc-value {
    font-size: 16px;
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
    white-space: nowrap;
}

.bs-mc-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
}

.bs-mc-change.bs-mc-up {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.bs-mc-change.bs-mc-down {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.bs-mc-change.bs-mc-neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

/* Range buttons */
.bs-mc-range-group {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.bs-mc-range-group button {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.bs-mc-range-group button:hover {
    color: #171717;
    border-color: #d1d5db;
    background: #f9fafb;
}

.bs-mc-range-group button.active {
    background: #1DB0E1;
    border-color: #1DB0E1;
    color: #fff;
}

/* Subtle border */
.bs-mc.bs-mc-divider {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

/* Chart area */
.bs-mc-chart-wrap {
    position: relative;
    width: 100%;
}

.bs-mc-chart {
    width: 100%;
}

/* Tooltip */
.bs-mc-tooltip {
    display: none;
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.bs-mc-tooltip-date {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

.bs-mc-tooltip-val {
    font-size: 13px;
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
}

/* Dark mode */
html.bs-dark .bs-mc-title {
    color: #e0e0e0;
}

html.bs-dark .bs-mc-value {
    color: #e0e0e0;
}

html.bs-dark .bs-mc.bs-mc-divider {
    border-color: #3a3a52;
}

html.bs-dark .bs-mc-range-group button {
    border-color: #3a3a52;
    color: #8888a0;
    background: transparent;
}

html.bs-dark .bs-mc-range-group button:hover {
    color: #e0e0e0;
    border-color: #50506a;
    background: #252540;
}

html.bs-dark .bs-mc-range-group button.active {
    background: #1DB0E1;
    border-color: #1DB0E1;
    color: #fff;
}

html.bs-dark .bs-mc-tooltip {
    background: #1e1e32;
    border-color: #3a3a52;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.bs-dark .bs-mc-tooltip-date {
    color: #8888a0;
}

html.bs-dark .bs-mc-tooltip-val {
    color: #e0e0e0;
}
