* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 15px;
}

.main-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.chart-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h2 {
    color: #2c3e50;
}

#timeframe {
    padding: 8px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

#chart-container {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}

.key-levels {
    margin-top: 20px;
}

.key-levels h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.level-box {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid;
}

.level-box.resistance {
    border-color: #e74c3c;
    background: #ffe5e5;
}

.level-box.support {
    border-color: #2ecc71;
    background: #e5ffe5;
}

.level-box.pivot {
    border-color: #3498db;
    background: #e5f3ff;
}

.level-box h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.level-item {
    padding: 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.analysis-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.state-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.state-item:last-child {
    border-bottom: none;
}

.state-item .label {
    color: #7f8c8d;
    font-weight: 500;
}

.state-item .value {
    font-weight: bold;
    color: #2c3e50;
}

.signal-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.signal-item.bullish {
    border-left-color: #2ecc71;
}

.signal-item.bearish {
    border-left-color: #e74c3c;
}

.signal-item.neutral {
    border-left-color: #95a5a6;
}

.signal-type {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.signal-detail {
    font-size: 13px;
    color: #7f8c8d;
}

.entry-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.entry-card.long {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.entry-card.short {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.entry-direction {
    font-size: 20px;
    font-weight: bold;
}

.entry-confidence {
    background: rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.entry-type {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.entry-prices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.price-item {
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
}

.price-label {
    opacity: 0.8;
    display: block;
    margin-bottom: 3px;
}

.price-value {
    font-weight: bold;
    font-size: 14px;
}

.entry-reason {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    opacity: 0.9;
}

.prediction-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.prediction-scenario {
    font-weight: bold;
    color: #2c3e50;
}

.prediction-probability {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.prediction-target {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 5px;
}

.prediction-description {
    color: #34495e;
    font-size: 13px;
}

.risk-item {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.risk-item:last-child {
    border-bottom: none;
}

.risk-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.risk-value {
    color: #7f8c8d;
    font-size: 14px;
}

.risk-notes {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    border-radius: 5px;
    margin-top: 10px;
}

.risk-notes ul {
    margin-left: 20px;
    margin-top: 8px;
}

.risk-notes li {
    margin-bottom: 5px;
    color: #856404;
    font-size: 13px;
}

.trend-up {
    color: #2ecc71 !important;
}

.trend-down {
    color: #e74c3c !important;
}

.trend-sideways {
    color: #95a5a6 !important;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端适配 - 顶部 */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .status-bar {
        flex-wrap: wrap;
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    
    .status-item {
        flex: 1 1 45%;
        min-width: 140px;
    }
    
    .status-value.price-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }
    
    header h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .status-bar {
        gap: 0.6rem;
        font-size: 0.8rem;
    }
    
    .status-item {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .status-label {
        font-size: 0.75rem;
    }
    
    .status-value {
        padding: 0.15rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .status-value.price-value {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 状态栏样式 */
.status-bar {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    color: #6b7280;
}

.status-value {
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    border-radius: 4px;
    color: #374151;
}

.status-value.price-value {
    font-size: 1.3rem;
    color: #10b981;
    background: transparent;
    padding: 0.3rem 0.8rem;
    transition: color 0.3s ease;
}

#collect-status.active {
    color: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#export-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

#export-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* 高级分析样式 */
.pivot-item {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pivot-main {
    background: #2196F3;
    color: white;
    font-weight: bold;
}

.pivot-item.resistance {
    background: #ffebee;
    color: #c62828;
}

.pivot-item.support {
    background: #e8f5e9;
    color: #2e7d32;
}

.signal-main {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.signal-main.buy {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.signal-main.sell {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

.signal-main.hold {
    background: linear-gradient(135deg, #9E9E9E, #BDBDBD);
    color: white;
}

.signal-action {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.signal-confidence {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
}

.strength.strong {
    color: #FFD700;
    font-weight: bold;
}

.strength.medium {
    color: #FFF;
}

.strength.weak {
    color: #DDD;
}

.signal-list {
    margin-top: 15px;
}

.signal-item {
    padding: 8px;
    background: #f5f5f5;
    margin: 5px 0;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}

.entry-section, .risk-section {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.entry-section h4, .risk-section h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.entry-item, .risk-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.entry-item.better {
    background: #fff3e0;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #FF9800;
}

.entry-item.best {
    background: #e8f5e9;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.recommendation {
    margin-top: 10px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1976D2;
    font-weight: bold;
    text-align: center;
}

.risk-item.stop-loss .value {
    color: #f44336;
    font-weight: bold;
}

.risk-item.take-profit .value {
    color: #4CAF50;
    font-weight: bold;
}

.risk-info {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.risk-note {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.prediction-item {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ccc;
}

.prediction-item.primary {
    background: #e8f5e9;
    border-left-color: #4CAF50;
}

.prediction-item.secondary {
    background: #fff3e0;
    border-left-color: #FF9800;
}

.prediction-item.tertiary {
    background: #ffebee;
    border-left-color: #f44336;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
}

.prediction-header .scenario {
    color: #666;
    font-size: 12px;
}

.prediction-header .direction {
    font-size: 14px;
}

.prediction-header .direction.bullish {
    color: #4CAF50;
}

.prediction-header .direction.bearish {
    color: #f44336;
}

.prediction-header .direction.neutral {
    color: #9E9E9E;
}

.prediction-target {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}

.prediction-condition {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.state-item.reversal {
    background: #fff3e0;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #FF9800;
}

.no-signal, .no-data {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.level-value {
    padding: 5px 10px;
    margin: 3px 0;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* 导入弹框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.import-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 移动端适配 - 弹框 */
@media (max-width: 480px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .form-group select {
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========== 顶部操作按钮样式 ========== */
.status-item.status-action {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 导入按钮 - 蓝紫渐变 */
#import-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

#import-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#import-btn:hover::before {
    left: 100%;
}

#import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#import-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 警告按钮 - 橙黄渐变 */
#alert-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

#alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#alert-btn:hover::before {
    left: 100%;
}

#alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

#alert-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 持仓按钮 - 绿色渐变 */
#position-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

#position-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#position-btn:hover::before {
    left: 100%;
}

#position-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#position-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 按钮脉动动画（可选） */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }
}

/* 缩放倍数显示 */
#zoom-level {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* 警告配置弹框样式 */
.alert-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.alert-list {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 12px;
    padding: 5px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 350px;
    }
}

.alert-list::-webkit-scrollbar {
    width: 8px;
}

.alert-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.alert-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.alert-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 5px solid #f59e0b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.alert-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.alert-item.disabled {
    opacity: 0.6;
    border-left-color: #9ca3af;
    background: #f9fafb;
}

.alert-item.triggered {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.alert-info {
    flex: 1;
}

.alert-condition {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 15px;
}

.alert-url {
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
    background: #f3f4f6;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 6px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.method-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: sans-serif;
}

.method-get {
    background: #dbeafe;
    color: #1e40af;
}

.method-post {
    background: #fef3c7;
    color: #92400e;
}

.alert-status {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
}

.alert-item .alert-status {
    background: #dbeafe;
    color: #1e40af;
}

.alert-item.triggered .alert-status {
    background: #d1fae5;
    color: #065f46;
}

.alert-item.disabled .alert-status {
    background: #f3f4f6;
    color: #6b7280;
}

.alert-response {
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    word-break: break-all;
}

.response-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.response-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.alert-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 15px;
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-toggle {
    background: #3b82f6;
    color: white;
}

.btn-toggle:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small:disabled:hover {
    transform: none;
}

.add-alert-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    border: 2px dashed #dee2e6;
}

.add-alert-section h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-alert-section h3::before {
    content: "➕";
    font-size: 20px;
}

.alert-list:empty::before {
    content: "📭 暂无警告配置";
    display: block;
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    font-size: 15px;
}

/* 复选框美化 */
.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
}

.form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* 警告列表区域 */
.alert-list-section {
    margin-bottom: 20px;
}

.btn-toggle-list {
    width: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #d1d5db;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-toggle-list:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.btn-toggle-list #list-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s;
    display: inline-block;
}

.btn-toggle-list.active #list-toggle-icon {
    transform: rotate(90deg);
}

#alert-count {
    color: #667eea;
    font-weight: bold;
}

/* 参数列表样式 */
.params-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.param-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.param-item input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
}

.param-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.param-item input::placeholder {
    color: #9ca3af;
}

.btn-remove-param {
    background: #ef4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-param:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.btn-add-param {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.btn-add-param:hover {
    background: #059669;
    transform: translateY(-1px);
}

.params-list:empty + .btn-add-param {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 邮箱输入组样式 */
.email-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.email-input-group select {
    flex: 1;
    min-width: 0;
}

.email-input-group input {
    flex: 1.5;
    min-width: 0;
}

.btn-save-email {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-save-email:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.btn-save-email:active {
    transform: scale(0.95);
}

/* ========== DXY 美元指数样式 ========== */

.dxy-status {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 5px 10px;
    border-radius: 8px;
}

.status-change {
    font-size: 12px;
    margin-left: 5px;
}

.status-change.positive {
    color: #10b981;
}

.status-change.negative {
    color: #ef4444;
}

.negative-corr {
    color: #10b981 !important;
}

.positive-corr {
    color: #ef4444 !important;
}

.panel.dxy-analysis {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
}

.divergence-alert {
    background: #fef3c7;
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
    border-left: 3px solid #f59e0b;
}

/* ========== 信号等级样式 ========== */

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-grade {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.signal-grade.grade-a {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.signal-grade.grade-b {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.signal-grade.grade-c {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.signal-valid {
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
}

.confirmations-list {
    margin-top: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.confirmations-title {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
}

.confirmation-item {
    font-size: 12px;
    color: #10b981;
    padding: 2px 0;
}

/* ========== 枢轴点方法显示 ========== */

.pivot-method {
    font-size: 11px;
    color: #667eea;
    background: #f0f4ff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ========== RSI样式 ========== */

.overbought {
    color: #ef4444 !important;
}

.oversold {
    color: #10b981 !important;
}

/* ========== 持仓跟踪样式 ========== */

.modal-large {
    max-width: 700px;
}

.position-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #e5e7eb;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.position-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.position-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.position-item.long {
    border-left: 4px solid #10b981;
}

.position-item.short {
    border-left: 4px solid #ef4444;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.direction-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.direction-badge.long {
    background: #d1fae5;
    color: #059669;
}

.direction-badge.short {
    background: #fee2e2;
    color: #dc2626;
}

.position-details {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.position-actions {
    display: flex;
    gap: 10px;
}

.empty-message {
    text-align: center;
    color: #9ca3af;
    padding: 30px;
}

/* ========== 统计样式 ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
}

.stat-value.positive {
    color: #10b981;
}

.stat-value.negative {
    color: #ef4444;
}

.stat-item.total-pnl {
    grid-column: span 3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-item.total-pnl .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-item.total-pnl .stat-value {
    color: white;
    font-size: 28px;
}


/* 精确预测样式 */
.prediction-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.prediction-summary.bullish {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.prediction-summary.bearish {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.prediction-summary.neutral {
    background: linear-gradient(135deg, #757F9A 0%, #D7DDE8 100%);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.summary-direction {
    display: flex;
    align-items: center;
    gap: 10px;
}

.direction-label {
    font-size: 20px;
    font-weight: bold;
}

.confidence-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.overall-suggestion {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.overall-suggestion.high-priority {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.suggestion-action {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.suggestion-reason {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.suggestion-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    opacity: 0.8;
}

.prediction-quality {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quality-score {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.quality-score.优秀 {
    background: rgba(56, 239, 125, 0.3);
}

.quality-score.良好 {
    background: rgba(102, 126, 234, 0.3);
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.prediction-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ccc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prediction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.prediction-card.up {
    border-left-color: #10b981;
}

.prediction-card.down {
    border-left-color: #ef4444;
}

.prediction-card.sideways {
    border-left-color: #6b7280;
}

.prediction-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.prediction-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.candle-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.candle-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.candle-time {
    font-size: 15px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.target-time {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.prediction-main {
    margin-bottom: 15px;
}

.price-prediction {
    margin-bottom: 15px;
}

.predicted-close {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.predicted-close .label {
    font-size: 14px;
    color: #6b7280;
}

.predicted-close .value {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
}

.predicted-close .value.positive {
    color: #10b981;
}

.predicted-close .value.negative {
    color: #ef4444;
}

.predicted-close .change {
    font-size: 14px;
    font-weight: 600;
}

.predicted-close .change.positive {
    color: #10b981;
}

.predicted-close .change.negative {
    color: #ef4444;
}

.price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.range-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
}

.range-item.high {
    background: #fef3f2;
    color: #dc2626;
}

.range-item.low {
    background: #f0fdf4;
    color: #16a34a;
}

.range-size {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
}

.prediction-meta {
    margin-top: 15px;
}

.direction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.direction-label {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
}

.direction-label.up {
    background: #d1fae5;
    color: #065f46;
}

.direction-label.down {
    background: #fee2e2;
    color: #991b1b;
}

.direction-label.sideways {
    background: #e5e7eb;
    color: #374151;
}

.direction-probability {
    margin-top: 10px;
}

.prob-bar {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

.prob-up, .prob-down, .prob-sideways {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.prob-up {
    background: #10b981;
}

.prob-down {
    background: #ef4444;
}

.prob-sideways {
    background: #6b7280;
}

.prob-labels {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: #6b7280;
}

.trade-suggestion {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.suggestion-header .action {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
}

.suggestion-header .action.buy {
    background: #d1fae5;
    color: #065f46;
}

.suggestion-header .action.sell {
    background: #fee2e2;
    color: #991b1b;
}

.suggestion-header .action.hold {
    background: #e5e7eb;
    color: #374151;
}

.risk-reward {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.suggestion-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.level-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.level-item .label {
    color: #6b7280;
}

.level-item .value {
    font-weight: 600;
    color: #1f2937;
}

.risk-assessment {
    margin-top: 15px;
    padding: 12px;
    background: #fef3f2;
    border-radius: 8px;
}

.risk-level {
    font-weight: 600;
    margin-bottom: 8px;
}

.risk-level.低 {
    color: #16a34a;
}

.risk-level.中 {
    color: #ea580c;
}

.risk-level.高 {
    color: #dc2626;
}

.risk-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.accuracy-stats {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accuracy-stats h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.stat-card.excellent {
    background: #d1fae5;
    border-color: #10b981;
}

.stat-card.good {
    background: #dbeafe;
    border-color: #3b82f6;
}

.stat-card.fair {
    background: #fef3c7;
    border-color: #f59e0b;
}

.stat-card.poor {
    background: #fee2e2;
    border-color: #ef4444;
}

.stat-period {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-accuracy {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.stat-status {
    font-weight: 600;
}

.stat-mae {
    margin-top: 8px;
    font-size: 11px;
    color: #9ca3af;
}


/* ========== 预测历史记录样式 ========== */

.panel-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panel-header-with-button h3 {
    margin: 0;
}

.history-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.prediction-history-modal {
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}

.prediction-history-modal .modal-body {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

/* 历史记录过滤器 */
.history-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.history-filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: white;
}

.history-filters button {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.history-filters button:hover {
    background: #5568d3;
}

/* 历史记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

.history-item {
    background: white;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-left: 3px solid #ccc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.history-item.verified-accurate {
    border-left-color: #10b981;
    background: linear-gradient(to right, #f0fdf4 0%, white 8%);
}

.history-item.verified-inaccurate {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2 0%, white 8%);
}

.history-item.pending {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb 0%, white 8%);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.history-time-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-period-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.history-period-badge.5m {
    background: #3b82f6;
}

.history-period-badge.15m {
    background: #8b5cf6;
}

.history-period-badge.30m {
    background: #ec4899;
}

.history-time {
    font-size: 14px;
    color: #6b7280;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.verified-accurate {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.verified-inaccurate {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.expired {
    background: #e5e7eb;
    color: #4b5563;
}

.history-candle-time {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.history-prediction,
.history-actual,
.history-trade {
    margin-top: 8px;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}

.history-row:last-child {
    border-bottom: none;
}

.history-row .label {
    font-size: 13px;
    color: #6b7280;
    min-width: 80px;
}

.history-row .value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.history-row .change {
    font-size: 13px;
    font-weight: 500;
}

.history-row .change.positive,
.history-row .value.up {
    color: #10b981;
}

.history-row .change.negative,
.history-row .value.down {
    color: #ef4444;
}

.history-row .value.sideways {
    color: #6b7280;
}

.history-row .error {
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
}

.history-row .confidence {
    font-size: 13px;
    color: #6b7280;
}

.direction-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.direction-badge.up {
    background: #d1fae5;
    color: #065f46;
}

.direction-badge.down {
    background: #fee2e2;
    color: #991b1b;
}

.direction-badge.sideways {
    background: #e5e7eb;
    color: #4b5563;
}

.result-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.result-badge.correct {
    background: #d1fae5;
    color: #065f46;
}

.result-badge.incorrect {
    background: #fee2e2;
    color: #991b1b;
}

.actual-title,
.trade-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #667eea;
}

.trade-action {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.trade-action.buy {
    background: #d1fae5;
    color: #065f46;
}

.trade-action.sell {
    background: #fee2e2;
    color: #991b1b;
}

.loading,
.error,
.no-data {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

.error {
    color: #ef4444;
}
