/* Custom styles to hide TradingView notifications and watermarks */

/* Hide TradingView notifications and watermarks */
.tradingview-widget-container iframe {
    border: none !important;
    outline: none !important;
}

/* Hide any notification overlays */
.tv-dialog,
.tv-dialog__section,
.tv-toast,
.tv-notifications,
.tv-floating-tooltip,
.tv-popup-widget,
.tv-chart-view__watermark,
.tv-symbol-header__text-button,
.tv-header__area-right,
.tv-header__logo,
.tv-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Clean chart container */
.chart-container {
    position: relative;
    overflow: hidden;
}

.chart-container iframe {
    border: none;
    outline: none;
    background: transparent;
}

/* Hide TradingView branding */
iframe[src*="tradingview.com"] {
    border: none !important;
}

/* Ensure proper modal display */
.modal-xl .modal-dialog {
    max-width: 95%;
}

@media (max-width: 768px) {
    .modal-xl .modal-dialog {
        max-width: 100%;
        margin: 0;
    }
}

/* Custom loading state for charts */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

/* Smooth transitions for chart modals */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}