/*
Theme Name: TradingView Clone
Theme URI: https://example.com/tradingview-clone
Author: OpenClaw
Author URI: https://example.com
Description: A full-featured TradingView chart interface clone for WordPress
Version: 1.0.0
License: GPL v2 or later
Text Domain: tradingview-clone
Requires PHP: 7.4
Requires at least: 5.8
*/

/* ============================================
   TradingView Clone - Main Theme Stylesheet
   ============================================ */

/* CSS Custom Properties */
:root {
    --tv-bg-primary: #131722;
    --tv-bg-secondary: #1E222D;
    --tv-bg-tertiary: #2A2E39;
    --tv-bg-hover: #2A2E39;
    --tv-bg-input: #1E222D;
    --tv-bg-toolbar: #1E222D;
    
    --tv-color-primary: #2962FF;
    --tv-color-primary-hover: #1E4BD2;
    --tv-color-success: #22AB94;
    --tv-color-danger: #F23645;
    --tv-color-warning: #FF9800;
    
    --tv-text-primary: #D1D4DC;
    --tv-text-secondary: #787B86;
    --tv-text-muted: #5D606B;
    --tv-text-bright: #FFFFFF;
    
    --tv-border-color: #363A45;
    --tv-border-light: #2A2E39;
    
    --tv-chart-bg: #131722;
    --tv-chart-grid: #1E222D;
    --tv-chart-crosshair: #434651;
    
    --tv-toolbar-height: 40px;
    --tv-sidebar-width: 280px;
    --tv-bottombar-height: 32px;
    --tv-right-toolbar-width: 240px;
    
    --tv-font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    --tv-font-mono: 'Roboto Mono', monospace;
    --tv-font-size-xs: 11px;
    --tv-font-size-sm: 12px;
    --tv-font-size-md: 13px;
    --tv-font-size-lg: 14px;
    --tv-font-size-xl: 16px;
    
    --tv-radius-sm: 2px;
    --tv-radius-md: 4px;
    --tv-radius-lg: 8px;
    
    --tv-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --tv-shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --tv-shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    
    --tv-transition: 0.15s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--tv-font-family);
    font-size: var(--tv-font-size-sm);
    color: var(--tv-text-primary);
    background: var(--tv-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide WP admin bar on chart pages */
body.tv-chart-page #wpadminbar {
    display: none !important;
}

a {
    color: var(--tv-color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--tv-color-primary-hover);
}

/* ============================================
   Layout - Main App Container
   ============================================ */

.tv-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================
   Top Toolbar
   ============================================ */

.tv-toolbar {
    display: flex;
    align-items: center;
    height: var(--tv-toolbar-height);
    background: var(--tv-bg-toolbar);
    border-bottom: 1px solid var(--tv-border-color);
    padding: 0 8px;
    gap: 4px;
    z-index: 100;
    flex-shrink: 0;
    user-select: none;
}

.tv-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
}

.tv-toolbar-group:not(:last-child) {
    border-right: 1px solid var(--tv-border-color);
    padding-right: 8px;
    margin-right: 4px;
}

.tv-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: var(--tv-radius-sm);
    background: transparent;
    color: var(--tv-text-secondary);
    font-size: var(--tv-font-size-xs);
    font-family: var(--tv-font-family);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--tv-transition);
    gap: 4px;
}

.tv-toolbar-btn:hover {
    background: var(--tv-bg-hover);
    color: var(--tv-text-primary);
}

.tv-toolbar-btn.active {
    background: var(--tv-color-primary);
    color: var(--tv-text-bright);
}

.tv-toolbar-btn.active:hover {
    background: var(--tv-color-primary-hover);
}

.tv-toolbar-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tv-toolbar-separator {
    width: 1px;
    height: 20px;
    background: var(--tv-border-color);
    margin: 0 4px;
}

/* Symbol Search */
.tv-symbol-search {
    position: relative;
    display: flex;
    align-items: center;
}

