/* TradingView page layout - similar to BienDong but with its own class names */

.tradingview-wrapper {
    margin: 4px 2px !important;
    border-radius: 4px;
}

.tradingview-portlet {
    height: calc(100% - 0px);
    overflow: clip;
}

.tradingview-portlet-body {
    flex: 1;
    overflow: hidden;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
}

.tradingview-header {
    align-self: stretch;
    padding-top: 4px;
    padding-bottom: 4px;
    background: var(--Background-White, white);
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}

.tradingview-title-wrapper {
    height: 20px;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: flex;
}

.tradingview-title-indicator {
    width: 2px;
    height: 14px;
    background: var(--Primary-Brand, #2980B9);
}

.tradingview-title {
    color: black;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 500;
    line-height: 18px;
    word-wrap: break-word;
}

#tradingview-center-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
    padding-bottom: 4px;
}

#tradingview-main-wrapper {
    flex: 1;
    min-height: 400px;
    position: relative;
}

#tv_chart_main {
    height: 100%;
    width: 100%;
}

/* Override separator line color to match scale line color */
#tv_chart_main .pane-separator,
#tv_chart_main [class*="separator"] {
    background-color: #e1e1e1 !important;
}

/* Loading overlay */
#tradingview-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease-out;
}

.tradingview-spinner-container {
    text-align: center;
}

.tradingview-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2980B9;
    border-radius: 50%;
    animation: tradingview-spin 1s linear infinite;
}

@keyframes tradingview-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tradingview-loading-text {
    color: #666;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
}


.tradingview-wrapper>.portlet.box>.portlet-body {
    height: calc(100% - 0px) !important
}