/* BTC 图表样式文件 */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding-bottom: 100px; /* 底部留出空间避免悬浮窗冲突 */
    background-color: #f8f8f8;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

/* 导航标签样式 */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
}

.tab-button:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: #fff;
}

.tab-button.admin-tab {
    margin-left: auto;
    color: #e74c3c;
}

.tab-button.admin-tab.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* 内容区域 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 标的选择器样式 */
.symbol-selector {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.symbol-selector label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.symbol-selector select {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    min-width: 200px;
}

.symbol-selector input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.symbol-selector select:focus,
.symbol-selector input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 20px;
}

.chart-container canvas {
    max-width: 100%;
    height: 100% !important;
}

/* 加载和错误状态 */
.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

.loading {
    color: #3498db;
}

.error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* 数据管理容器 */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.admin-container h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 上传区域样式 */
.upload-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px dashed #bdc3c7;
}

.upload-form {
    display: grid;
    gap: 15px;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group small {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
}

.upload-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-self: start;
}

.upload-btn:hover {
    background-color: #219a52;
}

.upload-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 数据列表区域 */
.data-list-section {
    background-color: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 25px;
}

.data-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.data-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.data-tab-btn:hover {
    color: #2c3e50;
}

.data-tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.data-list {
    min-height: 200px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #fafbfc;
}

.data-info {
    flex: 1;
}

.data-info strong {
    color: #2c3e50;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.data-name {
    color: #7f8c8d;
    font-size: 14px;
    margin-left: 10px;
}

.data-meta {
    color: #95a5a6;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.data-actions {
    display: flex;
    gap: 10px;
}

.btn-download,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-download {
    background-color: #3498db;
    color: white;
}

.btn-download:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}

/* Tooltip容器样式 */
.tooltip-container {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    display: none;
}

.tooltip-date {
    font-weight: bold;
    margin-bottom: 8px;
    color: #3498db;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.tooltip-value {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    align-items: center;
}

.tooltip-label {
    color: #bdc3c7;
    margin-right: 10px;
}

.btc-price {
    color: #f39c12;
    font-weight: bold;
}

.buy-zone {
    color: #2ecc71;
    font-weight: bold;
}

.sell-zone {
    color: #e74c3c;
    font-weight: bold;
}

.profit {
    color: #27ae60;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        padding: 15px;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        margin: 5px 0;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .symbol-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .symbol-selector select,
    .symbol-selector input[type="text"] {
        min-width: auto;
        width: 100%;
    }
    
    .data-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .data-actions {
        justify-content: center;
    }
    
    .upload-form {
        max-width: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    .chart-container {
        height: 400px;
        padding: 10px;
    }
    
    .tooltip-container {
        min-width: 150px;
        font-size: 11px;
    }
}

/* 更新按钮样式 */
.btn-update {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.btn-update:hover {
    background-color: #e67e22;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.current-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.current-info h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.current-info p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.update-form {
    margin-bottom: 20px;
}

.update-form h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.update-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.update-btn:hover {
    background-color: #218838;
}

.update-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #5a6268;
} 

/* 备注区域 */
.top-section {
            display: flex;
            gap: 20px;
            margin: 20px 0;
            align-items: flex-start;
        }
		

/* 备注栏样式 */
.note-card {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #3498db;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            flex: 1;
            min-height: fit-content;
        }

.note-card h3 {
            margin: 0 0 15px 0;
            font-size: 16px;
            color: #2c3e50;
            font-weight: 600;
        }

.note-card p {
            margin: 0;
            line-height: 1.6;
            color: #5a6c7d;
            font-size: 14px;
        }
		
