
:root {
    --color-bg-primary: #1e232d;
    --color-bg-panel: #0e1b2c;
    --color-bg-hover: #1f477a;
    --color-state-hover: #1f477a;
    --color-text-primary: #e0e0e0;
    --color-text-tertiary: #888888;
    --color-text-plate: #01bcdd;
    --color-function-red: #D22222;
    --color-border: #333333;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
    font-family: "Microsoft YaHei", "JetBrains Mono", "Roboto Mono", Consolas, Monaco, "PingFang SC", monospace !important;
}

* {
    border-radius: 0 !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #333333;
    border-radius: 0;
    border: none;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

#container {
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    padding: 0;
    padding-bottom: 10px;
    position: relative;
    margin: 0 auto;
}

.chart {
    padding: 0;
    margin-top: 0;
}

#chart {
    width: 100%;
    height: 100vh;
    margin-top: 10px;
}

.loading-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 20px 30px;
    z-index: 9999;
    text-align: center;
    min-width: 280px;
}

.loading-text {
    color: var(--color-text-primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.loading-progress {
    color: var(--color-text-plate);
    font-size: 12px;
}

.loading-tip.hidden {
    display: none;
}

.manual-open {
    position: fixed;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: var(--color-bg-primary);
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #555555;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    user-select: none;
}

.manual-open:hover {
    color: #ff9900;
}

.manual-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483005;
}

.manual-modal[hidden] {
    display: none;
}

.manual-modal-content {
    width: 100%;
    height: 100%;
    background: #1e232d;
    overflow: hidden;
    position: relative;
}

.manual-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