.tv-symbol-search-input {
    width: 160px;
    height: 28px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-bg-input);
    color: var(--tv-text-primary);
    font-size: var(--tv-font-size-md);
    font-family: var(--tv-font-family);
    outline: none;
    transition: border-color var(--tv-transition);
}

.tv-symbol-search-input:focus {
    border-color: var(--tv-color-primary);
    width: 240px;
}

.tv-symbol-search-icon {
    position: absolute;
    right: 6px;
    color: var(--tv-text-muted);
    pointer-events: none;
}

/* Interval Buttons */
.tv-interval-btns {
    display: flex;
    gap: 1px;
}

.tv-interval-btn {
    height: 26px;
    min-width: 32px;
    padding: 0 6px;
    border: none;
    background: transparent;
    color: var(--tv-text-secondary);
    font-size: var(--tv-font-size-xs);
    cursor: pointer;
    border-radius: var(--tv-radius-sm);
    transition: all var(--tv-transition);
}

.tv-interval-btn:hover {
    color: var(--tv-text-primary);
    background: var(--tv-bg-hover);
}

.tv-interval-btn.active {
    background: var(--tv-color-primary);
    color: var(--tv-text-bright);
}

/* ============================================
   Main Content Area
   ============================================ */

.tv-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   Left Sidebar (Watchlist / Details)
   ============================================ */

.tv-sidebar-left {
    width: var(--tv-sidebar-width);
    background: var(--tv-bg-secondary);
    border-right: 1px solid var(--tv-border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.tv-sidebar-left.collapsed {
    width: 0;
    border-right: none;
}

.tv-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 12px;
    border-bottom: 1px solid var(--tv-border-color);
    flex-shrink: 0;
}

.tv-sidebar-title {
    font-size: var(--tv-font-size-md);
    font-weight: 600;
    color: var(--tv-text-primary);
}

.tv-sidebar-actions {
    display: flex;
    gap: 4px;
}

.tv-sidebar-action-btn {
    background: transparent;
    border: none;
    color: var(--tv-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--tv-radius-sm);
    display: flex;
    align-items: center;
}

.tv-sidebar-action-btn:hover {
    color: var(--tv-text-primary);
    background: var(--tv-bg-hover);
}

/* Tabs */
.tv-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--tv-border-color);
    flex-shrink: 0;
}

.tv-sidebar-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: var(--tv-font-size-xs);
    color: var(--tv-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--tv-transition);
}

.tv-sidebar-tab:hover {
    color: var(--tv-text-secondary);
}

.tv-sidebar-tab.active {
    color: var(--tv-color-primary);
    border-bottom-color: var(--tv-color-primary);
}

/* Watchlist */
.tv-watchlist {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.tv-watchlist::-webkit-scrollbar {
    width: 6px;
}

.tv-watchlist::-webkit-scrollbar-track {
    background: transparent;
}

.tv-watchlist::-webkit-scrollbar-thumb {
    background: var(--tv-border-color);
    border-radius: 3px;
}

.tv-watchlist-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: var(--tv-font-size-xs);
    border-bottom: 1px solid var(--tv-border-light);
    cursor: pointer;
    transition: background var(--tv-transition);
    gap: 8px;
}

.tv-watchlist-item:hover {
    background: var(--tv-bg-hover);
}

.tv-watchlist-item.active {
    background: rgba(41, 98, 255, 0.1);
    border-left: 2px solid var(--tv-color-primary);
}

.tv-watchlist-symbol {
    flex: 1;
    font-weight: 600;
    color: var(--tv-text-primary);
}

.tv-watchlist-price {
    text-align: right;
    font-family: var(--tv-font-mono);
}

.tv-watchlist-change {
    width: 60px;
    text-align: right;
    font-family: var(--tv-font-mono);
    font-size: var(--tv-font-size-xs);
    padding: 2px 6px;
    border-radius: var(--tv-radius-sm);
}

.tv-watchlist-change.positive {
    color: var(--tv-color-success);
    background: rgba(34, 171, 148, 0.1);
}

.tv-watchlist-change.negative {
    color: var(--tv-color-danger);
    background: rgba(242, 54, 69, 0.1);
}

