.navbar-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* 对于 Firefox */
    -ms-overflow-style: none; /* 对于 Internet Explorer 和 Edge */
}

.navbar-scroll-container::-webkit-scrollbar {
    display: none; /* 对于 Chrome, Safari 和 Opera */
}

.navbar-scroll-container .controlPanel {
    display: inline-flex;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .navbar-scroll-container .controlPanel > * {
        flex: 0 0 auto;
    }
}

.controlPanel{
    text-align: center;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.myChart-div {
    display: block;
    margin: 0;
    position: relative;
    flex: 1; /* 自動填充剩餘空間，響應濾網展開/收縮 */
    width: 100%;
    font-size: 0; /* 消除HTML空白字符影響 */
    min-height: 0; /* 確保flex shrink正常工作 */
    transition: width 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更快更平滑的easeOutQuad曲線 */
}

#myChart {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 16px; /* 恢復字體大小 */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.533);
}
.modal-content {
    background-color: #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    max-width: 80%;
    max-height: 85%;
}
#tradingview_chart {
    width: 100%;
    height: 100%;
}
.loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2D4356;
    transition: opacity 0.75s, visibility 0.75s;
}

.loader-hidden{
    opacity: 0;
    visibility: hidden;
}

.loader::after{
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #F5F5F5;
    border-top-color: #435B66;
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading{
    from{
        transform: rotate(0turn);
    }
    to{
        transform: rotate(1turn);
    }
}