/* assets/style.css */

body {
    background-color: #0b0e11;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 智能交易矩阵样式 */
.monitor-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #161a1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2b3139;
}
.monitor-table th {
    background-color: #1e2329;
    color: #eaecef;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-bottom: 2px solid #2b3139;
    font-size: 14px;
}
.monitor-table td {
    border: 1px solid #2b3139;
    padding: 14px 10px;
    text-align: center;
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}
.monitor-table tr:hover td {
    background-color: #20262d !important;
}

/* 侧边呼应色 */
.call-header { border-bottom: 3px solid #0ecb81 !important; color: #0ecb81 !important; }
.put-header { border-bottom: 3px solid #f6465d !important; color: #f6465d !important; }

/* 能量数字 badge */
.anomaly-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #f6465d, #ff6b81);
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(246, 70, 93, 0.6);
    animation: pulse 2s infinite;
}
.anomaly-badge:hover {
    transform: scale(1.1);
    background: #ff6b81;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 70, 93, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(246, 70, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 70, 93, 0); }
}

/* 输入框微调使其契合暗黑主题 */
.input-dark {
    background-color: #1e2329 !important;
    color: #eaecef !important;
    border: 1px solid #2b3139 !important;
}
.input-dark:focus {
    background-color: #20262d !important;
    color: #ffffff !important;
    border-color: #0ecb81 !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 203, 129, 0.25) !important;
}
.input-group-text-dark {
    background-color: #2b3139 !important;
    color: #eaecef !important;
    border: 1px solid #2b3139 !important;
    font-size: 12px;
    font-weight: bold;
}
.input-dark::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* 矩阵单元格的缓动和平滑阴影 */
.matrix-cell-class {
    transition: background-color 0.25s ease, border 0.25s ease, box-shadow 0.25s ease !important;
}

/* ==========================================
   适配标准 Dash dcc.Dropdown 的暗黑风格
   ========================================== */
/* 选择框本体 */
.dropdown-dark.dash-dropdown,
.dropdown-dark .dash-dropdown-wrapper {
    background-color: #1e2329 !important;
    border: 1px solid #2b3139 !important;
    color: #eaecef !important;
}

/* 选中的值 / 占位符文字 */
.dropdown-dark .dash-dropdown-value,
.dropdown-dark .dash-dropdown-placeholder,
.dropdown-dark input {
    color: #eaecef !important;
}

/* 下拉浮层（关键：覆盖 CSS 变量） */
.dropdown-dark .dash-dropdown-content,
.dash-dropdown-content {
    background-color: #1e2329 !important;
    border: 1px solid #2b3139 !important;
    z-index: 9999 !important;
    /* 直接改它用的变量，双保险 */
    --Dash-Fill-Inverse-Strong: #1e2329 !important;
}

/* 搜索框 */
.dash-dropdown-search-container,
.dash-dropdown-search-container input {
    background-color: #1e2329 !important;
    color: #eaecef !important;
    border-color: #2b3139 !important;
}

/* 选项列表 */
.dash-options-list,
.dash-dropdown-options {
    background-color: #1e2329 !important;
}

/* 单个选项 */
.dash-dropdown-option {
    background-color: #1e2329 !important;
    color: #eaecef !important;
}
.dash-dropdown-option:hover,
.dash-dropdown-option[data-highlighted="true"],
.dash-dropdown-option[data-state="active"] {
    background-color: #20262d !important;
    color: #ffffff !important;
}
.dash-dropdown-option[aria-selected="true"],
.dash-dropdown-option[data-state="checked"] {
    background-color: #161a1e !important;
    color: #ffffff !important;
}
.dropdown-dark .dash-dropdown-trigger-icon {
    color: #eaecef !important;
    stroke: #eaecef !important;
    fill: #eaecef !important;
}