/* ============================================
   Chart Container
   ============================================ */

.tv-chart-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.tv-chart-container {
    flex: 1;
    position: relative;
    background: var(--tv-chart-bg);
    cursor: crosshair;
    min-height: 0;
}

.tv-chart-canvas-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tv-chart-canvas-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Chart Toolbar (drawing tools on left side) */
.tv-chart-toolbar-left {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.tv-chart-tool-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-bg-secondary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-sm);
    color: var(--tv-text-secondary);
    cursor: pointer;
    transition: all var(--tv-transition);
    position: relative;
}

.tv-chart-tool-btn:hover {
    background: var(--tv-bg-hover);
    color: var(--tv-text-primary);
}

.tv-chart-tool-btn.active {
    background: var(--tv-color-primary);
    border-color: var(--tv-color-primary);
    color: var(--tv-text-bright);
}

/* Legend / Crosshair info */
.tv-chart-legend {
    position: absolute;
    top: 8px;
    left: 50px;
    display: flex;
    gap: 16px;
    font-family: var(--tv-font-mono);
    font-size: var(--tv-font-size-sm);
    color: var(--tv-text-secondary);
    z-index: 10;
    pointer-events: none;
}

.tv-chart-legend-price {
    font-size: var(--tv-font-size-xl);
    font-weight: 700;
    color: var(--tv-text-bright);
}

.tv-chart-legend-change {
    font-size: var(--tv-font-size-md);
}

.tv-chart-legend-change.positive { color: var(--tv-color-success); }
.tv-chart-legend-change.negative { color: var(--tv-color-danger); }

/* ============================================
   Right Sidebar (Market Data / Tools)
   ============================================ */

.tv-sidebar-right {
    width: var(--tv-right-toolbar-width);
    background: var(--tv-bg-secondary);
    border-left: 1px solid var(--tv-border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.tv-sidebar-right.collapsed {
    width: 0;
    border-left: none;
}

/* ============================================
   Bottom Bar
   ============================================ */

.tv-bottombar {
    display: flex;
    align-items: center;
    height: var(--tv-bottombar-height);
    background: var(--tv-bg-toolbar);
    border-top: 1px solid var(--tv-border-color);
    padding: 0 12px;
    gap: 16px;
    font-size: var(--tv-font-size-xs);
    flex-shrink: 0;
    user-select: none;
}

.tv-bottombar-item {
    color: var(--tv-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tv-bottombar-label {
    color: var(--tv-text-secondary);
}

.tv-bottombar-value {
    font-family: var(--tv-font-mono);
    color: var(--tv-text-primary);
}

.tv-bottombar-value.positive { color: var(--tv-color-success); }
.tv-bottombar-value.negative { color: var(--tv-color-danger); }

/* ============================================
   Dropdown / Menu
   ============================================ */

.tv-dropdown {
    position: relative;
    display: inline-flex;
}

.tv-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 180px;
    background: var(--tv-bg-secondary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-md);
    box-shadow: var(--tv-shadow-lg);
    z-index: 1000;
    display: none;
    padding: 4px 0;
}

.tv-dropdown.open .tv-dropdown-menu {
    display: block;
}

.tv-dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: var(--tv-font-size-xs);
    color: var(--tv-text-secondary);
    cursor: pointer;
    transition: all var(--tv-transition);
    gap: 8px;
    white-space: nowrap;
}

.tv-dropdown-item:hover {
    background: var(--tv-bg-hover);
    color: var(--tv-text-primary);
}

.tv-dropdown-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tv-dropdown-item .shortcut {
    margin-left: auto;
    color: var(--tv-text-muted);
    font-size: 10px;
}

/* ============================================
   Modal / Dialogs
   ============================================ */

.tv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tvFadeIn 0.15s ease;
}

.tv-modal {
    background: var(--tv-bg-secondary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-lg);
    box-shadow: var(--tv-shadow-lg);
    min-width: 320px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.tv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tv-border-color);
}

.tv-modal-title {
    font-size: var(--tv-font-size-lg);
    font-weight: 600;
}

.tv-modal-close {
    background: transparent;
    border: none;
    color: var(--tv-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--tv-radius-sm);
}

.tv-modal-close:hover {
    color: var(--tv-text-primary);
    background: var(--tv-bg-hover);
}

.tv-modal-body {
    padding: 16px;
}

.tv-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--tv-border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-md);
    background: transparent;
    color: var(--tv-text-primary);
    font-size: var(--tv-font-size-md);
    font-family: var(--tv-font-family);
    cursor: pointer;
    transition: all var(--tv-transition);
    gap: 6px;
    white-space: nowrap;
}

.tv-btn:hover {
    background: var(--tv-bg-hover);
}

.tv-btn-primary {
    background: var(--tv-color-primary);
    border-color: var(--tv-color-primary);
    color: var(--tv-text-bright);
}

.tv-btn-primary:hover {
    background: var(--tv-color-primary-hover);
    border-color: var(--tv-color-primary-hover);
}

.tv-btn-success {
    background: var(--tv-color-success);
    border-color: var(--tv-color-success);
    color: var(--tv-text-bright);
}

.tv-btn-danger {
    background: var(--tv-color-danger);
    border-color: var(--tv-color-danger);
    color: var(--tv-text-bright);
}

.tv-btn-sm {
    padding: 4px 10px;
    font-size: var(--tv-font-size-xs);
}

/* ============================================
   Form Elements
   ============================================ */

.tv-input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-bg-input);
    color: var(--tv-text-primary);
    font-size: var(--tv-font-size-md);
    font-family: var(--tv-font-family);
    outline: none;
}

.tv-input:focus {
    border-color: var(--tv-color-primary);
}

.tv-select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-bg-input);
    color: var(--tv-text-primary);
    font-size: var(--tv-font-size-md);
    cursor: pointer;
}

.tv-label {
    display: block;
    font-size: var(--tv-font-size-xs);
    color: var(--tv-text-secondary);
    margin-bottom: 4px;
}

/* ============================================
   Context Menu
   ============================================ */

.tv-context-menu {
    position: fixed;
    background: var(--tv-bg-secondary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-md);
    box-shadow: var(--tv-shadow-lg);
    z-index: 10000;
    padding: 4px 0;
    min-width: 160px;
}

.tv-context-menu-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: var(--tv-font-size-xs);
    color: var(--tv-text-secondary);
    cursor: pointer;
    transition: all var(--tv-transition);
    gap: 8px;
}

.tv-context-menu-item:hover {
    background: var(--tv-bg-hover);
    color: var(--tv-text-primary);
}

.tv-context-menu-separator {
    height: 1px;
    background: var(--tv-border-color);
    margin: 4px 0;
}

/* ============================================
   Tabs Panel (Right sidebar)
   ============================================ */

.tv-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tv-panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--tv-border-color);
    flex-shrink: 0;
    overflow-x: auto;
}

.tv-panel-tab {
    padding: 8px 12px;
    font-size: var(--tv-font-size-xs);
    color: var(--tv-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--tv-transition);
}

.tv-panel-tab:hover {
    color: var(--tv-text-secondary);
}

.tv-panel-tab.active {
    color: var(--tv-color-primary);
    border-bottom-color: var(--tv-color-primary);
}

.tv-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* Order Form */
.tv-order-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-order-type-toggle {
    display: flex;
    border-radius: var(--tv-radius-sm);
    overflow: hidden;
}

.tv-order-type-btn {
    flex: 1;
    padding: 6px;
    border: 1px solid var(--tv-border-color);
    background: transparent;
    color: var(--tv-text-secondary);
    font-size: var(--tv-font-size-xs);
    cursor: pointer;
    transition: all var(--tv-transition);
}

.tv-order-type-btn:first-child { border-radius: var(--tv-radius-sm) 0 0 var(--tv-radius-sm); }
.tv-order-type-btn:last-child { border-radius: 0 var(--tv-radius-sm) var(--tv-radius-sm) 0; }

.tv-order-type-btn.active {
    background: var(--tv-color-primary);
    border-color: var(--tv-color-primary);
    color: var(--tv-text-bright);
}

.tv-order-type-btn.active.buy {
    background: var(--tv-color-success);
    border-color: var(--tv-color-success);
}

.tv-order-type-btn.active.sell {
    background: var(--tv-color-danger);
    border-color: var(--tv-color-danger);
}

/* ============================================
   Notifications / Toasts
   ============================================ */

.tv-toast-container {
    position: fixed;
    top: 50px;
    right: 16px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.tv-toast {
    background: var(--tv-bg-secondary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius-md);
    padding: 10px 16px;
    font-size: var(--tv-font-size-sm);
    box-shadow: var(--tv-shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: tvSlideIn 0.2s ease;
    pointer-events: auto;
    max-width: 360px;
}

.tv-toast.success { border-left: 3px solid var(--tv-color-success); }
.tv-toast.error { border-left: 3px solid var(--tv-color-danger); }
.tv-toast.info { border-left: 3px solid var(--tv-color-primary); }

/* ============================================
   Animations
   ============================================ */

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

@keyframes tvSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .tv-sidebar-left,
    .tv-sidebar-right {
        position: absolute;
        top: var(--tv-toolbar-height);
        bottom: var(--tv-bottombar-height);
        z-index: 50;
    }
    
    .tv-sidebar-left {
        left: 0;
    }
    
    .tv-sidebar-right {
        right: 0;
    }
    
    .tv-symbol-search-input {
        width: 100px;
    }
    
    .tv-symbol-search-input:focus {
        width: 140px;
    }
}

/* ============================================
   Print
   ============================================ */

@media print {
    .tv-sidebar-left,
    .tv-sidebar-right,
    .tv-toolbar,
    .tv-bottombar {
        display: none;
    }
    
    .tv-chart-area {
        position: static;
    }
}

/* ============================================
   Real-time price flash animation
   ============================================ */

.tv-price-flash-up {
    animation: tvFlashUp 0.5s ease;
}

.tv-price-flash-down {
    animation: tvFlashDown 0.5s ease;
}

@keyframes tvFlashUp {
    0% { background-color: rgba(34, 171, 148, 0.3); }
    100% { background-color: transparent; }
}

@keyframes tvFlashDown {
    0% { background-color: rgba(242, 54, 69, 0.3); }
    100% { background-color: transparent; }
}

/* ============================================
   Loading states
   ============================================ */

.tv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--tv-text-muted);
}

.tv-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--tv-border-color);
    border-top-color: var(--tv-color-primary);
    border-radius: 50%;
    animation: tvSpin 0.6s linear infinite;
}

@keyframes tvSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Indicator panel
   ============================================ */

.tv-indicator-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tv-indicator-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    font-size: var(--tv-font-size-xs);
    cursor: pointer;
    border-radius: var(--tv-radius-sm);
    transition: background var(--tv-transition);
}

.tv-indicator-item:hover {
    background: var(--tv-bg-hover);
}

.tv-indicator-toggle {
    margin-right: 8px;
}

.tv-indicator-settings {
    margin-left: auto;
    color: var(--tv-text-muted);
    cursor: pointer;
}

/* ============================================
   Snapping guidelines for drawings
   ============================================ */

.tv-snap-line {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.tv-snap-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed var(--tv-color-warning);
}

.tv-snap-line.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px dashed var(--tv-color-warning);
}

/* ============================================
   Timezone selector
   ============================================ */

.tv-timezone-display {
    font-size: var(--tv-font-size-xs);
    color: var(--tv-text-muted);
    padding: 0 4px;
}

/* ============================================
   Resizer for sidebars
   ============================================ */

.tv-resizer {
    width: 4px;
    cursor: col-resize;
    background: transparent;
    flex-shrink: 0;
    transition: background var(--tv-transition);
}

.tv-resizer:hover {
    background: var(--tv-color-primary);
}
