diff --git a/ots-signs/config.php b/ots-signs/config.php index 3ae05b8..c8efa74 100644 --- a/ots-signs/config.php +++ b/ots-signs/config.php @@ -21,7 +21,7 @@ defined('XIBO') or die("Sorry, you are not allowed to directly access this page.
Please press the back button in your browser."); $config = array( - 'theme_name' => 'otssignange', + 'theme_name' => 'otssigns', 'theme_title' => 'OTS Signs', 'app_name' => 'OTS Signage', 'theme_url' => 'CMS Homepage', diff --git a/ots-signs/css/override.css b/ots-signs/css/override.css index 8ef251c..b7890d8 100644 --- a/ots-signs/css/override.css +++ b/ots-signs/css/override.css @@ -786,1031 +786,6 @@ html, body, #page-wrapper, .ots-main, .ots-content, .page-content { box-sizing: border-box !important; } -/* ============================================================================ - PLAYLIST / LAYOUT EDITOR – themed for dark/light mode - The .editor-modal is AJAX-injected into #editor-container (inside - #page-wrapper > #content-wrapper > .page-content). It borrows Bootstrap's - .modal class for position:fixed but is NOT opened via $.modal(). - All colours use --editor-* CSS variables defined in :root and - body.ots-light-mode so they follow the active theme. - ============================================================================ */ - -/* --- 1. The .editor-modal overlay ---------------------------------------- */ -.editor-modal.modal { - position: fixed !important; - top: 0 !important; - left: 0 !important; - width: 100% !important; - height: 100% !important; - max-width: none !important; - margin: 0 !important; - background-color: var(--editor-modal-bg) !important; - background-image: none !important; - border: none !important; - box-shadow: none !important; - z-index: 1201 !important; - display: block !important; - opacity: 1 !important; - overflow: auto !important; -} - -.editor-modal .editor-modal-dialog { - max-width: 100%; - height: calc(100% - 6rem); - margin: 3rem; -} - -.editor-modal .editor-modal-content { - background-color: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; - border: none !important; - height: 100%; -} - -.editor-modal .editor-modal-header { - background-color: var(--editor-modal-header-bg) !important; - color: var(--editor-modal-header-text) !important; - border-bottom: 1px solid var(--editor-border) !important; -} - -.editor-modal .editor-modal-header .modal-header--left, -.editor-modal .editor-modal-title { - color: var(--editor-modal-header-text) !important; -} - -.editor-modal .editor-modal-header .playlist-info-widgets, -.editor-modal .editor-modal-header .playlist-info-duration { - color: var(--editor-modal-header-text) !important; -} - -.editor-modal .editor-modal-close { - color: var(--editor-text-secondary) !important; -} - -.editor-modal .editor-modal-body { - background-color: var(--editor-modal-content-bg) !important; -} - -/* --- 2. Inner editor containers ------------------------------------------ */ -#playlist-editor, -#layout-editor, -.playlist-editor, -.layout-editor { - background-color: var(--editor-body-bg) !important; - border-color: var(--color-primary) !important; - color: var(--editor-text) !important; -} - -#playlist-editor-container, -#playlist-editor-container .editor-body, -.playlist-editor-inline-container { - background-color: var(--editor-body-bg) !important; - background-image: none !important; -} - -/* --- 3. Left margin gutter ---------------------------------------------- */ -#playlist-editor .left-margin { - background-color: var(--editor-left-margin-bg) !important; -} - -/* --- 4. Time grid (horizontal lines behind timeline) -------------------- */ -#playlist-editor .time-grid { - color: var(--editor-timegrid-text) !important; -} - -#playlist-editor .time-grid .time-grid-step { - background-color: var(--editor-timegrid-line) !important; -} - -#playlist-editor .time-grid .step-value { - color: var(--editor-timegrid-text) !important; -} - -#playlist-editor .time-grid::after { - background-color: var(--editor-timegrid-overlay) !important; -} - -/* --- 5. Timeline area ---------------------------------------------------- */ -#playlist-timeline { - background-color: var(--editor-timeline-bg) !important; - background-image: none !important; -} - -#timeline-container { - background-color: transparent !important; -} - -/* --- 6. Widget cards in timeline ----------------------------------------- */ -#playlist-timeline .playlist-widget { - background-color: var(--editor-widget-bg) !important; - outline-color: var(--editor-widget-border) !important; - color: var(--editor-widget-text) !important; -} - -#playlist-timeline .playlist-widget .widgetLabel { - background-color: var(--editor-widget-label-bg) !important; - color: var(--editor-widget-label-text) !important; -} - -#playlist-timeline .playlist-widget .widgetName { - color: var(--editor-widget-text) !important; -} - -#playlist-timeline .playlist-widget .widgetProperties, -#playlist-timeline .playlist-widget .widgetProperties i { - color: var(--editor-text-secondary) !important; -} - -#playlist-timeline .playlist-widget .widgetDuration { - color: var(--editor-widget-label-text) !important; -} - -#playlist-timeline .playlist-widget i.editProperty { - color: var(--editor-widget-text) !important; -} - -#playlist-timeline .playlist-widget.selectable:hover { - background-color: var(--editor-widget-hover-bg) !important; -} - -#playlist-timeline .playlist-widget.selected { - background-color: var(--editor-widget-selected-bg) !important; -} - -/* Multi-select */ -#playlist-editor.multi-select .playlist-widget:hover { - background-color: var(--editor-widget-multi-hover-bg) !important; -} - -#playlist-editor.multi-select .playlist-widget.multi-selected { - background-color: var(--editor-widget-multi-bg) !important; -} - -/* --- 7. Footer bar ------------------------------------------------------- */ -#playlist-editor .editor-footer .footer-controls { - background-color: var(--editor-footer-controls-bg) !important; -} - -#playlist-editor .editor-footer .footer-controls .btn { - color: var(--editor-footer-text) !important; -} - -#playlist-editor .editor-footer .footer-controls .btn:hover { - color: #ffffff !important; - background-color: var(--color-secondary, #121a5e) !important; -} - -#playlist-editor .editor-footer .footer-info { - background-color: var(--editor-footer-info-bg) !important; - color: var(--editor-footer-text) !important; -} - -#playlist-editor .editor-footer .footer-info .selected-info { - color: var(--editor-footer-text) !important; -} - -#playlist-editor .editor-footer .footer-actions button { - color: var(--editor-footer-text) !important; -} - -/* --- 8. Editor toolbar / sidebar (fixed left panel) ---------------------- */ -.editor-toolbar.editor-side-bar-playlist-editor nav, -.editor-toolbar.editor-side-bar nav, -.editor-toolbar nav { - background-color: var(--editor-toolbar-bg) !important; - color: var(--editor-toolbar-text) !important; -} - -.editor-toolbar nav .toolbar-menu-content .toolbar-pane { - background-color: var(--editor-toolbar-pane-bg) !important; - color: var(--editor-toolbar-pane-text) !important; -} - -.editor-toolbar nav .toolbar-menu-content .toolbar-pane .content-title { - color: var(--editor-toolbar-pane-text) !important; -} - -.editor-toolbar nav .toolbar-menu-content .toolbar-pane .close-content { - color: var(--editor-text-secondary) !important; -} - -/* Toolbar card rows */ -.editor-toolbar nav tr.toolbar-card { - color: var(--editor-toolbar-pane-text) !important; -} - -.editor-toolbar nav tr.toolbar-card.card-selected { - background-color: color-mix(in srgb, var(--color-primary) 15%, transparent) !important; -} - -/* Toolbar buttons */ -.editor-toolbar nav .toolbar-menu .toolbar-menu-btn { - color: var(--editor-toolbar-text) !important; -} - -.editor-toolbar nav .toolbar-menu .toolbar-menu-btn:hover, -.editor-toolbar nav .toolbar-menu .toolbar-menu-btn.active { - background-color: rgba(255, 255, 255, 0.15) !important; -} - -/* --- 9. Back button (fixed top-left) ------------------------------------- */ -.editor-modal .back-button, -.back-button { - background-color: var(--editor-back-btn-bg) !important; -} - -.editor-modal .back-button a, -.back-button a { - color: var(--editor-back-btn-text) !important; -} - -.editor-modal .back-button a:hover, -.back-button a:hover { - background-color: rgba(255, 255, 255, 0.1) !important; -} - -.editor-modal .back-button span { - color: var(--editor-back-btn-text) !important; -} - -/* --- 10. Properties panel (right side) ----------------------------------- */ -.properties-panel-playlist-editor, -.properties-panel-container { - background-color: var(--editor-body-bg) !important; -} - -.properties-panel-container #properties-panel { - background-color: var(--editor-body-bg) !important; - color: var(--editor-text) !important; -} - -.properties-panel-container #properties-panel-form-container { - background-color: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; -} - -.properties-panel-container #properties-panel .loading-container { - background-color: var(--editor-properties-bg) !important; -} - -.properties-panel-container #properties-panel .loading-icon { - color: var(--color-primary) !important; -} - -.properties-panel-container #properties-panel .unsuccessMessage { - color: #ffffff !important; -} - -/* Tab styling for properties panel — initial pass (reinforced at end of file) */ -.properties-panel-container #properties-panel .nav .nav-link, -.properties-panel-container #properties-panel .nav > li > a, -#properties-panel .nav .nav-link, -#properties-panel .nav > li > a { - color: var(--editor-text-secondary) !important; - background: var(--editor-header-bg) !important; - background-color: var(--editor-header-bg) !important; - border: none !important; - border-color: transparent !important; - box-shadow: none !important; - opacity: 1 !important; -} - -.properties-panel-container #properties-panel .nav .nav-link.active, -.properties-panel-container #properties-panel .nav > li > a.active, -#properties-panel .nav .nav-link.active, -#properties-panel .nav > li > a.active { - color: var(--color-primary) !important; - background: var(--editor-header-bg) !important; - background-color: var(--editor-header-bg) !important; - border: none !important; - border-bottom: 2px solid var(--color-primary) !important; - opacity: 1 !important; -} - -.properties-panel-container #properties-panel .nav, -.properties-panel-container #properties-panel .nav-tabs, -#properties-panel .nav, -#properties-panel .nav-tabs { - background: var(--editor-header-bg) !important; - background-color: var(--editor-header-bg) !important; -} - -.properties-panel-container #properties-panel .form-content label { - color: var(--editor-text) !important; -} - -/* More aggressive label overrides for all label elements in properties panel */ -#properties-panel label, -#properties-panel .label, -#properties-panel .form-label, -.properties-panel-container label, -.properties-panel-container .label, -.properties-panel-container .form-label, -.form-group label { - color: var(--editor-text) !important; -} - -.properties-panel-container #properties-panel .form-content .form-control { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -/* Select2 elements inside properties panel */ -.properties-panel-container .select2-container--default .select2-selection--single { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -.properties-panel-container .select2-container--default .select2-selection--single .select2-selection__rendered { - color: var(--editor-text) !important; -} - -/* Placeholder text in select2 */ -.properties-panel-container .select2-container--default .select2-selection--single .select2-selection__placeholder { - color: var(--editor-text-secondary) !important; -} - -.properties-panel-container .select2-container--default .select2-selection--single .select2-selection__arrow b { - border-color: var(--editor-text-secondary) transparent transparent transparent !important; -} - -/* Select2 dropdown theming (appended to body, not in panel) */ -.select2-container--open .select2-dropdown { - background-color: var(--color-surface) !important; - color: var(--editor-text, var(--color-text-primary)) !important; - border-color: var(--editor-border, var(--color-border)) !important; -} - -.select2-container--default .select2-results__option { - color: var(--editor-text, var(--color-text-primary)) !important; -} - -.select2-container--default .select2-results__option[aria-selected=true] { - background-color: color-mix(in srgb, var(--color-primary) 15%, var(--color-surface)) !important; - color: var(--editor-text, var(--color-text-primary)) !important; -} - -.select2-container--default .select2-search--dropdown .select2-search__field { - background-color: var(--color-surface-elevated) !important; - color: var(--color-text-primary) !important; - border-color: var(--color-border) !important; -} - -#playlist-properties-panel { - background-color: var(--editor-properties-bg) !important; - border-color: var(--editor-properties-border) !important; - color: var(--editor-text) !important; -} - -/* --- 11. Scrollbars inside editor ---------------------------------------- */ -#playlist-editor ::-webkit-scrollbar-track, -#layout-editor ::-webkit-scrollbar-track { - background: var(--editor-scrollbar-track) !important; -} - -#playlist-editor ::-webkit-scrollbar-thumb, -#layout-editor ::-webkit-scrollbar-thumb { - background: var(--editor-scrollbar-thumb) !important; -} - -#playlist-editor ::-webkit-scrollbar-thumb:hover, -#layout-editor ::-webkit-scrollbar-thumb:hover { - background: var(--editor-scrollbar-thumb-hover) !important; -} - -/* --- 12. Drag-drop overlay ----------------------------------------------- */ -#timeline-overlay-container { - background-color: var(--editor-body-bg) !important; -} - -#timeline-overlay-container .timeline-overlay-step { - background-color: var(--color-primary-light) !important; -} - -#timeline-overlay-container .timeline-overlay-step:hover { - background-color: var(--color-primary-lighter, #fff0d9) !important; -} - -/* --- 13. Layout editor viewer panel -------------------------------------- */ -#layout-editor { - background-color: var(--editor-body-bg) !important; - color: var(--editor-text) !important; -} - -#layout-editor .main-panel-wrapper { - background-color: var(--editor-left-margin-bg) !important; - border-color: var(--color-primary-light) !important; -} - -#layout-editor #layout-viewer { - background-color: var(--editor-left-margin-bg) !important; -} - -#layout-editor .editor-bottom-bar { - background-color: var(--editor-footer-controls-bg) !important; - color: var(--editor-footer-text) !important; -} - -/* --- 15. Properties panel – nav tabs, forms, buttons, labels ------------- */ - -/* Tab navigation inside properties panel */ -.properties-panel-container .nav > li > a, -#properties-panel .nav > li > a, -#properties-panel .form-container .nav > li > a { - color: var(--editor-text-secondary) !important; - background: var(--editor-header-bg) !important; - background-color: var(--editor-header-bg) !important; - border: none !important; -} - -/* Widget editor tabs (Configure/Advanced) should blend with surrounding background */ -.editor-modal .widget-form .nav-tabs, -.editor-modal .widget-form .nav-tabs .nav-link { - background-color: transparent !important; - border-color: transparent !important; -} - -.editor-modal .widget-form .nav-tabs .nav-link { - color: var(--editor-text) !important; - opacity: 1 !important; -} - -.editor-modal .widget-form .nav-tabs .nav-link.active { - color: var(--color-primary) !important; - border-bottom: 2px solid var(--color-primary) !important; - background-color: transparent !important; -} - -/* Ultra-specific override to beat editor tab defaults */ -#properties-panel .widget-form ul.nav.nav-tabs, -#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item, -#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link, -#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link > span, -.editor-modal #properties-panel .widget-form ul.nav.nav-tabs, -.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item, -.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link, -.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link > span { - background-color: transparent !important; - background-image: none !important; - box-shadow: none !important; - border-color: transparent !important; -} - -#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link, -.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link { - color: var(--editor-text) !important; - opacity: 1 !important; -} - -#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link.active, -.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link.active { - color: var(--color-primary) !important; - border-bottom: 2px solid var(--color-primary) !important; - background-color: transparent !important; -} - -.properties-panel-container .nav > li > a.active, -#properties-panel .nav > li > a.active, -.form-container .nav > li > a.active { - color: var(--color-primary) !important; - background-color: var(--editor-modal-content-bg) !important; -} - -/* Form groups, labels, text in properties panel */ -#properties-panel .form-group, -#properties-panel .form-check, -#properties-panel .input-group, -#properties-panel label, -#properties-panel .form-label, -#properties-panel legend, -#properties-panel .help-block, -#properties-panel .control-label { - color: var(--editor-text) !important; -} - -/* Info/help icons */ -#properties-panel .info-icon, -#properties-panel .fa-info-circle, -#properties-panel .fa-question-circle { - color: var(--color-primary) !important; -} - -/* Action buttons in properties panel */ -#properties-panel .button-container .btn, -#properties-panel .form-buttons .btn { - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -#properties-panel .button-container .btn-info, -#properties-panel .form-buttons .btn-info { - background-color: var(--color-primary) !important; - color: #ffffff !important; - border-color: var(--color-primary) !important; -} - -#properties-panel .button-container .btn-white, -#properties-panel .button-container .btn-default, -#properties-panel .form-buttons .btn-white, -#properties-panel .form-buttons .btn-default { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -/* Actions content buttons (layout editor actions pane) */ -#properties-panel .actions-content-button { - background-color: var(--color-surface-elevated) !important; - color: var(--color-primary) !important; - border-color: var(--editor-border) !important; -} - -/* Action forms inside properties panel */ -#properties-panel .action-edit-form, -#properties-panel .action-view { - background-color: var(--color-surface) !important; - border-color: var(--editor-border) !important; -} - -#properties-panel .action-label, -#properties-panel .action-value { - color: var(--editor-text) !important; -} - -#properties-panel .action-btn { - color: #ffffff !important; -} - -#properties-panel .action-btn[data-action="close"], -#properties-panel .action-edit-widget-btn { - color: var(--color-primary) !important; - border-color: var(--editor-border) !important; -} - -/* Action target widget controls */ -#properties-panel .action-target-widget-edit-container { - background-color: var(--color-surface-elevated) !important; -} - -#properties-panel .action-target-widget-dropdown-button { - color: var(--color-primary) !important; - border-color: var(--editor-border) !important; -} - -#properties-panel .action-target-widget-dropdown-container { - background-color: var(--color-surface) !important; -} - -#properties-panel .action-target-widget-dropdown-container .action-edit-widget-btn { - color: var(--editor-text) !important; -} - -/* Form content title border */ -#properties-panel .form-content-title { - border-bottom-color: var(--editor-border) !important; - color: var(--editor-text) !important; -} - -/* Textarea buttons bar (rich text) */ -#properties-panel .text-area-buttons { - background-color: var(--color-surface-elevated) !important; -} - -/* Panel headings */ -#properties-panel .panel-heading { - background-color: var(--color-surface-elevated) !important; -} - -#properties-panel .panel-title { - color: var(--color-primary) !important; -} - -/* Snippet selector */ -#properties-panel .snippet-selector .select2-selection { - background-color: var(--color-surface-elevated) !important; -} - -#properties-panel .snippet-selector .select2-selection__placeholder { - color: var(--editor-text-secondary) !important; -} - -/* Image replace area */ -#properties-panel .image-replace-control-area { - color: var(--editor-text) !important; - background-color: var(--color-surface-elevated) !important; -} - -/* Rich text dimensions control */ -#properties-panel .rich-text-dimensions-control.detached { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; -} - -/* Button switch input group */ -#properties-panel .button-switch-input-group button { - color: var(--color-primary) !important; - border-color: var(--editor-border) !important; -} - -/* Description / compat messages */ -#properties-panel .desc, -#properties-panel .message { - color: var(--editor-text-secondary) !important; -} - -/* Developer template controls */ -#properties-panel .developer-template-placeholder { - color: var(--color-primary) !important; - background-color: var(--color-surface-elevated) !important; -} - -#properties-panel .developer-template-control-item { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-text) !important; -} - -/* Background image controls */ -#properties-panel .background-image-add { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-text) !important; -} - -#properties-panel .background-image-actions .btn-group { - background-color: var(--color-surface) !important; -} - -/* --- 16. Toolbar pane cards & content ------------------------------------ */ - -/* Toolbar cards */ -.editor-toolbar .toolbar-card { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-text) !important; -} - -.editor-toolbar .toolbar-card .card-icon { - color: var(--color-primary) !important; -} - -.editor-toolbar .toolbar-card .media-title { - color: var(--editor-text) !important; -} - -.editor-toolbar .toolbar-card .media-duration { - background-color: var(--editor-footer-controls-bg) !important; - color: var(--editor-footer-text) !important; -} - -.editor-toolbar .toolbar-card .select-button { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-toolbar-text) !important; -} - -.editor-toolbar .toolbar-card .preview-button { - background-color: var(--color-primary) !important; - color: #ffffff !important; -} - -.editor-toolbar .toolbar-card.has-thumb .toolbar-content { - color: var(--editor-text) !important; -} - -.editor-toolbar .toolbar-playlists-pane .toolbar-card-preview { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-text) !important; -} - -/* Upload container */ -.editor-toolbar .upload-container { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; -} - -/* Show more button */ -.editor-toolbar .show-more { - background-color: var(--color-surface) !important; - color: var(--color-primary) !important; -} - -/* Provider badge */ -.editor-toolbar .provider img { - background-color: var(--color-surface) !important; -} - -/* Toolbar search forms */ -.editor-toolbar .toolbar-pane form label { - color: var(--editor-toolbar-pane-text) !important; -} - -.editor-toolbar .toolbar-pane form .form-control { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -/* Toolbar navbar buttons (bottom icons) */ -.editor-toolbar .navbar-buttons a { - color: var(--editor-toolbar-text) !important; -} - -.editor-toolbar .navbar-buttons a.active { - background-color: var(--color-surface-elevated) !important; - color: var(--color-primary) !important; -} - -/* Toolbar navbar submenu */ -.editor-toolbar .navbar-submenu > a { - color: var(--editor-toolbar-text) !important; -} - -.editor-toolbar .navbar-submenu > a:hover { - background-color: rgba(255, 255, 255, 0.1) !important; - color: #ffffff !important; -} - -.editor-toolbar .navbar-submenu .trash-container { - color: var(--color-danger) !important; -} - -/* --- 17. Layout editor top bar & bottom bar ------------------------------ */ - -/* Top bar */ -.editor-top-bar nav, -body.editor-opened .header-side { - background-color: var(--editor-modal-header-bg) !important; - color: var(--editor-text) !important; -} - -.editor-top-bar .navbar-text.layout-info { - color: var(--editor-text) !important; -} - -/* Bottom bar nav & buttons */ -.editor-bottom-bar nav { - background-color: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; -} - -.editor-bottom-bar nav .btn { - color: var(--editor-text) !important; -} - -.editor-bottom-bar nav .btn:hover { - color: var(--color-primary) !important; -} - -.editor-bottom-bar .viewer-navbar-info { - background-color: var(--color-primary) !important; - color: #ffffff !important; -} - -.editor-bottom-bar .viewer-navbar-info .btn { - color: #ffffff !important; -} - -/* Fullscreen & layer manager buttons */ -#layout-editor #fullscreenBtn, -#layout-editor #layerManagerBtn, -#layout-editor .snap-controls > .btn { - background-color: var(--color-surface) !important; - color: var(--color-primary) !important; -} - -#layout-editor #layerManagerBtn.active, -#layout-editor .snap-controls > .btn.active { - background-color: var(--color-primary) !important; - color: #ffffff !important; -} - -#layout-editor .snap-to-grid-value { - color: var(--color-primary) !important; -} - -/* --- 18. Layer manager --------------------------------------------------- */ - -#layerManager { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; -} - -#layerManager .layer-manager-header { - background-color: var(--color-primary) !important; - color: #ffffff !important; -} - -#layerManager .layer-manager-layer-item { - color: var(--editor-text) !important; -} - -#layerManager .layer-manager-layer-item .layer { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-text) !important; -} - -#layerManager .layer-manager-layer-item.selectable:not(.selected):hover { - color: var(--color-primary) !important; -} - -#layerManager .layer-manager-canvas-layers .layer-manager-layer-item { - background-color: var(--color-surface-elevated) !important; -} - -#layerManager .has-group { - background-color: var(--color-surface-elevated) !important; -} - -/* --- 19. Action screen helpers (viewer interactions) ---------------------- */ - -.action-screen-helper { - background-color: var(--color-surface) !important; - color: var(--color-primary) !important; -} - -.action-screen-recent { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; -} - -.action-layout-dock-search-button { - background-color: var(--color-surface) !important; - color: var(--color-primary) !important; -} - -.action-layout-dock-search-results-container { - background-color: var(--color-surface) !important; -} - -.action-layout-dock-search-find { - color: var(--editor-text) !important; - background-color: var(--color-surface-elevated) !important; -} - -.action-layout-dock-option { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; -} - -/* --- 20. Context menus inside editor ------------------------------------- */ - -.context-menu { - background-color: var(--color-surface) !important; - border-color: var(--editor-border) !important; -} - -.context-menu-btn { - color: var(--color-primary) !important; -} - -.context-menu-btn:hover { - background-color: var(--color-surface-elevated) !important; -} - -/* --- 21. Scaled timeline footer controls --------------------------------- */ -#playlist-editor.timeline-scaled .footer-controls .btn-scale-control { - background-color: var(--color-surface) !important; - color: var(--color-primary) !important; -} - -#playlist-editor.timeline-scaled .footer-controls .btn-scale-control:hover { - background-color: var(--color-surface-elevated) !important; -} - -/* --- 22. Popovers inside editor ------------------------------------------ */ -.editor-modal .popover, -#layout-editor .popover { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -/* --- 23. External playlist message --------------------------------------- */ -.external-playlist-message-container { - color: var(--editor-text) !important; -} - -/* --- 24. General form/input overrides inside any editor context ----------- */ -.editor-modal input[type="text"], -.editor-modal input[type="number"], -.editor-modal input[type="search"], -.editor-modal textarea, -.editor-modal select, -#layout-editor input[type="text"], -#layout-editor input[type="number"], -#layout-editor input[type="search"], -#layout-editor textarea, -#layout-editor select { - background-color: var(--color-surface) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -.editor-modal label, -.editor-modal .form-label, -.editor-modal legend, -.editor-modal .control-label, -#layout-editor label, -#layout-editor .form-label, -#layout-editor legend, -#layout-editor .control-label { - color: var(--editor-text) !important; -} - -/* --- 25. Comprehensive form element overrides for all contexts ----------- */ - -/* ANY form-group label anywhere */ -body #properties-panel .form-group > label:first-child, -body .editor-modal .form-group > label:first-child, -body #layout-editor .form-group > label:first-child, -body .container-designer .form-group > label:first-child { - color: var(--editor-text) !important; -} - -/* ANY select dropdown (native and enhanced) */ -body #properties-panel select, -body #properties-panel .select2-container, -body .editor-modal select, -body .editor-modal .select2-container, -body #layout-editor select, -body #layout-editor .select2-container { - color: var(--editor-text) !important; -} - -/* Specific override for properties panel form rows */ -#properties-panel .form-row, -#properties-panel .row { - color: var(--editor-text) !important; -} - -/* Form group text */ -#properties-panel .form-group, -.editor-modal .form-group, -#layout-editor .form-group { - color: var(--editor-text) !important; -} - -/* Input placeholders */ -.editor-modal input::placeholder, -#properties-panel input::placeholder, -#layout-editor input::placeholder, -.editor-modal textarea::placeholder, -#properties-panel textarea::placeholder, -#layout-editor textarea::placeholder { - color: var(--editor-text-secondary) !important; - opacity: 0.7; -} - -/* Help text and descriptions */ -.editor-modal .help-block, -.editor-modal small, -.editor-modal .form-text, -.editor-modal .invalid-feedback, -.editor-modal .valid-feedback, -#properties-panel .help-block, -#properties-panel small, -#properties-panel .form-text, -#properties-panel .invalid-feedback, -#properties-panel .valid-feedback, -#layout-editor .help-block, -#layout-editor small, -#layout-editor .form-text, -#layout-editor .invalid-feedback, -#layout-editor .valid-feedback { - color: var(--editor-text-secondary) !important; -} - -/* Form check labels (checkboxes, radios) */ -.editor-modal .form-check-label, -.editor-modal .form-check input ~ label, -#properties-panel .form-check-label, -#properties-panel .form-check input ~ label, -#layout-editor .form-check-label, -#layout-editor .form-check input ~ label { - color: var(--editor-text) !important; -} - -/* Input addon text */ -.editor-modal .input-group-text, -.editor-modal .input-group-addon, -#properties-panel .input-group-text, -#properties-panel .input-group-addon, -#layout-editor .input-group-text, -#layout-editor .input-group-addon { - background-color: var(--color-surface-elevated) !important; - color: var(--editor-text) !important; - border-color: var(--editor-border) !important; -} - -/* Button in form context */ -.editor-modal button, -.editor-modal .btn, -#properties-panel button, -#properties-panel .btn, -#layout-editor button, -#layout-editor .btn { - color: var(--editor-text) !important; -} - /* --- 14a. No-nav pages (layout designer, etc.) – remove sidebar spacing -- */ #content-wrapper.no-nav { margin-left: 0 !important; @@ -6758,138 +5733,6 @@ small { border-color: var(--color-primary) !important; } -/* --- Editor properties-panel tabs — override global .nav-tabs rules --- - Uses extremely high specificity to beat compiled CMS bundle styles. - The bundle uses `.form-container .nav>li>a { background: #fff !important }` - so we must beat that with ID-based selectors + !important. - ----------------------------------------------------------------------- */ - -/* Tab bar container */ -#properties-panel .nav, -#properties-panel .nav-tabs, -#properties-panel .nav-pills, -.properties-panel-container #properties-panel .nav, -.properties-panel-container #properties-panel .nav-tabs { - background-color: var(--editor-header-bg) !important; - border-bottom: 1px solid var(--editor-border) !important; - border-top: none !important; - border-left: none !important; - border-right: none !important; -} - -/* All tab links — covers both .nav-link and .nav>li>a patterns */ -#properties-panel .form-container .nav > li > a, -#properties-panel .nav > li > a, -#properties-panel .nav .nav-link, -#properties-panel .nav-tabs .nav-link, -#properties-panel .nav-tabs .nav-item .nav-link, -#properties-panel .nav-tabs .nav-item > a, -.properties-panel-container #properties-panel .form-container .nav > li > a, -.properties-panel-container #properties-panel .nav .nav-link, -.properties-panel-container #properties-panel .nav-tabs .nav-link { - color: var(--editor-text-secondary) !important; - background-color: var(--editor-header-bg) !important; - background-image: none !important; - background: var(--editor-header-bg) !important; - border: none !important; - border-color: transparent !important; - border-radius: 0 !important; - box-shadow: none !important; - opacity: 1 !important; - outline: none !important; -} - -/* Tab links hover */ -#properties-panel .form-container .nav > li > a:hover, -#properties-panel .nav > li > a:hover, -#properties-panel .nav .nav-link:hover, -#properties-panel .nav-tabs .nav-link:hover, -#properties-panel .nav-tabs .nav-item .nav-link:hover, -#properties-panel .nav-tabs .nav-item > a:hover, -.properties-panel-container #properties-panel .form-container .nav > li > a:hover, -.properties-panel-container #properties-panel .nav .nav-link:hover, -.properties-panel-container #properties-panel .nav-tabs .nav-link:hover { - color: var(--editor-text) !important; - background-color: var(--editor-header-bg) !important; - background: var(--editor-header-bg) !important; - border: none !important; - border-color: transparent !important; -} - -/* Active tab */ -#properties-panel .form-container .nav > li > a.active, -#properties-panel .form-container .nav > li > a.active:hover, -#properties-panel .nav > li > a.active, -#properties-panel .nav > li > a.active:hover, -#properties-panel .nav .nav-link.active, -#properties-panel .nav .nav-link.active:hover, -#properties-panel .nav-tabs .nav-link.active, -#properties-panel .nav-tabs .nav-link.active:hover, -#properties-panel .nav-tabs .nav-item .nav-link.active, -#properties-panel .nav-tabs .nav-item > a.active, -.properties-panel-container #properties-panel .form-container .nav > li > a.active, -.properties-panel-container #properties-panel .form-container .nav > li > a.active:hover, -.properties-panel-container #properties-panel .nav .nav-link.active, -.properties-panel-container #properties-panel .nav-tabs .nav-link.active { - color: var(--color-primary) !important; - background-color: var(--editor-header-bg) !important; - background: var(--editor-header-bg) !important; - border: none !important; - border-color: transparent !important; - border-bottom: 2px solid var(--color-primary) !important; -} - -/* Icons inside tab links (e.g. positioning tab) */ -#properties-panel .nav-tabs .nav-link i, -#properties-panel .nav .nav-link i, -#properties-panel .nav > li > a i, -.properties-panel-container #properties-panel .nav-tabs .nav-link i { - color: inherit !important; -} - -/* Properties panel containers */ -#properties-panel #properties-panel-form-container, -.properties-panel-container #properties-panel #properties-panel-form-container { - background-color: var(--editor-modal-content-bg) !important; - background: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; -} - -#properties-panel .form-container, -#properties-panel #properties-panel-form-container .form-container, -.properties-panel-container #properties-panel .form-container { - background-color: var(--editor-modal-content-bg) !important; - background: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; -} - -#properties-panel .form-title, -.properties-panel-container #properties-panel .form-title { - color: var(--editor-text) !important; - background-color: var(--editor-header-bg) !important; -} - -#properties-panel .button-container, -.properties-panel-container #properties-panel .button-container { - background-color: var(--editor-header-bg) !important; -} - -#properties-panel .tab-content, -#properties-panel #properties-panel-form-container .tab-content, -.properties-panel-container #properties-panel .tab-content { - background-color: var(--editor-modal-content-bg) !important; - background: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; -} - -#properties-panel .tab-pane, -#properties-panel #properties-panel-form-container .tab-pane, -.properties-panel-container #properties-panel .tab-pane { - background-color: var(--editor-modal-content-bg) !important; - background: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; -} - /* Cards */ .card { background-color: var(--color-surface) !important; @@ -8625,593 +7468,3 @@ select.form-control, grid-template-columns: 1fr; } } -/* ============================================================================ - LAYOUT DESIGNER — UX ENHANCEMENTS - Phase 4: Skeleton loading screen + canvas dot-grid - ============================================================================ */ - -/* --- Skeleton loading screen --------------------------------------------- */ - -#ots-editor-skeleton { - position: fixed; - inset: 0; - z-index: 9998; - display: flex; - flex-direction: column; - background: var(--editor-body-bg); - pointer-events: none; - transition: opacity 0.35s ease; -} - -#ots-editor-skeleton.ots-skeleton-done { - opacity: 0; -} - -/* Top bar strip */ -.ots-skeleton-topbar { - height: 46px; - background: var(--editor-modal-header-bg); - border-bottom: 1px solid var(--editor-border); - flex-shrink: 0; - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 16px; -} - -.ots-skeleton-topbar-left, -.ots-skeleton-topbar-right { - display: flex; - align-items: center; - gap: 10px; -} - -/* Body row */ -.ots-skeleton-body { - flex: 1; - display: flex; - overflow: hidden; - min-height: 0; -} - -/* Left icon rail */ -.ots-skeleton-left-rail { - width: 52px; - background: var(--editor-toolbar-bg); - border-right: 1px solid var(--editor-border); - flex-shrink: 0; - display: flex; - flex-direction: column; - align-items: center; - padding: 16px 0; - gap: 14px; -} - -.ots-skeleton-icon-dot { - width: 28px; - height: 28px; - border-radius: 6px; - background: rgba(255,255,255,0.08); - animation: ots-shimmer 1.7s ease-in-out infinite; -} - -/* Canvas area with dot-grid */ -.ots-skeleton-canvas-area { - flex: 1; - background: var(--editor-body-bg); - background-image: radial-gradient(circle, var(--editor-border) 1px, transparent 1px); - background-size: 24px 24px; - display: flex; - align-items: center; - justify-content: center; -} - -/* The layout preview placeholder box */ -.ots-skeleton-canvas-box { - width: 62%; - max-width: 680px; - aspect-ratio: 16 / 9; - background: var(--editor-widget-bg); - border: 1px solid var(--editor-border); - border-radius: 4px; - animation: ots-shimmer 1.7s ease-in-out infinite; -} - -/* Properties panel */ -.ots-skeleton-props { - width: 272px; - min-width: 272px; - background: var(--editor-properties-bg); - border-left: 1px solid var(--editor-border); - padding: 20px 16px; - display: flex; - flex-direction: column; - gap: 20px; - flex-shrink: 0; - overflow: hidden; -} - -.ots-skeleton-prop-group { - display: flex; - flex-direction: column; - gap: 7px; -} - -.ots-skeleton-prop-label { - height: 10px; - width: 55%; - background: var(--editor-border); - border-radius: 3px; - animation: ots-shimmer 1.7s ease-in-out infinite; -} - -.ots-skeleton-prop-field { - height: 34px; - background: var(--editor-border); - border-radius: 5px; - animation: ots-shimmer 1.7s ease-in-out infinite 0.08s; -} - -.ots-skeleton-prop-swatch-row { - display: flex; - align-items: center; - gap: 8px; -} - -.ots-skeleton-prop-swatch { - width: 34px; - height: 34px; - min-width: 34px; - background: var(--editor-border); - border-radius: 5px; - animation: ots-shimmer 1.7s ease-in-out infinite; -} - -/* Bottom bar */ -.ots-skeleton-bottombar { - height: 44px; - background: var(--editor-footer-controls-bg); - border-top: 1px solid var(--editor-border); - flex-shrink: 0; - display: flex; - align-items: center; - padding: 0 16px; -} - -/* Inline chip (for topbar breadcrumb placeholders) */ -.ots-skeleton-chip { - height: 16px; - width: 100px; - background: rgba(255,255,255,0.10); - border-radius: 4px; - animation: ots-shimmer 1.7s ease-in-out infinite 0.12s; -} - -/* Shimmer keyframe */ -@keyframes ots-shimmer { - 0%, 100% { opacity: 0.35; } - 50% { opacity: 0.70; } -} - -/* --- Canvas dead-space dot-grid pattern ---------------------------------- */ - -/* Applied to the area that surrounds the actual layout preview viewport */ -#layout-editor #layout-viewer, -#layout-editor .main-panel-wrapper { - background-image: radial-gradient(circle, var(--editor-border) 1px, transparent 1px) !important; - background-size: 24px 24px !important; -} - - -/* ============================================================================ - LAYOUT DESIGNER — UX ENHANCEMENTS - Phase 5: Resize handles, add-region button, micro-transitions - ============================================================================ */ - -/* --- Region resize handles (jQuery UI) ----------------------------------- */ - -#layout-editor .designer-region .ui-resizable-handle, -#layout-editor .selected .ui-resizable-handle { - background-color: var(--color-primary) !important; - border-radius: 2px !important; - opacity: 0.45; - transition: opacity 0.15s ease !important; - z-index: 10 !important; -} - -#layout-editor .designer-region:hover .ui-resizable-handle, -#layout-editor .designer-region.selected .ui-resizable-handle { - opacity: 0.9 !important; -} - -#layout-editor .ui-resizable-se { cursor: se-resize !important; } -#layout-editor .ui-resizable-sw { cursor: sw-resize !important; } -#layout-editor .ui-resizable-ne { cursor: ne-resize !important; } -#layout-editor .ui-resizable-nw { cursor: nw-resize !important; } -#layout-editor .ui-resizable-n, -#layout-editor .ui-resizable-s { cursor: n-resize !important; } -#layout-editor .ui-resizable-e, -#layout-editor .ui-resizable-w { cursor: e-resize !important; } - -/* Corner handles: slightly larger for easier grab */ -#layout-editor .ui-resizable-se, -#layout-editor .ui-resizable-sw, -#layout-editor .ui-resizable-ne, -#layout-editor .ui-resizable-nw { - width: 10px !important; - height: 10px !important; - border-radius: 3px !important; -} - -/* --- Canvas "+" add-region button ---------------------------------------- */ - -/* Xibo renders a prominent add button at the top of the viewer panel */ -#layout-editor .add-btn, -#layout-editor .viewer-add-btn, -#layout-editor .button-add-new, -#layout-editor [class*="add-region-btn"] { - background-color: var(--color-primary) !important; - color: #ffffff !important; - border-radius: 50% !important; - width: 36px !important; - height: 36px !important; - min-width: 36px !important; - display: inline-flex !important; - align-items: center !important; - justify-content: center !important; - border: none !important; - box-shadow: 0 3px 10px rgba(var(--ots-primary-rgb), 0.45) !important; - transition: transform 0.15s ease, box-shadow 0.15s ease !important; - padding: 0 !important; -} - -#layout-editor .add-btn:hover, -#layout-editor .viewer-add-btn:hover, -#layout-editor .button-add-new:hover, -#layout-editor [class*="add-region-btn"]:hover { - transform: scale(1.12) !important; - box-shadow: 0 5px 16px rgba(var(--ots-primary-rgb), 0.65) !important; -} - -/* --- Micro-transitions for key interactive elements ---------------------- */ - -/* Timeline widget cards */ -#playlist-timeline .playlist-widget { - transition: background-color 0.14s ease, outline-color 0.14s ease !important; -} - -/* Toolbar card rows */ -.editor-toolbar .toolbar-card, -.editor-toolbar nav tr.toolbar-card { - transition: background-color 0.14s ease, color 0.14s ease !important; -} - -/* Toolbar nav buttons */ -.editor-toolbar nav .toolbar-menu-btn { - transition: background-color 0.14s ease, color 0.14s ease !important; -} - -/* Properties panel nav tabs */ -.properties-panel-container .nav-link, -#properties-panel .nav .nav-link { - transition: color 0.14s ease, border-bottom-color 0.14s ease, - background-color 0.14s ease !important; -} - -/* Bottom-bar buttons */ -.editor-bottom-bar nav .btn, -.editor-bottom-bar .viewer-navbar-info .btn { - transition: color 0.14s ease, background-color 0.14s ease !important; -} - -/* Context menu items */ -.context-menu-btn { - transition: background-color 0.12s ease, color 0.12s ease !important; -} - -/* Properties panel action buttons */ -#properties-panel .btn { - transition: background-color 0.14s ease, color 0.14s ease, - border-color 0.14s ease, box-shadow 0.14s ease !important; -} - - -/* ============================================================================ - LAYOUT DESIGNER — UX ENHANCEMENTS - Phase 6: Custom scrollbars, focus rings, empty timeline state - ============================================================================ */ - -/* --- Custom scrollbars (all editor scrollable areas) --------------------- */ - -/* Firefox */ -#properties-panel, -#properties-panel-form-container, -.editor-toolbar .toolbar-pane, -.toolbar-menu-content, -#playlist-editor, -#layout-editor { - scrollbar-width: thin; - scrollbar-color: var(--editor-scrollbar-thumb) var(--editor-scrollbar-track); -} - -/* WebKit */ -#properties-panel ::-webkit-scrollbar, -#properties-panel-form-container ::-webkit-scrollbar, -.editor-toolbar .toolbar-pane ::-webkit-scrollbar, -.toolbar-menu-content ::-webkit-scrollbar { - width: 5px; - height: 5px; -} - -#properties-panel ::-webkit-scrollbar-track, -#properties-panel-form-container ::-webkit-scrollbar-track, -.editor-toolbar .toolbar-pane ::-webkit-scrollbar-track, -.toolbar-menu-content ::-webkit-scrollbar-track { - background: var(--editor-scrollbar-track); - border-radius: 3px; -} - -#properties-panel ::-webkit-scrollbar-thumb, -#properties-panel-form-container ::-webkit-scrollbar-thumb, -.editor-toolbar .toolbar-pane ::-webkit-scrollbar-thumb, -.toolbar-menu-content ::-webkit-scrollbar-thumb { - background: var(--editor-scrollbar-thumb); - border-radius: 3px; -} - -#properties-panel ::-webkit-scrollbar-thumb:hover, -#properties-panel-form-container ::-webkit-scrollbar-thumb:hover, -.editor-toolbar .toolbar-pane ::-webkit-scrollbar-thumb:hover, -.toolbar-menu-content ::-webkit-scrollbar-thumb:hover { - background: var(--editor-scrollbar-thumb-hover); -} - -/* --- Accessible focus ring indicators ------------------------------------ */ - -#layout-editor *:focus-visible, -#playlist-editor *:focus-visible, -.editor-modal *:focus-visible, -#properties-panel *:focus-visible { - outline: 2px solid var(--color-primary) !important; - outline-offset: 2px !important; - box-shadow: 0 0 0 4px rgba(var(--ots-primary-rgb), 0.15) !important; -} - -/* --- Empty timeline state (no regions yet) -------------------------------- */ - -/* Xibo renders an empty-state message inside the timeline container */ -#playlist-timeline .empty-timeline, -#playlist-timeline .timeline-empty-message, -#playlist-timeline .empty-message, -#layout-editor .timeline-no-content, -#layout-editor .empty-canvas-hint { - display: flex !important; - flex-direction: column !important; - align-items: center !important; - justify-content: center !important; - min-height: 72px !important; - color: var(--editor-text-secondary) !important; - font-size: 13px !important; - text-align: center !important; - padding: 12px 20px !important; - border: 2px dashed var(--editor-border) !important; - border-radius: 8px !important; - margin: 10px !important; - cursor: pointer !important; - transition: border-color 0.15s ease, color 0.15s ease !important; -} - -#playlist-timeline .empty-timeline:hover, -#playlist-timeline .timeline-empty-message:hover, -#playlist-timeline .empty-message:hover, -#layout-editor .timeline-no-content:hover, -#layout-editor .empty-canvas-hint:hover { - border-color: var(--color-primary) !important; - color: var(--color-primary) !important; -} - - -/* ============================================================================ - LAYOUT DESIGNER — UX ENHANCEMENTS - Phase 7: Interactive Mode toggle, bottom bar refinement - ============================================================================ */ - -/* --- Interactive Mode toggle button -------------------------------------- */ - -/* Xibo renders this as a button in .editor-top-bar; it shows - "Interactive Mode OFF/ON". We can't know the exact dynamic class but we can - style all top-bar outline/light buttons that aren't the back-button. */ - -body.editor-opened .editor-top-bar .btn:not(.back-button):not(.btn-primary) { - border-radius: 6px !important; - font-size: 12px !important; - transition: background-color 0.14s ease, border-color 0.14s ease, - color 0.14s ease !important; -} - -/* When toggled "ON" — Xibo adds .active or .btn-success */ -body.editor-opened .editor-top-bar .btn.active:not(.back-button), -body.editor-opened .editor-top-bar .btn-success:not(.back-button) { - background-color: var(--color-primary) !important; - border-color: var(--color-primary) !important; - color: #ffffff !important; -} - -/* The layout name / info text */ -body.editor-opened .editor-top-bar .layout-info, -body.editor-opened .editor-top-bar .navbar-text { - font-size: 13px !important; - font-weight: 500 !important; - color: var(--editor-text) !important; - letter-spacing: 0.01em !important; -} - -/* --- Bottom bar refinement ----------------------------------------------- */ - -/* Slim down the orange info strip slightly and add a top border accent */ -.editor-bottom-bar .viewer-navbar-info { - font-size: 12px !important; - letter-spacing: 0.015em !important; - border-top: 2px solid rgba(255,255,255,0.15) !important; -} - -/* Slightly tighter padding on bottom-bar nav */ -.editor-bottom-bar nav { - min-height: 40px !important; -} - -.editor-bottom-bar nav .btn { - font-size: 12px !important; - padding: 4px 10px !important; - border-radius: 4px !important; -} - -/* Active/selected button in the bottom bar */ -.editor-bottom-bar nav .btn.active, -.editor-bottom-bar nav .btn:focus { - background-color: rgba(var(--ots-primary-rgb), 0.12) !important; - color: var(--color-primary) !important; -} - -/* Preview "play" button accent */ -.editor-bottom-bar .btn-play-preview, -.editor-bottom-bar [class*="play-preview"] { - background-color: var(--color-primary) !important; - color: #ffffff !important; - border-radius: 50% !important; - width: 30px !important; - height: 30px !important; - padding: 0 !important; - display: inline-flex !important; - align-items: center !important; - justify-content: center !important; - transition: transform 0.14s ease, box-shadow 0.14s ease !important; -} - -.editor-bottom-bar .btn-play-preview:hover, -.editor-bottom-bar [class*="play-preview"]:hover { - transform: scale(1.1) !important; - box-shadow: 0 3px 10px rgba(var(--ots-primary-rgb), 0.5) !important; -} - - -/* ============================================================================ - LAYOUT DESIGNER — UX ENHANCEMENTS - Phase 8: Compact embed mode + light-mode propagation fix - ============================================================================ */ - -/* --- Compact mode for narrow embed viewports ----------------------------- */ - -/* At 1280px the properties panel starts crowding the canvas */ -@media (max-width: 1280px) { - .ots-embed-mode #properties-panel, - .ots-embed-mode .properties-panel-container { - min-width: 230px !important; - max-width: 230px !important; - } -} - -@media (max-width: 1100px) { - .ots-embed-mode #properties-panel, - .ots-embed-mode .properties-panel-container { - min-width: 200px !important; - max-width: 200px !important; - font-size: 12px !important; - } - - .ots-embed-mode #properties-panel .form-control, - .ots-embed-mode .properties-panel-container .form-control { - height: 30px !important; - font-size: 12px !important; - } - - .ots-embed-mode #properties-panel label, - .ots-embed-mode .properties-panel-container label { - font-size: 11px !important; - margin-bottom: 3px !important; - } -} - -/* --- Light-mode propagation: body.ots-light-mode editor tokens ----------- */ - -/* The theme applies ots-light-mode to both and . - CSS custom properties cascade from html.ots-light-mode already, but - we reinforce key structural backgrounds here to beat Xibo's bundled CSS. */ - -html.ots-light-mode #layout-editor, -html.ots-light-mode #playlist-editor, -html.ots-light-mode .layout-editor, -html.ots-light-mode .playlist-editor { - background-color: var(--editor-body-bg) !important; - color: var(--editor-text) !important; -} - -html.ots-light-mode #layout-editor #layout-viewer, -html.ots-light-mode #layout-editor .main-panel-wrapper { - background-color: var(--editor-left-margin-bg) !important; -} - -html.ots-light-mode .editor-toolbar, -html.ots-light-mode .editor-toolbar nav { - background-color: var(--editor-toolbar-bg) !important; - color: var(--editor-toolbar-text) !important; -} - -html.ots-light-mode .editor-top-bar nav, -html.ots-light-mode body.editor-opened .header-side { - background-color: var(--editor-modal-header-bg) !important; - color: var(--editor-text) !important; - border-bottom: 1px solid var(--editor-border) !important; -} - -html.ots-light-mode .editor-bottom-bar nav { - background-color: var(--editor-modal-content-bg) !important; - color: var(--editor-text) !important; - border-top: 1px solid var(--editor-border) !important; -} - -html.ots-light-mode #playlist-editor .left-margin { - background-color: var(--editor-left-margin-bg) !important; -} - -html.ots-light-mode #playlist-editor .time-grid { - color: var(--editor-timegrid-text) !important; -} - -html.ots-light-mode #playlist-editor .time-grid .time-grid-step { - background-color: var(--editor-timegrid-line) !important; -} - -html.ots-light-mode #playlist-timeline { - background-color: var(--editor-timeline-bg) !important; -} - -html.ots-light-mode #playlist-timeline .playlist-widget { - background-color: var(--editor-widget-bg) !important; - color: var(--editor-widget-text) !important; - outline-color: var(--editor-widget-border) !important; -} - -html.ots-light-mode .properties-panel-container, -html.ots-light-mode #properties-panel, -html.ots-light-mode #properties-panel-form-container { - background-color: var(--editor-properties-bg) !important; - color: var(--editor-text) !important; -} - -/* Panel header tabs stay distinguishable in light mode */ -html.ots-light-mode #properties-panel .nav, -html.ots-light-mode #properties-panel .nav-tabs { - background-color: var(--editor-header-bg) !important; - border-bottom-color: var(--editor-border) !important; -} - -/* Skeleton adapts to light mode too (variables are already resolved) */ -html.ots-light-mode .ots-skeleton-icon-dot { - background: rgba(0,0,0,0.06); -} - -html.ots-light-mode .ots-skeleton-chip { - background: rgba(0,0,0,0.07); -} - diff --git a/ots-signs/css/override.css.bak b/ots-signs/css/override.css.bak new file mode 100644 index 0000000..8ef251c --- /dev/null +++ b/ots-signs/css/override.css.bak @@ -0,0 +1,9217 @@ +/* ============================================================================ + XIBO CMS MODERN THEME - OTS Signs + Dark Mode Override - Component Styling + ============================================================================ */ + +/* Force dark mode */ +:root { + --color-primary: #e87800; + --ots-primary-rgb: 232, 120, 0; + --color-primary-dark: #c46500; + --color-primary-light: #ff9e20; + --color-primary-lighter: #fff0d9; + --color-success: #10b981; + --color-warning: #f59e0b; + --color-danger: #ef4444; + --color-info: #0ea5e9; + + --color-background: #0f172a; + --color-surface: #1e293b; + --color-surface-elevated: #334155; + --color-border: #475569; + --color-border-light: #1e293b; + --color-text-primary: #ffffff; + --color-text-secondary: #f1f5f9; + --color-text-tertiary: #e2e8f0; + --color-text-inverse: #ffffff; + --color-on-primary: #ffffff; + + --ots-sidebar-bg: #08132a; + --ots-sidebar-header-bg: #08132a; + --ots-sidebar-border: rgba(255, 255, 255, 0.08); + --ots-sidebar-link: #f9fbff; + --ots-sidebar-link-hover-bg: rgba(255, 255, 255, 0.08); + --ots-sidebar-link-hover-text: #ffffff; + --ots-sidebar-active-bg: rgba(255, 255, 255, 0.06); + --ots-sidebar-active-text: #ffffff; + --ots-sidebar-active-shadow: 0 8px 18px rgba(15, 23, 42, 0.25); + --ots-sidebar-muted-text: #8ea4c7; + --ots-sidebar-group-bg: rgba(255, 255, 255, 0.03); + --ots-sidebar-group-hover-bg: rgba(255, 255, 255, 0.1); + --ots-sidebar-submenu-bg: rgba(15, 23, 42, 0.6); + --ots-sidebar-submenu-border: rgba(255, 255, 255, 0.9); + --ots-sidebar-submenu-hover-bg: rgba(255, 255, 255, 0.1); + --ots-sidebar-button-bg: rgba(255, 255, 255, 0.08); + --ots-sidebar-button-bg-hover: rgba(255, 255, 255, 0.16); + --ots-sidebar-button-text: #d7e2f8; + --ots-sidebar-collapsed-item-bg: rgba(255, 255, 255, 0.08); + --ots-sidebar-collapsed-item-hover-bg: rgba(255, 255, 255, 0.16); + --ots-sidebar-width: 256px; + --ots-sidebar-collapsed-width: 64px; + --ots-sidebar-header-height: 64px; + --ots-sidebar-item-radius: 8px; + --ots-sidebar-item-height: 44px; + --ots-sidebar-item-padding-x: 12px; + --ots-sidebar-content-gap: 12px; + + /* ── DataTable component tokens ── */ + --dt-header-bg: rgba(15, 23, 42, 0.92); + --dt-header-text: #94a3b8; + --dt-header-border: rgba(148, 163, 184, 0.18); + --dt-row-bg: rgba(15, 23, 42, 0.7); + --dt-row-alt-bg: rgba(30, 41, 59, 0.75); + --dt-row-hover-bg: rgba(var(--ots-primary-rgb), 0.10); + --dt-row-selected-bg: rgba(16, 185, 129, 0.20); + --dt-border: rgba(148, 163, 184, 0.12); + --dt-empty-icon-color: #475569; + --dt-empty-text-color: #64748b; + + /* ── Pagination tokens ── */ + --dt-page-bg: transparent; + --dt-page-text: #94a3b8; + --dt-page-hover-bg: rgba(var(--ots-primary-rgb), 0.12); + --dt-page-hover-text: var(--color-primary-light); + --dt-page-active-bg: var(--color-primary); + --dt-page-active-text: #ffffff; + --dt-page-disabled-text: #334155; + --dt-page-radius: 8px; + + /* ── Status badge tokens ── */ + --badge-success-bg: rgba(16, 185, 129, 0.15); + --badge-success-text: #34d399; + --badge-warning-bg: rgba(245, 158, 11, 0.15); + --badge-warning-text: #fbbf24; + --badge-danger-bg: rgba(239, 68, 68, 0.15); + --badge-danger-text: #f87171; + --badge-info-bg: rgba(14, 165, 233, 0.15); + --badge-info-text: #38bdf8; + --badge-neutral-bg: rgba(148, 163, 184, 0.12); + --badge-neutral-text: #94a3b8; + + /* ── Dashboard stat tile tokens ── */ + --stat-tile-bg: var(--color-surface); + --stat-tile-border: var(--color-border); + --stat-tile-number-color: var(--color-text-primary); + --stat-tile-label-color: var(--color-text-tertiary); + --stat-tile-icon-color: var(--color-primary); + --stat-tile-hover-border: rgba(var(--ots-primary-rgb), 0.4); + --stat-tile-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + + /* ── FullCalendar override tokens ── */ + --fc-bg: var(--color-surface); + --fc-border: var(--color-border); + --fc-today-bg: rgba(var(--ots-primary-rgb), 0.08); + --fc-event-text: #ffffff; + --fc-toolbar-btn-bg: var(--color-surface-elevated); + --fc-toolbar-btn-text: var(--color-text-primary); + --fc-toolbar-btn-hover-bg: rgba(var(--ots-primary-rgb), 0.12); + --fc-toolbar-btn-active-bg: var(--color-primary); + --fc-toolbar-btn-active-text: #ffffff; + --fc-day-header-text: var(--color-text-secondary); + --fc-day-number-text: var(--color-text-tertiary); + + /* Editor (playlist / layout timeline) */ + --editor-modal-bg: #1a1a2e; + --editor-modal-content-bg: #1e293b; + --editor-modal-header-bg: #0f172a; + --editor-modal-header-text: #f1f5f9; + + /* Modal pop-ups (Bootstrap / Bootbox) */ + --modal-backdrop-bg: rgba(2, 6, 23, 0.55); + --modal-backdrop-blur: 6px; + --modal-bg: #141c2b; + --modal-border: #2c3a54; + --modal-radius: 12px; + --modal-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04); + --modal-header-bg: #0f172a; + --modal-header-border: #2c3a54; + --modal-header-text: #f1f5f9; + --modal-body-bg: #141c2b; + --modal-body-text: #e2e8f0; + --modal-footer-bg: #0f172a; + --modal-footer-border: #2c3a54; + --modal-close-color: #64748b; + --modal-close-hover: #f1f5f9; + --modal-input-bg: #0b111a; + --modal-input-border: #2c3a54; + --modal-input-text: #e6eefb; + --modal-input-focus-border: #e87800; + --modal-input-focus-ring: rgba(var(--ots-primary-rgb), 0.2); + + --editor-body-bg: #1e293b; + --editor-border: #334155; + --editor-text: #e2e8f0; + --editor-text-secondary: #94a3b8; + --editor-toolbar-bg: #0f172a; + --editor-toolbar-text: #e2e8f0; + --editor-toolbar-pane-bg: #1e293b; + --editor-toolbar-pane-text: #e2e8f0; + --editor-footer-controls-bg: #0f172a; + --editor-footer-info-bg: var(--color-primary); + --editor-footer-text: #f1f5f9; + --editor-widget-bg: #334155; + --editor-widget-border: #475569; + --editor-widget-text: #e2e8f0; + --editor-widget-label-bg: #0f172a; + --editor-widget-label-text: #94a3b8; + --editor-widget-hover-bg: #3b4d6b; + --editor-widget-selected-bg: #166534; + --editor-widget-multi-bg: #c2410c; + --editor-widget-multi-hover-bg: #ea580c; + --editor-left-margin-bg: #0f172a; + --editor-timegrid-line: #475569; + --editor-timegrid-text: #64748b; + --editor-timegrid-overlay: rgba(30, 41, 59, 0.7); + --editor-timeline-bg: rgba(30, 41, 59, 0.65); + --editor-scrollbar-track: #1e293b; + --editor-scrollbar-thumb: #475569; + --editor-scrollbar-thumb-hover: #64748b; + --editor-properties-bg: #1e293b; + --editor-properties-border: #166534; + --editor-header-bg: #0f172a; + --editor-back-btn-bg: #0f172a; + --editor-back-btn-text: var(--color-primary-light); + + color-scheme: dark; +} + +html, +body { + background-color: var(--color-background); + color: var(--color-text-primary); + overflow-x: hidden !important; + max-width: 100vw !important; +} + +/* Minimal mapping so `.dashboard-card` inherits the visual treatment used by widgets/panels. + This allows collapsing one level of DOM without visual regressions. */ +/* Consolidated dashboard-card styling (now in CONSOLIDATED CARD/PANEL/WIDGET section) */ + + +/* Floating menus that are moved to body to escape overflowed containers */ +.ots-floating-menu { + border-radius: 8px; + box-shadow: 0 8px 24px rgba(2,6,23,0.6); + background-color: var(--color-surface); + border: 1px solid var(--color-border); + overflow: visible !important; + position: fixed !important; + transform: none !important; +} + +/* Ensure menus that are intentionally floated into `body` are visible + (this targets only menus moved by our JS: `.ots-floating-menu` or + `.dropdown-menu` marked with `data-ots-floating="1`). This avoids + forcing visibility for all dropdowns. */ +.ots-floating-menu, +.dropdown-menu[data-ots-floating="1"] { + display: block !important; + visibility: visible !important; + opacity: 1 !important; +} + +/* Elevated z-index for menus so they render above other panels */ +.ots-floating-menu, .dropdown-menu { + z-index: 99999 !important; +} + +/* Limit aggressive floating/menu overrides to explicit floating menus only. + Avoid forcing `.dropdown-menu` to be `display:block`/`visibility:visible` so + native dropdown behaviour (open/close) is preserved. */ +.ots-notif-menu, +.context-menu, +.row-menu, +.rowMenu, +.menu-popover, +.dataTables_buttons .dropdown-menu, +.ots-floating-menu { + position: fixed !important; + z-index: 2147483647 !important; + transform: none !important; + will-change: auto !important; + pointer-events: auto !important; +} + +/* User menu positioning is handled by floatMenu() which adds .ots-floating-menu. + Only apply fixed positioning when the menu is actively floating. */ +.ots-user-menu.ots-floating-menu { + position: fixed !important; + z-index: 2147483647 !important; + transform: none !important; + will-change: auto !important; + pointer-events: auto !important; +} + +/* The rowMenu th is the empty header for the per-row action dropdown. + Keep it in flow so column count matches tbody, but make it minimal. + The matching td (last-child) holds the action button and must stay visible. + NOTE: No background set here — inherits from .ots-table-card .table thead th rules. */ +th.rowMenu { + width: 40px !important; + min-width: 40px !important; + max-width: 40px !important; + padding: 4px !important; + text-align: center !important; + box-sizing: border-box !important; + border: none !important; +} + +/* Style the action-button td to match the header width */ +table:has(th.rowMenu) > tbody > tr > td:last-child { + width: 40px !important; + min-width: 40px !important; + max-width: 40px !important; + padding: 4px !important; + text-align: center !important; + box-sizing: border-box !important; + overflow: visible !important; +} + +/* Ensure floating menu children aren't clipped (scoped to floated menus only) */ +.ots-floating-menu li, +.ots-floating-menu > li > a, +.ots-floating-menu > li > span, +.ots-floating-menu ul, +.ots-floating-menu div { + overflow: visible !important; +} + +/* Remove transforms inside floating menus that could create stacking context */ +.ots-floating-menu * { + transform: none !important; +} + +/* Light/dark mode toggle */ +#ots-theme-toggle { + display: flex !important; + align-items: center; + gap: 8px; + cursor: pointer; +} + +#ots-theme-toggle:hover { + background-color: rgba(var(--ots-primary-rgb), 0.1) !important; +} + +/* Light mode styles (applied when .ots-light-mode is on html or body) */ +html.ots-light-mode, +body.ots-light-mode { + --color-primary: #e87800; + --ots-primary-rgb: 232, 120, 0; + --color-primary-dark: #c46500; + --color-primary-light: #ff9e20; + --color-primary-lighter: #fff0d9; + --color-success: #059669; + --color-warning: #d97706; + --color-danger: #dc2626; + --color-info: #0284c7; + + --color-background: #f8fafc; + --color-surface: #ffffff; + --color-surface-elevated: #f1f5f9; + --color-border: #e2e8f0; + --color-border-light: #f1f5f9; + --color-text-primary: #0f172a; + --color-text-secondary: #334155; + --color-text-tertiary: #475569; + --color-text-inverse: #0f172a; + --color-on-primary: #ffffff; + + /* OTS core tokens — light mode overrides */ + --ots-bg: #f8fafc; + --ots-surface: #ffffff; + --ots-surface-2: #f1f5f9; + --ots-surface-3: #e2e8f0; + --ots-border: #e2e8f0; + --ots-border-soft: #f1f5f9; + --ots-text: #0f172a; + --ots-text-muted: #475569; + --ots-text-faint: #64748b; + --ots-primary: #e87800; + --ots-primary-2: #c46500; + --ots-success: #059669; + --ots-warning: #d97706; + --ots-danger: #dc2626; + --ots-info: #0284c7; + --ots-shadow-lg: 0 14px 30px rgba(15, 23, 42, 0.12); + --ots-shadow-md: 0 8px 18px rgba(15, 23, 42, 0.08); + --ots-shadow-sm: 0 3px 8px rgba(15, 23, 42, 0.06); + + --ots-sidebar-bg: #f1f5f9; + --ots-sidebar-header-bg: #f1f5f9; + --ots-sidebar-border: #e2e8f0; + --ots-sidebar-link: #334155; + --ots-sidebar-link-hover-bg: rgba(var(--ots-primary-rgb), 0.08); + --ots-sidebar-link-hover-text: #0f172a; + --ots-sidebar-active-bg: #ffffff; + --ots-sidebar-active-text: #0f172a; + --ots-sidebar-active-shadow: 0 8px 18px rgba(15, 23, 42, 0.12); + --ots-sidebar-muted-text: #64748b; + --ots-sidebar-group-bg: rgba(0, 0, 0, 0.03); + --ots-sidebar-group-hover-bg: rgba(0, 0, 0, 0.06); + --ots-sidebar-submenu-bg: rgba(0, 0, 0, 0.04); + --ots-sidebar-submenu-border: #cbd5e1; + --ots-sidebar-submenu-hover-bg: rgba(0, 0, 0, 0.08); + --ots-sidebar-button-bg: rgba(0, 0, 0, 0.04); + --ots-sidebar-button-bg-hover: rgba(0, 0, 0, 0.08); + --ots-sidebar-button-text: #334155; + --ots-sidebar-collapsed-item-bg: rgba(0, 0, 0, 0.04); + --ots-sidebar-collapsed-item-hover-bg: rgba(0, 0, 0, 0.08); + --ots-sidebar-width: 256px; + --ots-sidebar-collapsed-width: 64px; + --ots-sidebar-header-height: 64px; + --ots-sidebar-item-radius: 8px; + --ots-sidebar-item-height: 44px; + --ots-sidebar-item-padding-x: 12px; + + /* ── DataTable component tokens — light mode ── */ + --dt-header-bg: #f1f5f9; + --dt-header-text: #475569; + --dt-header-border: #e2e8f0; + --dt-row-bg: #ffffff; + --dt-row-alt-bg: #f8fafc; + --dt-row-hover-bg: rgba(var(--ots-primary-rgb), 0.06); + --dt-row-selected-bg: rgba(16, 185, 129, 0.12); + --dt-border: #e2e8f0; + --dt-empty-icon-color: #94a3b8; + --dt-empty-text-color: #64748b; + + /* ── Pagination tokens — light mode ── */ + --dt-page-bg: transparent; + --dt-page-text: #475569; + --dt-page-hover-bg: rgba(var(--ots-primary-rgb), 0.08); + --dt-page-hover-text: var(--color-primary-dark); + --dt-page-active-bg: var(--color-primary); + --dt-page-active-text: #ffffff; + --dt-page-disabled-text: #cbd5e1; + --dt-page-radius: 8px; + + /* ── Status badge tokens — light mode ── */ + --badge-success-bg: rgba(5, 150, 105, 0.10); + --badge-success-text: #059669; + --badge-warning-bg: rgba(217, 119, 6, 0.10); + --badge-warning-text: #b45309; + --badge-danger-bg: rgba(220, 38, 38, 0.10); + --badge-danger-text: #dc2626; + --badge-info-bg: rgba(2, 132, 199, 0.10); + --badge-info-text: #0284c7; + --badge-neutral-bg: rgba(100, 116, 139, 0.08); + --badge-neutral-text: #64748b; + + /* ── Dashboard stat tile tokens — light mode ── */ + --stat-tile-bg: #ffffff; + --stat-tile-border: #e2e8f0; + --stat-tile-number-color: #0f172a; + --stat-tile-label-color: #64748b; + --stat-tile-icon-color: var(--color-primary); + --stat-tile-hover-border: rgba(var(--ots-primary-rgb), 0.35); + --stat-tile-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + + /* ── FullCalendar override tokens — light mode ── */ + --fc-bg: #ffffff; + --fc-border: #e2e8f0; + --fc-today-bg: rgba(var(--ots-primary-rgb), 0.05); + --fc-event-text: #ffffff; + --fc-toolbar-btn-bg: #f1f5f9; + --fc-toolbar-btn-text: #334155; + --fc-toolbar-btn-hover-bg: rgba(var(--ots-primary-rgb), 0.08); + --fc-toolbar-btn-active-bg: var(--color-primary); + --fc-toolbar-btn-active-text: #ffffff; + --fc-day-header-text: #475569; + --fc-day-number-text: #64748b; + + /* Editor (playlist / layout timeline) */ + --editor-modal-bg: #e8e8e8; + --editor-modal-content-bg: #ffffff; + --editor-modal-header-bg: #f1f5f9; + --editor-modal-header-text: #0f172a; + + /* Modal pop-ups (Bootstrap / Bootbox) — light mode */ + --modal-backdrop-bg: rgba(15, 23, 42, 0.25); + --modal-backdrop-blur: 6px; + --modal-bg: #ffffff; + --modal-border: #e2e8f0; + --modal-radius: 12px; + --modal-shadow: 0 24px 64px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04); + --modal-header-bg: #f8fafc; + --modal-header-border: #e2e8f0; + --modal-header-text: #0f172a; + --modal-body-bg: #ffffff; + --modal-body-text: #334155; + --modal-footer-bg: #f8fafc; + --modal-footer-border: #e2e8f0; + --modal-close-color: #94a3b8; + --modal-close-hover: #0f172a; + --modal-input-bg: #f8fafc; + --modal-input-border: #e2e8f0; + --modal-input-text: #0f172a; + --modal-input-focus-border: #e87800; + --modal-input-focus-ring: rgba(var(--ots-primary-rgb), 0.18); + + --editor-body-bg: #ffffff; + --editor-border: #e2e8f0; + --editor-text: #0f172a; + --editor-text-secondary: #475569; + --editor-toolbar-bg: #1e3a5f; + --editor-toolbar-text: #f1f5f9; + --editor-toolbar-pane-bg: #f3f8ff; + --editor-toolbar-pane-text: #1775f6; + --editor-footer-controls-bg: #0e4694; + --editor-footer-info-bg: var(--color-primary); + --editor-footer-text: #fcfcfc; + --editor-widget-bg: #e8f1fe; + --editor-widget-border: #0e4694; + --editor-widget-text: #121a5e; + --editor-widget-label-bg: transparent; + --editor-widget-label-text: #f3f8ff; + --editor-widget-hover-bg: #d4e4f7; + --editor-widget-selected-bg: #6ec071; + --editor-widget-multi-bg: #eb7857; + --editor-widget-multi-hover-bg: #f09a82; + --editor-left-margin-bg: #e9e9e9; + --editor-timegrid-line: #cecece; + --editor-timegrid-text: #898989; + --editor-timegrid-overlay: rgba(255, 255, 255, 0.7); + --editor-timeline-bg: rgba(255, 255, 255, 0.65); + --editor-scrollbar-track: #f3f8ff; + --editor-scrollbar-thumb: #0e4694; + --editor-scrollbar-thumb-hover: #1264d6; + --editor-properties-bg: #f3f8ff; + --editor-properties-border: #6ec071; + --editor-header-bg: #f1f5f9; + --editor-back-btn-bg: #1e3a5f; + --editor-back-btn-text: #ffffff; + + background-color: var(--color-background); + color: var(--color-text-primary); +} + +body.ots-light-mode .ots-sidebar { + background-color: #f1f5f9 !important; + border-right-color: #e2e8f0 !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .sidebar-group-toggle, +body.ots-light-mode .ots-sidebar.collapsed .sidebar-list > a { + background: rgba(var(--ots-primary-rgb), 0.06) !important; + color: #334155 !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .sidebar-group-toggle:hover, +body.ots-light-mode .ots-sidebar.collapsed .sidebar-list > a:hover { + background: rgba(var(--ots-primary-rgb), 0.12) !important; + color: #0f172a !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .ots-nav-icon { + color: #334155 !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .ots-nav-icon::before, +body.ots-light-mode .ots-sidebar.collapsed .ots-nav-icon.fa::before, +body.ots-light-mode .ots-sidebar.collapsed .fa::before { + color: #334155 !important; +} + +body.ots-light-mode .ots-sidebar li.sidebar-list > a, +body.ots-light-mode .ots-sidebar li.sidebar-main > a { + color: #334155; +} + +body.ots-light-mode .ots-sidebar li.sidebar-list > a:hover { + color: #0f172a; + background-color: rgba(var(--ots-primary-rgb), 0.08); +} + +body.ots-light-mode .sidebar-group-toggle { + color: #334155; + background: rgba(0, 0, 0, 0.03); +} + +body.ots-light-mode .sidebar-group-toggle:hover { + background: rgba(0, 0, 0, 0.06); + color: #0f172a; +} + +body.ots-light-mode .sidebar-group.is-open > .sidebar-group-toggle, +body.ots-light-mode .sidebar-group-toggle[aria-expanded="true"] { + background: #ffffff; + color: #0b1221 !important; +} + +body.ots-light-mode .sidebar-submenu .sidebar-list > a { + background: rgba(0, 0, 0, 0.04); + color: #334155; + border-left-color: #cbd5e1; +} + +/* Light-mode collapsed flyout panel */ +body.ots-light-mode .ots-sidebar.collapsed .sidebar-submenu { + background: #ffffff !important; + border-color: #e2e8f0 !important; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .sidebar-submenu .sidebar-list > a { + color: #334155 !important; + background: transparent !important; + border-left: none !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .sidebar-submenu .sidebar-list > a:hover { + background: rgba(var(--ots-primary-rgb), 0.1) !important; + color: #c46500 !important; +} + +body.ots-light-mode .sidebar-header { + border-bottom-color: #e2e8f0; + background: #f1f5f9; +} + +body.ots-light-mode .ots-topbar { + background-color: transparent; + border-bottom: none; +} + +/* (topbar strip is now hidden — light-mode overrides removed) */ + +body.ots-light-mode .ots-topbar .nav-link { + color: #334155; +} + +body.ots-light-mode .ots-topbar .nav-link:hover { + background-color: rgba(var(--ots-primary-rgb), 0.06); + color: var(--ots-primary); +} + +body.ots-light-mode .dashboard-card, +body.ots-light-mode .content-card { + background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.95)); + border-color: #e2e8f0; +} + +body.ots-light-mode .dropdown-menu, +body.ots-light-mode .dropdown-right { + background-color: #ffffff; + border-color: #e2e8f0; + color: #0f172a; +} + +body.ots-light-mode .dropdown-item { + color: #334155; +} + +body.ots-light-mode .dropdown-item:hover, +body.ots-light-mode .dropdown-menu a:hover { + background-color: rgba(var(--ots-primary-rgb), 0.1); + color: var(--ots-primary); +} + +body.ots-light-mode .ots-content { + background-color: var(--color-background); +} + +/* ============================================================================ + ACCESSIBILITY - Focus indicators for keyboard navigation + ============================================================================ */ + +*:focus-visible { + outline: 2px solid var(--color-primary, #e87800); + outline-offset: 2px; +} + +.btn:focus-visible, +.form-control:focus-visible, +.form-select:focus-visible, +.nav-link:focus-visible { + outline: 2px solid var(--color-primary, #e87800); + outline-offset: 2px; + box-shadow: 0 0 0 3px rgba(var(--ots-primary-rgb), 0.25); +} + +.ots-sidebar li a:focus-visible { + outline: 2px solid var(--color-primary, #e87800); + outline-offset: -2px; + border-radius: 4px; +} + +.sidebar-group-toggle:focus-visible { + outline: 2px solid var(--color-primary, #e87800); + outline-offset: -2px; + border-radius: 4px; +} + +.dropdown-item:focus-visible { + outline: 2px solid var(--color-primary, #e87800); + outline-offset: -2px; + background-color: rgba(var(--ots-primary-rgb), 0.1); +} + +table tbody tr:focus-within { + outline: 1px solid var(--color-primary, #e87800); + outline-offset: -1px; +} + +/* ============================================================================ + THEME ENFORCE - Ensure page backgrounds follow the light/dark CSS variables + This block uses high-specificity rules and !important to override other + theme rules that may hardcode colors so the toggle always reflects + the `--color-*` variables set by `body.ots-light-mode` or :root. + ============================================================================ */ + +html, body, #page-wrapper, .ots-main, .ots-content, .page-content { + background-color: var(--color-background) !important; + color: var(--color-text-primary) !important; +} + +/* Topbar, footer and panels should use surface variables (elevated where appropriate) */ +.ots-topbar, +.ots-footer, +.dashboard-card, +.content-card, +.dropdown-menu, +.dropdown-right, +.modal-content { + background-color: var(--color-surface) !important; + color: var(--color-text-primary) !important; +} + +/* Surface-elevated elements (cards, panels) */ +.card, +.card-body, +.panel, +.panel-body, +.ots-panel, +.modal-body { + background-color: var(--color-surface-elevated) !important; + color: var(--color-text-primary) !important; +} + +/* Ensure sidebar and its components still receive their own overrides */ +.ots-sidebar, +.ots-sidebar .sidebar-header, +.ots-sidebar .sidebar-content { + background-color: var(--ots-sidebar-bg) !important; + color: var(--ots-sidebar-link) !important; +} + + +/* ============================================================================ + SHELL LAYOUT - SIDEBAR + MAIN + ============================================================================ */ + +.ots-shell { + display: flex; + min-height: 100vh; +} + +.ots-sidebar { + position: fixed; + left: 0; + top: 0; + width: max-content !important; + min-width: var(--ots-sidebar-collapsed-width); + max-width: 300px; + height: 100vh; + background-color: var(--ots-sidebar-bg) !important; + padding: 0; + display: flex; + flex-direction: column; + overflow-x: hidden; + overflow-y: auto; + z-index: 1200; + transition: width 200ms ease; +} + +.ots-sidebar .ots-nav-text, +.ots-sidebar .sidebar-submenu .ots-nav-text { + white-space: nowrap; +} + +#sidebar-wrapper { + background-color: var(--ots-sidebar-bg) !important; +} + +.ots-main { + flex: 1; + display: flex; + flex-direction: column; + position: relative; + margin-left: var(--ots-sidebar-actual-width, var(--ots-sidebar-width)) !important; + width: calc(100vw - var(--ots-sidebar-actual-width, var(--ots-sidebar-width))) !important; + max-width: calc(100vw - var(--ots-sidebar-actual-width, var(--ots-sidebar-width))) !important; + transition: margin-left 200ms ease, width 200ms ease, max-width 200ms ease; + overflow-x: hidden !important; + box-sizing: border-box !important; +} + +#page-wrapper { + position: relative; + margin-left: 0 !important; + padding-left: 0 !important; + border: none !important; + box-shadow: none !important; + background-color: var(--color-background) !important; + max-width: 100vw !important; + overflow-x: hidden !important; + box-sizing: border-box !important; +} + +#page-wrapper.active { + padding-left: 0 !important; + margin-left: 0 !important; +} + +/* Sidebar mode only — #page-wrapper is absent in horizontal nav mode */ +#page-wrapper #content-wrapper { + margin-left: var(--ots-sidebar-actual-width, var(--ots-sidebar-width)) !important; + width: calc(100vw - var(--ots-sidebar-actual-width, var(--ots-sidebar-width))) !important; + max-width: calc(100vw - var(--ots-sidebar-actual-width, var(--ots-sidebar-width))) !important; + transition: margin-left 200ms ease, width 200ms ease, max-width 200ms ease; + padding-left: var(--ots-sidebar-content-gap) !important; + padding-right: 16px !important; + border-left: none !important; + box-shadow: none !important; + outline: none !important; + overflow-x: hidden !important; + box-sizing: border-box !important; +} + +/* Base styles for #content-wrapper in all modes */ +#content-wrapper { + border-left: none !important; + box-shadow: none !important; + outline: none !important; + overflow-x: hidden !important; + box-sizing: border-box !important; +} + +/* ============================================================================ + PLAYLIST / LAYOUT EDITOR – themed for dark/light mode + The .editor-modal is AJAX-injected into #editor-container (inside + #page-wrapper > #content-wrapper > .page-content). It borrows Bootstrap's + .modal class for position:fixed but is NOT opened via $.modal(). + All colours use --editor-* CSS variables defined in :root and + body.ots-light-mode so they follow the active theme. + ============================================================================ */ + +/* --- 1. The .editor-modal overlay ---------------------------------------- */ +.editor-modal.modal { + position: fixed !important; + top: 0 !important; + left: 0 !important; + width: 100% !important; + height: 100% !important; + max-width: none !important; + margin: 0 !important; + background-color: var(--editor-modal-bg) !important; + background-image: none !important; + border: none !important; + box-shadow: none !important; + z-index: 1201 !important; + display: block !important; + opacity: 1 !important; + overflow: auto !important; +} + +.editor-modal .editor-modal-dialog { + max-width: 100%; + height: calc(100% - 6rem); + margin: 3rem; +} + +.editor-modal .editor-modal-content { + background-color: var(--editor-modal-content-bg) !important; + color: var(--editor-text) !important; + border: none !important; + height: 100%; +} + +.editor-modal .editor-modal-header { + background-color: var(--editor-modal-header-bg) !important; + color: var(--editor-modal-header-text) !important; + border-bottom: 1px solid var(--editor-border) !important; +} + +.editor-modal .editor-modal-header .modal-header--left, +.editor-modal .editor-modal-title { + color: var(--editor-modal-header-text) !important; +} + +.editor-modal .editor-modal-header .playlist-info-widgets, +.editor-modal .editor-modal-header .playlist-info-duration { + color: var(--editor-modal-header-text) !important; +} + +.editor-modal .editor-modal-close { + color: var(--editor-text-secondary) !important; +} + +.editor-modal .editor-modal-body { + background-color: var(--editor-modal-content-bg) !important; +} + +/* --- 2. Inner editor containers ------------------------------------------ */ +#playlist-editor, +#layout-editor, +.playlist-editor, +.layout-editor { + background-color: var(--editor-body-bg) !important; + border-color: var(--color-primary) !important; + color: var(--editor-text) !important; +} + +#playlist-editor-container, +#playlist-editor-container .editor-body, +.playlist-editor-inline-container { + background-color: var(--editor-body-bg) !important; + background-image: none !important; +} + +/* --- 3. Left margin gutter ---------------------------------------------- */ +#playlist-editor .left-margin { + background-color: var(--editor-left-margin-bg) !important; +} + +/* --- 4. Time grid (horizontal lines behind timeline) -------------------- */ +#playlist-editor .time-grid { + color: var(--editor-timegrid-text) !important; +} + +#playlist-editor .time-grid .time-grid-step { + background-color: var(--editor-timegrid-line) !important; +} + +#playlist-editor .time-grid .step-value { + color: var(--editor-timegrid-text) !important; +} + +#playlist-editor .time-grid::after { + background-color: var(--editor-timegrid-overlay) !important; +} + +/* --- 5. Timeline area ---------------------------------------------------- */ +#playlist-timeline { + background-color: var(--editor-timeline-bg) !important; + background-image: none !important; +} + +#timeline-container { + background-color: transparent !important; +} + +/* --- 6. Widget cards in timeline ----------------------------------------- */ +#playlist-timeline .playlist-widget { + background-color: var(--editor-widget-bg) !important; + outline-color: var(--editor-widget-border) !important; + color: var(--editor-widget-text) !important; +} + +#playlist-timeline .playlist-widget .widgetLabel { + background-color: var(--editor-widget-label-bg) !important; + color: var(--editor-widget-label-text) !important; +} + +#playlist-timeline .playlist-widget .widgetName { + color: var(--editor-widget-text) !important; +} + +#playlist-timeline .playlist-widget .widgetProperties, +#playlist-timeline .playlist-widget .widgetProperties i { + color: var(--editor-text-secondary) !important; +} + +#playlist-timeline .playlist-widget .widgetDuration { + color: var(--editor-widget-label-text) !important; +} + +#playlist-timeline .playlist-widget i.editProperty { + color: var(--editor-widget-text) !important; +} + +#playlist-timeline .playlist-widget.selectable:hover { + background-color: var(--editor-widget-hover-bg) !important; +} + +#playlist-timeline .playlist-widget.selected { + background-color: var(--editor-widget-selected-bg) !important; +} + +/* Multi-select */ +#playlist-editor.multi-select .playlist-widget:hover { + background-color: var(--editor-widget-multi-hover-bg) !important; +} + +#playlist-editor.multi-select .playlist-widget.multi-selected { + background-color: var(--editor-widget-multi-bg) !important; +} + +/* --- 7. Footer bar ------------------------------------------------------- */ +#playlist-editor .editor-footer .footer-controls { + background-color: var(--editor-footer-controls-bg) !important; +} + +#playlist-editor .editor-footer .footer-controls .btn { + color: var(--editor-footer-text) !important; +} + +#playlist-editor .editor-footer .footer-controls .btn:hover { + color: #ffffff !important; + background-color: var(--color-secondary, #121a5e) !important; +} + +#playlist-editor .editor-footer .footer-info { + background-color: var(--editor-footer-info-bg) !important; + color: var(--editor-footer-text) !important; +} + +#playlist-editor .editor-footer .footer-info .selected-info { + color: var(--editor-footer-text) !important; +} + +#playlist-editor .editor-footer .footer-actions button { + color: var(--editor-footer-text) !important; +} + +/* --- 8. Editor toolbar / sidebar (fixed left panel) ---------------------- */ +.editor-toolbar.editor-side-bar-playlist-editor nav, +.editor-toolbar.editor-side-bar nav, +.editor-toolbar nav { + background-color: var(--editor-toolbar-bg) !important; + color: var(--editor-toolbar-text) !important; +} + +.editor-toolbar nav .toolbar-menu-content .toolbar-pane { + background-color: var(--editor-toolbar-pane-bg) !important; + color: var(--editor-toolbar-pane-text) !important; +} + +.editor-toolbar nav .toolbar-menu-content .toolbar-pane .content-title { + color: var(--editor-toolbar-pane-text) !important; +} + +.editor-toolbar nav .toolbar-menu-content .toolbar-pane .close-content { + color: var(--editor-text-secondary) !important; +} + +/* Toolbar card rows */ +.editor-toolbar nav tr.toolbar-card { + color: var(--editor-toolbar-pane-text) !important; +} + +.editor-toolbar nav tr.toolbar-card.card-selected { + background-color: color-mix(in srgb, var(--color-primary) 15%, transparent) !important; +} + +/* Toolbar buttons */ +.editor-toolbar nav .toolbar-menu .toolbar-menu-btn { + color: var(--editor-toolbar-text) !important; +} + +.editor-toolbar nav .toolbar-menu .toolbar-menu-btn:hover, +.editor-toolbar nav .toolbar-menu .toolbar-menu-btn.active { + background-color: rgba(255, 255, 255, 0.15) !important; +} + +/* --- 9. Back button (fixed top-left) ------------------------------------- */ +.editor-modal .back-button, +.back-button { + background-color: var(--editor-back-btn-bg) !important; +} + +.editor-modal .back-button a, +.back-button a { + color: var(--editor-back-btn-text) !important; +} + +.editor-modal .back-button a:hover, +.back-button a:hover { + background-color: rgba(255, 255, 255, 0.1) !important; +} + +.editor-modal .back-button span { + color: var(--editor-back-btn-text) !important; +} + +/* --- 10. Properties panel (right side) ----------------------------------- */ +.properties-panel-playlist-editor, +.properties-panel-container { + background-color: var(--editor-body-bg) !important; +} + +.properties-panel-container #properties-panel { + background-color: var(--editor-body-bg) !important; + color: var(--editor-text) !important; +} + +.properties-panel-container #properties-panel-form-container { + background-color: var(--editor-modal-content-bg) !important; + color: var(--editor-text) !important; +} + +.properties-panel-container #properties-panel .loading-container { + background-color: var(--editor-properties-bg) !important; +} + +.properties-panel-container #properties-panel .loading-icon { + color: var(--color-primary) !important; +} + +.properties-panel-container #properties-panel .unsuccessMessage { + color: #ffffff !important; +} + +/* Tab styling for properties panel — initial pass (reinforced at end of file) */ +.properties-panel-container #properties-panel .nav .nav-link, +.properties-panel-container #properties-panel .nav > li > a, +#properties-panel .nav .nav-link, +#properties-panel .nav > li > a { + color: var(--editor-text-secondary) !important; + background: var(--editor-header-bg) !important; + background-color: var(--editor-header-bg) !important; + border: none !important; + border-color: transparent !important; + box-shadow: none !important; + opacity: 1 !important; +} + +.properties-panel-container #properties-panel .nav .nav-link.active, +.properties-panel-container #properties-panel .nav > li > a.active, +#properties-panel .nav .nav-link.active, +#properties-panel .nav > li > a.active { + color: var(--color-primary) !important; + background: var(--editor-header-bg) !important; + background-color: var(--editor-header-bg) !important; + border: none !important; + border-bottom: 2px solid var(--color-primary) !important; + opacity: 1 !important; +} + +.properties-panel-container #properties-panel .nav, +.properties-panel-container #properties-panel .nav-tabs, +#properties-panel .nav, +#properties-panel .nav-tabs { + background: var(--editor-header-bg) !important; + background-color: var(--editor-header-bg) !important; +} + +.properties-panel-container #properties-panel .form-content label { + color: var(--editor-text) !important; +} + +/* More aggressive label overrides for all label elements in properties panel */ +#properties-panel label, +#properties-panel .label, +#properties-panel .form-label, +.properties-panel-container label, +.properties-panel-container .label, +.properties-panel-container .form-label, +.form-group label { + color: var(--editor-text) !important; +} + +.properties-panel-container #properties-panel .form-content .form-control { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +/* Select2 elements inside properties panel */ +.properties-panel-container .select2-container--default .select2-selection--single { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +.properties-panel-container .select2-container--default .select2-selection--single .select2-selection__rendered { + color: var(--editor-text) !important; +} + +/* Placeholder text in select2 */ +.properties-panel-container .select2-container--default .select2-selection--single .select2-selection__placeholder { + color: var(--editor-text-secondary) !important; +} + +.properties-panel-container .select2-container--default .select2-selection--single .select2-selection__arrow b { + border-color: var(--editor-text-secondary) transparent transparent transparent !important; +} + +/* Select2 dropdown theming (appended to body, not in panel) */ +.select2-container--open .select2-dropdown { + background-color: var(--color-surface) !important; + color: var(--editor-text, var(--color-text-primary)) !important; + border-color: var(--editor-border, var(--color-border)) !important; +} + +.select2-container--default .select2-results__option { + color: var(--editor-text, var(--color-text-primary)) !important; +} + +.select2-container--default .select2-results__option[aria-selected=true] { + background-color: color-mix(in srgb, var(--color-primary) 15%, var(--color-surface)) !important; + color: var(--editor-text, var(--color-text-primary)) !important; +} + +.select2-container--default .select2-search--dropdown .select2-search__field { + background-color: var(--color-surface-elevated) !important; + color: var(--color-text-primary) !important; + border-color: var(--color-border) !important; +} + +#playlist-properties-panel { + background-color: var(--editor-properties-bg) !important; + border-color: var(--editor-properties-border) !important; + color: var(--editor-text) !important; +} + +/* --- 11. Scrollbars inside editor ---------------------------------------- */ +#playlist-editor ::-webkit-scrollbar-track, +#layout-editor ::-webkit-scrollbar-track { + background: var(--editor-scrollbar-track) !important; +} + +#playlist-editor ::-webkit-scrollbar-thumb, +#layout-editor ::-webkit-scrollbar-thumb { + background: var(--editor-scrollbar-thumb) !important; +} + +#playlist-editor ::-webkit-scrollbar-thumb:hover, +#layout-editor ::-webkit-scrollbar-thumb:hover { + background: var(--editor-scrollbar-thumb-hover) !important; +} + +/* --- 12. Drag-drop overlay ----------------------------------------------- */ +#timeline-overlay-container { + background-color: var(--editor-body-bg) !important; +} + +#timeline-overlay-container .timeline-overlay-step { + background-color: var(--color-primary-light) !important; +} + +#timeline-overlay-container .timeline-overlay-step:hover { + background-color: var(--color-primary-lighter, #fff0d9) !important; +} + +/* --- 13. Layout editor viewer panel -------------------------------------- */ +#layout-editor { + background-color: var(--editor-body-bg) !important; + color: var(--editor-text) !important; +} + +#layout-editor .main-panel-wrapper { + background-color: var(--editor-left-margin-bg) !important; + border-color: var(--color-primary-light) !important; +} + +#layout-editor #layout-viewer { + background-color: var(--editor-left-margin-bg) !important; +} + +#layout-editor .editor-bottom-bar { + background-color: var(--editor-footer-controls-bg) !important; + color: var(--editor-footer-text) !important; +} + +/* --- 15. Properties panel – nav tabs, forms, buttons, labels ------------- */ + +/* Tab navigation inside properties panel */ +.properties-panel-container .nav > li > a, +#properties-panel .nav > li > a, +#properties-panel .form-container .nav > li > a { + color: var(--editor-text-secondary) !important; + background: var(--editor-header-bg) !important; + background-color: var(--editor-header-bg) !important; + border: none !important; +} + +/* Widget editor tabs (Configure/Advanced) should blend with surrounding background */ +.editor-modal .widget-form .nav-tabs, +.editor-modal .widget-form .nav-tabs .nav-link { + background-color: transparent !important; + border-color: transparent !important; +} + +.editor-modal .widget-form .nav-tabs .nav-link { + color: var(--editor-text) !important; + opacity: 1 !important; +} + +.editor-modal .widget-form .nav-tabs .nav-link.active { + color: var(--color-primary) !important; + border-bottom: 2px solid var(--color-primary) !important; + background-color: transparent !important; +} + +/* Ultra-specific override to beat editor tab defaults */ +#properties-panel .widget-form ul.nav.nav-tabs, +#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item, +#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link, +#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link > span, +.editor-modal #properties-panel .widget-form ul.nav.nav-tabs, +.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item, +.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link, +.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link > span { + background-color: transparent !important; + background-image: none !important; + box-shadow: none !important; + border-color: transparent !important; +} + +#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link, +.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link { + color: var(--editor-text) !important; + opacity: 1 !important; +} + +#properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link.active, +.editor-modal #properties-panel .widget-form ul.nav.nav-tabs > li.nav-item > a.nav-link.active { + color: var(--color-primary) !important; + border-bottom: 2px solid var(--color-primary) !important; + background-color: transparent !important; +} + +.properties-panel-container .nav > li > a.active, +#properties-panel .nav > li > a.active, +.form-container .nav > li > a.active { + color: var(--color-primary) !important; + background-color: var(--editor-modal-content-bg) !important; +} + +/* Form groups, labels, text in properties panel */ +#properties-panel .form-group, +#properties-panel .form-check, +#properties-panel .input-group, +#properties-panel label, +#properties-panel .form-label, +#properties-panel legend, +#properties-panel .help-block, +#properties-panel .control-label { + color: var(--editor-text) !important; +} + +/* Info/help icons */ +#properties-panel .info-icon, +#properties-panel .fa-info-circle, +#properties-panel .fa-question-circle { + color: var(--color-primary) !important; +} + +/* Action buttons in properties panel */ +#properties-panel .button-container .btn, +#properties-panel .form-buttons .btn { + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +#properties-panel .button-container .btn-info, +#properties-panel .form-buttons .btn-info { + background-color: var(--color-primary) !important; + color: #ffffff !important; + border-color: var(--color-primary) !important; +} + +#properties-panel .button-container .btn-white, +#properties-panel .button-container .btn-default, +#properties-panel .form-buttons .btn-white, +#properties-panel .form-buttons .btn-default { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +/* Actions content buttons (layout editor actions pane) */ +#properties-panel .actions-content-button { + background-color: var(--color-surface-elevated) !important; + color: var(--color-primary) !important; + border-color: var(--editor-border) !important; +} + +/* Action forms inside properties panel */ +#properties-panel .action-edit-form, +#properties-panel .action-view { + background-color: var(--color-surface) !important; + border-color: var(--editor-border) !important; +} + +#properties-panel .action-label, +#properties-panel .action-value { + color: var(--editor-text) !important; +} + +#properties-panel .action-btn { + color: #ffffff !important; +} + +#properties-panel .action-btn[data-action="close"], +#properties-panel .action-edit-widget-btn { + color: var(--color-primary) !important; + border-color: var(--editor-border) !important; +} + +/* Action target widget controls */ +#properties-panel .action-target-widget-edit-container { + background-color: var(--color-surface-elevated) !important; +} + +#properties-panel .action-target-widget-dropdown-button { + color: var(--color-primary) !important; + border-color: var(--editor-border) !important; +} + +#properties-panel .action-target-widget-dropdown-container { + background-color: var(--color-surface) !important; +} + +#properties-panel .action-target-widget-dropdown-container .action-edit-widget-btn { + color: var(--editor-text) !important; +} + +/* Form content title border */ +#properties-panel .form-content-title { + border-bottom-color: var(--editor-border) !important; + color: var(--editor-text) !important; +} + +/* Textarea buttons bar (rich text) */ +#properties-panel .text-area-buttons { + background-color: var(--color-surface-elevated) !important; +} + +/* Panel headings */ +#properties-panel .panel-heading { + background-color: var(--color-surface-elevated) !important; +} + +#properties-panel .panel-title { + color: var(--color-primary) !important; +} + +/* Snippet selector */ +#properties-panel .snippet-selector .select2-selection { + background-color: var(--color-surface-elevated) !important; +} + +#properties-panel .snippet-selector .select2-selection__placeholder { + color: var(--editor-text-secondary) !important; +} + +/* Image replace area */ +#properties-panel .image-replace-control-area { + color: var(--editor-text) !important; + background-color: var(--color-surface-elevated) !important; +} + +/* Rich text dimensions control */ +#properties-panel .rich-text-dimensions-control.detached { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; +} + +/* Button switch input group */ +#properties-panel .button-switch-input-group button { + color: var(--color-primary) !important; + border-color: var(--editor-border) !important; +} + +/* Description / compat messages */ +#properties-panel .desc, +#properties-panel .message { + color: var(--editor-text-secondary) !important; +} + +/* Developer template controls */ +#properties-panel .developer-template-placeholder { + color: var(--color-primary) !important; + background-color: var(--color-surface-elevated) !important; +} + +#properties-panel .developer-template-control-item { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-text) !important; +} + +/* Background image controls */ +#properties-panel .background-image-add { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-text) !important; +} + +#properties-panel .background-image-actions .btn-group { + background-color: var(--color-surface) !important; +} + +/* --- 16. Toolbar pane cards & content ------------------------------------ */ + +/* Toolbar cards */ +.editor-toolbar .toolbar-card { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-text) !important; +} + +.editor-toolbar .toolbar-card .card-icon { + color: var(--color-primary) !important; +} + +.editor-toolbar .toolbar-card .media-title { + color: var(--editor-text) !important; +} + +.editor-toolbar .toolbar-card .media-duration { + background-color: var(--editor-footer-controls-bg) !important; + color: var(--editor-footer-text) !important; +} + +.editor-toolbar .toolbar-card .select-button { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-toolbar-text) !important; +} + +.editor-toolbar .toolbar-card .preview-button { + background-color: var(--color-primary) !important; + color: #ffffff !important; +} + +.editor-toolbar .toolbar-card.has-thumb .toolbar-content { + color: var(--editor-text) !important; +} + +.editor-toolbar .toolbar-playlists-pane .toolbar-card-preview { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-text) !important; +} + +/* Upload container */ +.editor-toolbar .upload-container { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; +} + +/* Show more button */ +.editor-toolbar .show-more { + background-color: var(--color-surface) !important; + color: var(--color-primary) !important; +} + +/* Provider badge */ +.editor-toolbar .provider img { + background-color: var(--color-surface) !important; +} + +/* Toolbar search forms */ +.editor-toolbar .toolbar-pane form label { + color: var(--editor-toolbar-pane-text) !important; +} + +.editor-toolbar .toolbar-pane form .form-control { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +/* Toolbar navbar buttons (bottom icons) */ +.editor-toolbar .navbar-buttons a { + color: var(--editor-toolbar-text) !important; +} + +.editor-toolbar .navbar-buttons a.active { + background-color: var(--color-surface-elevated) !important; + color: var(--color-primary) !important; +} + +/* Toolbar navbar submenu */ +.editor-toolbar .navbar-submenu > a { + color: var(--editor-toolbar-text) !important; +} + +.editor-toolbar .navbar-submenu > a:hover { + background-color: rgba(255, 255, 255, 0.1) !important; + color: #ffffff !important; +} + +.editor-toolbar .navbar-submenu .trash-container { + color: var(--color-danger) !important; +} + +/* --- 17. Layout editor top bar & bottom bar ------------------------------ */ + +/* Top bar */ +.editor-top-bar nav, +body.editor-opened .header-side { + background-color: var(--editor-modal-header-bg) !important; + color: var(--editor-text) !important; +} + +.editor-top-bar .navbar-text.layout-info { + color: var(--editor-text) !important; +} + +/* Bottom bar nav & buttons */ +.editor-bottom-bar nav { + background-color: var(--editor-modal-content-bg) !important; + color: var(--editor-text) !important; +} + +.editor-bottom-bar nav .btn { + color: var(--editor-text) !important; +} + +.editor-bottom-bar nav .btn:hover { + color: var(--color-primary) !important; +} + +.editor-bottom-bar .viewer-navbar-info { + background-color: var(--color-primary) !important; + color: #ffffff !important; +} + +.editor-bottom-bar .viewer-navbar-info .btn { + color: #ffffff !important; +} + +/* Fullscreen & layer manager buttons */ +#layout-editor #fullscreenBtn, +#layout-editor #layerManagerBtn, +#layout-editor .snap-controls > .btn { + background-color: var(--color-surface) !important; + color: var(--color-primary) !important; +} + +#layout-editor #layerManagerBtn.active, +#layout-editor .snap-controls > .btn.active { + background-color: var(--color-primary) !important; + color: #ffffff !important; +} + +#layout-editor .snap-to-grid-value { + color: var(--color-primary) !important; +} + +/* --- 18. Layer manager --------------------------------------------------- */ + +#layerManager { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; +} + +#layerManager .layer-manager-header { + background-color: var(--color-primary) !important; + color: #ffffff !important; +} + +#layerManager .layer-manager-layer-item { + color: var(--editor-text) !important; +} + +#layerManager .layer-manager-layer-item .layer { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-text) !important; +} + +#layerManager .layer-manager-layer-item.selectable:not(.selected):hover { + color: var(--color-primary) !important; +} + +#layerManager .layer-manager-canvas-layers .layer-manager-layer-item { + background-color: var(--color-surface-elevated) !important; +} + +#layerManager .has-group { + background-color: var(--color-surface-elevated) !important; +} + +/* --- 19. Action screen helpers (viewer interactions) ---------------------- */ + +.action-screen-helper { + background-color: var(--color-surface) !important; + color: var(--color-primary) !important; +} + +.action-screen-recent { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; +} + +.action-layout-dock-search-button { + background-color: var(--color-surface) !important; + color: var(--color-primary) !important; +} + +.action-layout-dock-search-results-container { + background-color: var(--color-surface) !important; +} + +.action-layout-dock-search-find { + color: var(--editor-text) !important; + background-color: var(--color-surface-elevated) !important; +} + +.action-layout-dock-option { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; +} + +/* --- 20. Context menus inside editor ------------------------------------- */ + +.context-menu { + background-color: var(--color-surface) !important; + border-color: var(--editor-border) !important; +} + +.context-menu-btn { + color: var(--color-primary) !important; +} + +.context-menu-btn:hover { + background-color: var(--color-surface-elevated) !important; +} + +/* --- 21. Scaled timeline footer controls --------------------------------- */ +#playlist-editor.timeline-scaled .footer-controls .btn-scale-control { + background-color: var(--color-surface) !important; + color: var(--color-primary) !important; +} + +#playlist-editor.timeline-scaled .footer-controls .btn-scale-control:hover { + background-color: var(--color-surface-elevated) !important; +} + +/* --- 22. Popovers inside editor ------------------------------------------ */ +.editor-modal .popover, +#layout-editor .popover { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +/* --- 23. External playlist message --------------------------------------- */ +.external-playlist-message-container { + color: var(--editor-text) !important; +} + +/* --- 24. General form/input overrides inside any editor context ----------- */ +.editor-modal input[type="text"], +.editor-modal input[type="number"], +.editor-modal input[type="search"], +.editor-modal textarea, +.editor-modal select, +#layout-editor input[type="text"], +#layout-editor input[type="number"], +#layout-editor input[type="search"], +#layout-editor textarea, +#layout-editor select { + background-color: var(--color-surface) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +.editor-modal label, +.editor-modal .form-label, +.editor-modal legend, +.editor-modal .control-label, +#layout-editor label, +#layout-editor .form-label, +#layout-editor legend, +#layout-editor .control-label { + color: var(--editor-text) !important; +} + +/* --- 25. Comprehensive form element overrides for all contexts ----------- */ + +/* ANY form-group label anywhere */ +body #properties-panel .form-group > label:first-child, +body .editor-modal .form-group > label:first-child, +body #layout-editor .form-group > label:first-child, +body .container-designer .form-group > label:first-child { + color: var(--editor-text) !important; +} + +/* ANY select dropdown (native and enhanced) */ +body #properties-panel select, +body #properties-panel .select2-container, +body .editor-modal select, +body .editor-modal .select2-container, +body #layout-editor select, +body #layout-editor .select2-container { + color: var(--editor-text) !important; +} + +/* Specific override for properties panel form rows */ +#properties-panel .form-row, +#properties-panel .row { + color: var(--editor-text) !important; +} + +/* Form group text */ +#properties-panel .form-group, +.editor-modal .form-group, +#layout-editor .form-group { + color: var(--editor-text) !important; +} + +/* Input placeholders */ +.editor-modal input::placeholder, +#properties-panel input::placeholder, +#layout-editor input::placeholder, +.editor-modal textarea::placeholder, +#properties-panel textarea::placeholder, +#layout-editor textarea::placeholder { + color: var(--editor-text-secondary) !important; + opacity: 0.7; +} + +/* Help text and descriptions */ +.editor-modal .help-block, +.editor-modal small, +.editor-modal .form-text, +.editor-modal .invalid-feedback, +.editor-modal .valid-feedback, +#properties-panel .help-block, +#properties-panel small, +#properties-panel .form-text, +#properties-panel .invalid-feedback, +#properties-panel .valid-feedback, +#layout-editor .help-block, +#layout-editor small, +#layout-editor .form-text, +#layout-editor .invalid-feedback, +#layout-editor .valid-feedback { + color: var(--editor-text-secondary) !important; +} + +/* Form check labels (checkboxes, radios) */ +.editor-modal .form-check-label, +.editor-modal .form-check input ~ label, +#properties-panel .form-check-label, +#properties-panel .form-check input ~ label, +#layout-editor .form-check-label, +#layout-editor .form-check input ~ label { + color: var(--editor-text) !important; +} + +/* Input addon text */ +.editor-modal .input-group-text, +.editor-modal .input-group-addon, +#properties-panel .input-group-text, +#properties-panel .input-group-addon, +#layout-editor .input-group-text, +#layout-editor .input-group-addon { + background-color: var(--color-surface-elevated) !important; + color: var(--editor-text) !important; + border-color: var(--editor-border) !important; +} + +/* Button in form context */ +.editor-modal button, +.editor-modal .btn, +#properties-panel button, +#properties-panel .btn, +#layout-editor button, +#layout-editor .btn { + color: var(--editor-text) !important; +} + +/* --- 14a. No-nav pages (layout designer, etc.) – remove sidebar spacing -- */ +#content-wrapper.no-nav { + margin-left: 0 !important; + width: 100% !important; + max-width: 100% !important; + padding: 0 !important; +} + +#content-wrapper.no-nav .page-content { + padding: 0 !important; + margin: 0 !important; +} + +#content-wrapper.no-nav .page-content .row { + margin: 0 !important; + padding: 0 !important; +} + +#content-wrapper.no-nav .page-content [class*="col-"] { + margin: 0 !important; + padding: 0 !important; +} + +/* --- 14b. Hide the page behind the editor (body class set by JS) --------- */ +body.ots-playlist-editor-active .ots-sidebar { + visibility: hidden !important; +} + +body.ots-playlist-editor-active .ots-topbar { + visibility: hidden !important; +} + +body.ots-playlist-editor-active .ots-page-actions { + display: none !important; +} + +body.ots-playlist-editor-active #help-pane { + display: none !important; +} + +body.ots-playlist-editor-active .page-content > .row > .col-sm-12 > *:not(#editor-container):not(#layout-editor):not(#playlist-editor):not(.loading-overlay) { + display: none !important; +} + +body.ots-playlist-editor-active #content-wrapper, +body.ots-playlist-editor-active .ots-main { + margin-left: 0 !important; + width: 100% !important; + max-width: 100% !important; + padding: 0 !important; + overflow: visible !important; +} + +body.ots-playlist-editor-active .ots-content, +body.ots-playlist-editor-active .page-content { + padding-left: 0 !important; + padding-right: 0 !important; +} + +body.ots-playlist-editor-active .page-content .row, +body.ots-playlist-editor-active .page-content [class*="col-"] { + margin-left: 0 !important; + margin-right: 0 !important; + padding-left: 0 !important; + padding-right: 0 !important; +} + +/* Collapsed: shift content to match the narrow sidebar */ +body.ots-sidebar-collapsed .ots-main, +body.ots-sidebar-collapsed #content-wrapper, +html.ots-sidebar-collapsed .ots-main, +html.ots-sidebar-collapsed #content-wrapper { + margin-left: var(--ots-sidebar-collapsed-width) !important; + width: calc(100vw - var(--ots-sidebar-collapsed-width)) !important; + max-width: calc(100vw - var(--ots-sidebar-collapsed-width)) !important; +} + +.ots-content { + flex: 1; + padding: 32px 16px 32px var(--ots-sidebar-content-gap); + overflow-y: auto; + overflow-x: hidden !important; + max-width: 100% !important; + box-sizing: border-box !important; +} + +/* Consistent left gap between sidebar and page content */ +.page-content { + padding-left: 0 !important; + max-width: 100% !important; + overflow-x: hidden !important; + box-sizing: border-box !important; +} + +/* Remove bootstrap gutters for main content so it sits flush against sidebar */ +.ots-main .page-content .row { + margin-left: 0 !important; + margin-right: 0 !important; + max-width: 100% !important; + overflow-x: hidden !important; +} + +.ots-main .page-content [class*="col-"] { + padding-left: 0 !important; + padding-right: 0 !important; +} + +.ots-main #content-wrapper { + padding-left: var(--ots-sidebar-content-gap) !important; +} + +.ots-main .page-content { + padding-left: 0 !important; +} + +.ots-main .ots-content { + padding-left: var(--ots-sidebar-content-gap) !important; +} + +/* Strongly enforce no left gap for content children (not #content-wrapper itself) */ +#content-wrapper .page-content, +#content-wrapper .page-content .row, +#content-wrapper .page-content [class*="col-"] { + margin-left: 0 !important; + padding-left: 0 !important; +} + +/* Ensure page header and meta area align flush */ +.page-header { + margin-left: 0 !important; + padding-left: 0 !important; +} + +/* Prevent XiboGrid, folder grids, and data containers from causing page overflow */ +.XiboGrid, +.grid-with-folders-container, +.XiboData, +#datatable-container { + max-width: 100% !important; + overflow-x: auto !important; + box-sizing: border-box !important; +} + +/* ============================================================================ + TOPBAR STRIP — HIDDEN + The old full-width topbar is no longer shown. The notification bell and + user menu now live in .ots-page-actions (fixed top-right on every page). + ============================================================================ */ +.row.header.header-side, +.ots-topbar-strip { + display: none !important; + height: 0 !important; + margin: 0 !important; + padding: 0 !important; + overflow: hidden !important; + border: none !important; + box-shadow: none !important; +} + +/* ============================================================================ + PAGE ACTIONS — top-right cluster (bell + user icon) + ============================================================================ */ +.ots-page-actions { + position: absolute; + top: 14px; + right: 20px; + z-index: 1100; + display: flex; + align-items: center; + gap: 2px; + background: var(--color-surface-elevated); + border: 1px solid var(--color-border); + border-radius: 8px; + padding: 3px 4px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10); +} + +/* Each action inside the cluster — NO position:relative so dropdowns + anchor to .ots-page-actions (position:fixed) instead */ +.ots-page-actions .ots-topbar-action { + display: inline-flex !important; + align-items: center !important; + position: static !important; +} + +.ots-page-actions .ots-topbar-action .nav-item, +.ots-page-actions .ots-topbar-action .dropdown, +.ots-page-actions .ots-topbar-action > div { + display: inline-flex !important; + align-items: center !important; + position: static !important; +} + +.ots-page-actions .ots-topbar-action .nav-link { + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + width: 28px !important; + height: 28px !important; + padding: 0 !important; + border-radius: 6px !important; + color: var(--color-text-secondary) !important; + transition: all 150ms ease !important; + border: none !important; + background: transparent !important; +} + +.ots-page-actions .ots-topbar-action .nav-link:hover { + background-color: rgba(var(--ots-primary-rgb), 0.08) !important; + color: var(--color-primary) !important; +} + +.ots-page-actions .ots-topbar-action .ots-topbar-icon { + display: flex !important; + align-items: center !important; + justify-content: center !important; + width: 18px !important; + height: 18px !important; + font-size: 16px !important; +} + +.ots-page-actions .ots-topbar-action img.nav-avatar { + display: block !important; + width: 20px !important; + height: 20px !important; + border-radius: 50% !important; + object-fit: cover !important; + border: 1px solid transparent !important; + transition: border-color 150ms ease !important; +} + +.ots-page-actions .ots-topbar-action .nav-link:hover img.nav-avatar { + border-color: var(--color-primary) !important; +} + +/* Dropdown menus from the page actions cluster */ +.ots-page-actions .dropdown-menu { + position: absolute !important; + top: 100% !important; + right: 0 !important; + left: auto !important; + margin-top: 0 !important; + min-width: 200px !important; + background-color: var(--color-surface-elevated) !important; + border: 1px solid var(--color-border) !important; + border-radius: 10px !important; + box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important; + padding: 6px 0 !important; + z-index: 3000 !important; + overflow: visible !important; +} + +/* Bridge the gap between the pill and dropdown so it looks connected */ +.ots-page-actions .dropdown-menu::before { + content: '' !important; + display: block !important; + position: absolute !important; + top: -4px !important; + right: 8px !important; + width: 48px !important; + height: 4px !important; + background: transparent !important; +} + +.ots-page-actions .dropdown-item, +.ots-page-actions .dropdown-menu a { + display: flex !important; + align-items: center !important; + gap: 8px !important; + padding: 8px 14px !important; + margin: 1px 6px !important; + border-radius: 6px !important; + color: var(--color-text-secondary) !important; + font-size: 13px !important; + font-weight: 500 !important; + transition: all 150ms ease !important; + text-decoration: none !important; +} + +.ots-page-actions .dropdown-item:hover, +.ots-page-actions .dropdown-menu a:hover { + background-color: rgba(var(--ots-primary-rgb), 0.08) !important; + color: var(--color-primary) !important; +} + +/* Light mode adjustments for the actions cluster */ +body.ots-light-mode .ots-page-actions { + background: #ffffff; + border-color: #e2e8f0; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); +} + +/* ============================================================================ + USER MENU — standalone styles that apply whether the menu is inside + .ots-page-actions or floated to by floatMenu(). + ============================================================================ */ + +/* When the menu lives in (permanently moved there by initDropdowns), + it's hidden by default and shown only via .ots-user-menu-open. */ +.ots-user-menu.ots-user-menu-body { + position: fixed !important; + display: none !important; + z-index: 2147483647 !important; + transform: none !important; + pointer-events: auto !important; +} + +.ots-user-menu.ots-user-menu-body.ots-user-menu-open { + display: block !important; + visibility: visible !important; + opacity: 1 !important; + animation: otsUserMenuIn 120ms ease-out; +} + +@keyframes otsUserMenuIn { + from { opacity: 0; transform: translateY(-6px); } + to { opacity: 1; transform: translateY(0); } +} + +/* Visual style — applies regardless of where the element is in the DOM */ +.ots-user-menu { + min-width: 200px !important; + background-color: var(--color-surface-elevated) !important; + border: 1px solid var(--color-border) !important; + border-radius: 10px !important; + box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important; + padding: 6px 0 !important; + overflow: visible !important; +} + +.ots-user-menu .dropdown-header { + color: var(--color-text-primary) !important; + font-size: 13px !important; + font-weight: 600 !important; + padding: 8px 14px !important; + white-space: nowrap !important; +} + +.ots-user-menu .dropdown-divider { + border-top: 1px solid var(--color-border) !important; + margin: 4px 0 !important; +} + +.ots-user-menu .dropdown-item, +.ots-user-menu a { + display: flex !important; + align-items: center !important; + gap: 8px !important; + padding: 8px 14px !important; + margin: 1px 6px !important; + border-radius: 6px !important; + color: var(--color-text-secondary) !important; + font-size: 13px !important; + font-weight: 500 !important; + transition: all 150ms ease !important; + text-decoration: none !important; +} + +.ots-user-menu .dropdown-item:hover, +.ots-user-menu a:hover { + background-color: rgba(var(--ots-primary-rgb), 0.08) !important; + color: var(--color-primary) !important; +} + +body.ots-light-mode .ots-user-menu { + background-color: #ffffff !important; + border-color: #e2e8f0 !important; + box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12) !important; +} + +body.ots-light-mode .ots-user-menu .dropdown-item, +body.ots-light-mode .ots-user-menu a { + color: #334155 !important; +} + +body.ots-light-mode .ots-user-menu .dropdown-item:hover, +body.ots-light-mode .ots-user-menu a:hover { + background-color: rgba(var(--ots-primary-rgb), 0.1) !important; + color: var(--ots-primary) !important; +} + +/* ============================================================================ + HORIZONTAL NAV MODE — when .navbar.navbar-expand-lg is present there is no + sidebar, so #content-wrapper must not have the sidebar margin/width offsets. + The page background follows the current light/dark theme variables. + ============================================================================ */ +.navbar.navbar-expand-lg ~ #content-wrapper { + margin-left: 0 !important; + width: 100% !important; + max-width: 100% !important; + padding-left: 20px !important; + padding-right: 20px !important; +} + +.navbar.navbar-expand-lg ~ #content-wrapper .page-content { + padding-left: 0 !important; + padding-right: 0 !important; +} + +.navbar.navbar-expand-lg ~ #content-wrapper .page-content .row { + margin-left: 0 !important; + margin-right: 0 !important; +} + +.navbar.navbar-expand-lg ~ #content-wrapper .page-content [class*="col-"] { + padding-left: 0 !important; + padding-right: 0 !important; +} + +.navbar.navbar-expand-lg ~ #content-wrapper .page-content > .row > .col-sm-12 { + padding-left: 0 !important; + padding-right: 0 !important; +} + +.navbar.navbar-expand-lg ~ #content-wrapper .page-header { + margin-left: 0 !important; + padding-left: 0 !important; +} + +/* Ensure page background follows the theme when horizontal nav is active */ +.navbar.navbar-expand-lg ~ #content-wrapper, +.navbar.navbar-expand-lg ~ #content-wrapper .page-content { + background-color: var(--color-background) !important; + color: var(--color-text-primary) !important; +} + +/* Light-mode overrides for horizontal nav page area */ +body.ots-light-mode .navbar.navbar-expand-lg ~ #content-wrapper, +body.ots-light-mode .navbar.navbar-expand-lg ~ #content-wrapper .page-content { + background-color: var(--color-background) !important; + color: var(--color-text-primary) !important; +} + +/* Horizontal navbar should also follow the theme */ +body.ots-light-mode .navbar.navbar-expand-lg { + background-color: var(--color-surface) !important; + border-color: var(--color-border) !important; + color: var(--color-text-primary) !important; +} + +body.ots-light-mode .navbar.navbar-expand-lg .nav-link, +body.ots-light-mode .navbar.navbar-expand-lg .navbar-nav > li > a { + color: var(--color-text-secondary) !important; +} + +body.ots-light-mode .navbar.navbar-expand-lg .nav-link:hover, +body.ots-light-mode .navbar.navbar-expand-lg .navbar-nav > li > a:hover { + color: var(--color-primary) !important; +} + +.page-header { + background: transparent !important; + box-shadow: none !important; +} + +.ots-footer { + border-top: 1px solid var(--color-border); + padding: 16px 32px; + background-color: var(--color-surface-elevated); + text-align: center; + color: var(--color-text-primary); +} + +/* Responsive sidebar */ +@media (max-width: 768px) { + .ots-sidebar { + transform: translateX(-100%); + transition: transform var(--transition-base); + width: 280px; + } + .ots-sidebar.active { + transform: translateX(0); + box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3); + } + + .ots-main { + margin-left: 0 !important; + } + + .ots-content { + color: var(--color-text-primary); + } +} + +/* Responsive helpers for paged selects and other inline-width controls */ +.pagedSelect { + min-width: 12.5rem; /* 200px */ +} + +@media (max-width: 600px) { + .pagedSelect { + min-width: auto; + width: 100%; + box-sizing: border-box; + } +} + +/* ============================================================================ + SIDEBAR STYLES + ============================================================================ */ + +.sidebar-header { + padding: 12px 16px; + border-bottom: 1px solid var(--color-border); + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + flex-shrink: 0; + height: var(--ots-sidebar-header-height); +} + +.brand-link { + display: flex; + align-items: center; + gap: 12px; + color: var(--color-text-primary); + font-weight: 700; + font-size: 16px; + text-decoration: none; + flex: 1; +} + +.brand-icon { + width: 40px; + height: 40px; + display: flex; + align-items: center; + justify-content: center; + font-size: 24px; + flex-shrink: 0; +} + +.sidebar-content { + flex: 1; + padding: 8px 0; + overflow-y: auto; + min-height: 0; +} + +.sidebar-nav { + list-style: none; + margin: 0; + padding: 8px 0 16px; +} + +.sidebar-nav li { + display: block; + margin-top: 6px; +} + +/* Compatibility: Xibo sidebar markup uses `sidebar-list`, `sidebar-main`, `sidebar-title`. + Map those into the modern `.nav-item/.nav-text/.nav-icon` style system so styles apply. +*/ +.ots-sidebar li.sidebar-list > a, +.ots-sidebar li.sidebar-main > a, +.ots-sidebar li.sidebar-title > a { + display: flex; + align-items: center; + gap: 12px; + padding: 8px var(--ots-sidebar-item-padding-x); + color: var(--ots-sidebar-link); + text-decoration: none; + transition: all var(--transition-fast); + position: relative; + font-size: 14px; + font-weight: 500; + border-left: 2px solid transparent; + margin: 3px 0; + border-radius: var(--ots-sidebar-item-radius); + min-height: var(--ots-sidebar-item-height); + line-height: 1.25; + width: 100%; + box-sizing: border-box; + padding-right: 48px; /* reserve space for caret */ + text-indent: 0; + float: none; +} + +/* Force readable text in sidebar links */ +.ots-sidebar a, +.ots-sidebar .ots-nav-text { + color: var(--ots-sidebar-link); +} + +.ots-sidebar li.sidebar-list > a:hover { + color: var(--ots-sidebar-link-hover-text); + background-color: var(--ots-sidebar-link-hover-bg); +} + +.ots-sidebar li.sidebar-list.active > a, +.ots-sidebar li.sidebar-list > a.active, +.ots-sidebar li.sidebar-main.active > a, +.ots-sidebar li.sidebar-main > a.active { + color: var(--ots-sidebar-active-text); + background-color: var(--ots-sidebar-active-bg); + border-left-color: transparent; + font-weight: 600; + box-shadow: var(--ots-sidebar-active-shadow); +} + +.ots-sidebar li.sidebar-list.active > a .ots-nav-text, +.ots-sidebar li.sidebar-list > a.active .ots-nav-text, +.ots-sidebar li.sidebar-main.active > a .ots-nav-text, +.ots-sidebar li.sidebar-main > a.active .ots-nav-text { + color: var(--ots-sidebar-active-text); +} + +/* Stronger active state rules to ensure the currently active page is visibly + highlighted regardless of other theme CSS. Covers both `li.active > a` and + `a.active` patterns as well as collapsed sidebar appearance. */ +.ots-sidebar li.sidebar-list.active > a, +.ots-sidebar li.sidebar-list > a.active, +#sidebar-wrapper .sidebar-list a.active, +.ots-sidebar li.sidebar-main.active > a, +.ots-sidebar li.sidebar-main > a.active, +.ots-sidebar .sidebar-list > a[aria-current="page"] { + background-color: var(--ots-sidebar-active-bg) !important; + color: var(--ots-sidebar-active-text) !important; + border-left-color: transparent !important; + font-weight: 600 !important; + box-shadow: var(--ots-sidebar-active-shadow) !important; +} + +/* Ensure the icon in the active link also uses active text color */ +.ots-sidebar li.sidebar-list.active > a .ots-nav-icon, +.ots-sidebar li.sidebar-list > a.active .ots-nav-icon, +#sidebar-wrapper .sidebar-list a.active .ots-nav-icon { + color: var(--ots-sidebar-active-text) !important; +} + +/* Collapsed sidebar: active item highlight */ +.ots-sidebar.collapsed .sidebar-list > a.active, +.ots-sidebar.collapsed .sidebar-group-toggle.active { + background: var(--ots-sidebar-active-bg) !important; + color: var(--ots-sidebar-active-text) !important; +} +.ots-sidebar.collapsed .sidebar-list > a.active .ots-nav-icon, +.ots-sidebar.collapsed .sidebar-group-toggle.active .ots-nav-icon { + color: var(--ots-sidebar-active-text) !important; +} + + +.ots-sidebar .ots-nav-icon { + width: 28px; + height: 28px; + display: flex !important; + align-items: center; + justify-content: center; + flex-shrink: 0; + font-size: 16px; + color: currentColor; + margin: 0; + text-align: center; + line-height: 1; +} + +.ots-sidebar .ots-nav-text { + font-size: 14px; + font-weight: 500; + flex: 1; + line-height: 1.2; +} + +.sidebar-group-toggle .ots-nav-icon, +.ots-sidebar-nav .ots-nav-icon { + justify-self: start; +} + +.ots-sidebar li.sidebar-title > a { + display: block; + font-size: 10px; + font-weight: 700; + text-transform: uppercase; + color: var(--ots-sidebar-muted-text); + letter-spacing: 0.12em; + padding: 12px 14px 4px; + margin: 8px 0 0; + min-height: auto; + line-height: 1; +} + +.brand-logo { + width: 40px; + height: 40px; + object-fit: contain; +} + +.brand-text { + color: var(--color-text-primary); + font-size: 18px; + font-weight: 600; + letter-spacing: 0.02em; +} + +.sidebar-header { + padding: 12px 16px; + border-bottom: 1px solid var(--ots-sidebar-border); + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + flex-shrink: 0; + height: var(--ots-sidebar-header-height); + box-sizing: border-box; + position: relative; + background: var(--ots-sidebar-header-bg); + z-index: 1; +} + +.sidebar-collapse-btn { + width: 32px; + height: 32px; + border-radius: 8px; + border: 0; + background: var(--ots-sidebar-button-bg); + color: var(--ots-sidebar-button-text); + display: inline-flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: all var(--transition-fast); +} + +.sidebar-collapse-btn:hover { + background: var(--ots-sidebar-button-bg-hover); + color: var(--ots-sidebar-link-hover-text); +} + +/* Expand button - visible only when collapsed */ +.sidebar-expand-btn { + width: 32px; + height: 32px; + border-radius: 8px; + border: 0; + background: var(--ots-sidebar-button-bg); + color: var(--ots-sidebar-button-text); + display: none; + align-items: center; + justify-content: center; + cursor: pointer; + transition: all var(--transition-fast); +} + +.sidebar-expand-btn:hover { + background: var(--ots-sidebar-button-bg-hover); + color: var(--ots-sidebar-link-hover-text); +} + +.ots-sidebar.collapsed .sidebar-expand-btn { + display: inline-flex !important; +} + +.ots-sidebar.collapsed .sidebar-collapse-btn-visible { + display: none !important; +} + +.ots-sidebar.collapsed { + width: var(--ots-sidebar-collapsed-width) !important; + overflow: visible !important; /* allow popout menus to escape */ +} + +/* When collapsed the sidebar-content must also allow flyout menus to escape */ +.ots-sidebar.collapsed .sidebar-content { + overflow: visible !important; +} + +/* Ensure parent wrapper doesn't clip flyout menus and doesn't create a visible bar. + The sidebar is position:fixed so this wrapper should be invisible in the flow. + Using display:contents so the sidebar inside still renders but the wrapper + itself produces no box at all — eliminating the black bar. */ +.navbar-collapse-side, +.navbar-collapse-side.collapse, +#navbar-collapse-1 { + display: contents !important; + overflow: visible !important; + width: 0 !important; + min-width: 0 !important; + max-width: 0 !important; + height: 0 !important; + max-height: 0 !important; + padding: 0 !important; + margin: 0 !important; + border: none !important; + background: transparent !important; + box-shadow: none !important; + outline: none !important; +} + +.ots-sidebar.collapsed .brand-text, +.ots-sidebar.collapsed > .sidebar-content > .ots-sidebar-nav > .sidebar-group > .sidebar-group-toggle > .ots-nav-text, +.ots-sidebar.collapsed > .sidebar-content > .ots-sidebar-nav > .sidebar-list > a > .ots-nav-text, +.ots-sidebar.collapsed .sidebar-group-caret, +.ots-sidebar.collapsed .user-details, +.ots-sidebar.collapsed .sidebar-header .sidebar-collapse-btn, +.ots-sidebar.collapsed .brand-link .brand-text { + display: none !important; +} + +/* ── Collapsed sidebar: flyout submenu on hover ────────────────────────── + When collapsed, submenus are hidden by default and shown as floating + panels anchored to the right of the sidebar icon on hover. + We deliberately do NOT use display:none here — the JS toggle also sets + inline display, so we use visibility + opacity + pointer-events to hide + the panel and then override on :hover. This avoids the inline + display:none set by JS from blocking the CSS :hover rule. + ─────────────────────────────────────────────────────────────────────── */ +.ots-sidebar.collapsed .sidebar-submenu { + /* Positioning */ + position: absolute !important; + left: 100% !important; + top: 0 !important; + margin-left: 4px !important; + z-index: 10000 !important; + + /* Sizing */ + min-width: 220px !important; + width: max-content !important; + max-height: 80vh !important; + overflow-y: auto !important; + + /* Hidden by default (visibility so :hover can override inline display) */ + visibility: hidden !important; + opacity: 0 !important; + pointer-events: none !important; + + /* Appearance */ + background: var(--color-surface-elevated, #334155) !important; + border: 1px solid var(--color-border, #475569) !important; + border-radius: 8px !important; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important; + padding: 0 0 8px 0 !important; + list-style: none !important; + + transition: opacity 0.15s ease, visibility 0.15s ease !important; +} + +/* Flyout: show submenu on hover — uses visibility/opacity so it works + even when JS has set an inline display:none or display:block */ +.ots-sidebar.collapsed .sidebar-group:hover > .sidebar-submenu, +.ots-sidebar.collapsed .sidebar-group.flyout-open > .sidebar-submenu { + display: block !important; + visibility: visible !important; + opacity: 1 !important; + pointer-events: auto !important; +} + +/* ── Flyout header (category icon + name) ──────────────────────────── */ +.flyout-header { + display: none; /* hidden in expanded sidebar */ +} + +.ots-sidebar.collapsed .sidebar-submenu .flyout-header { + display: flex !important; + flex-direction: row !important; + align-items: center !important; + gap: 10px !important; + padding: 12px 16px !important; + margin: 0 !important; + border-bottom: none !important; + background: var(--color-primary, #e87800) !important; + pointer-events: none !important; + user-select: none !important; + white-space: nowrap !important; + list-style: none !important; + border-radius: 8px 8px 0 0 !important; + width: 100% !important; + box-sizing: border-box !important; +} + +.ots-sidebar.collapsed .sidebar-submenu .flyout-header-icon { + display: inline-flex !important; + visibility: visible !important; + align-items: center !important; + justify-content: center !important; + width: 22px !important; + height: 22px !important; + font-size: 16px !important; + color: #ffffff !important; + opacity: 1 !important; + flex-shrink: 0 !important; + order: -1 !important; +} + +.ots-sidebar.collapsed .sidebar-submenu .flyout-header-text { + display: inline !important; + visibility: visible !important; + font-size: 14px !important; + font-weight: 700 !important; + text-transform: none !important; + letter-spacing: 0.01em !important; + color: #ffffff !important; + opacity: 1 !important; + width: auto !important; + overflow: visible !important; +} + +/* Light mode flyout header — keep the same primary banner */ +body.ots-light-mode .ots-sidebar.collapsed .sidebar-submenu .flyout-header { + background: var(--color-primary, #e87800) !important; + border-bottom: none !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .sidebar-submenu .flyout-header-icon { + color: #ffffff !important; +} + +body.ots-light-mode .ots-sidebar.collapsed .sidebar-submenu .flyout-header-text { + color: #ffffff !important; +} + +/* Flyout submenu
  • — full width, no centering */ +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list { + display: block !important; + width: 100% !important; + margin: 0 !important; + padding: 0 !important; +} + +/* Flyout submenu items — stretch to fill the popup width */ +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list > a { + display: flex !important; + align-items: center !important; + justify-content: flex-start !important; + gap: 10px !important; + padding: 8px 16px !important; + margin: 2px 6px !important; + height: auto !important; + width: calc(100% - 12px) !important; + background: transparent !important; + color: var(--color-text-secondary, #f1f5f9) !important; + border-radius: 6px !important; + font-size: 13px !important; + white-space: nowrap !important; + border: none !important; + border-left: none !important; + text-decoration: none !important; + box-sizing: border-box !important; +} + +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list > a:hover { + background: rgba(var(--ots-primary-rgb), 0.15) !important; + color: #ffffff !important; +} + +/* Show text labels inside flyout submenu — high specificity to override + the global .ots-sidebar.collapsed .ots-nav-text { display:none } */ +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list .ots-nav-text, +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list > a .ots-nav-text, +.ots-sidebar.collapsed .sidebar-submenu .ots-nav-text { + display: inline !important; + visibility: visible !important; + width: auto !important; + overflow: visible !important; + color: inherit !important; + font-size: 13px !important; + font-weight: 500 !important; +} + +/* Show icons inside flyout submenu — high specificity to override + collapsed icon sizing/color that makes them 20px sidebar icons */ +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list .ots-nav-icon, +.ots-sidebar.collapsed .sidebar-submenu .sidebar-list > a .ots-nav-icon, +.ots-sidebar.collapsed .sidebar-submenu .ots-nav-icon { + display: inline-flex !important; + visibility: visible !important; + width: 18px !important; + height: 18px !important; + font-size: 14px !important; + flex-shrink: 0 !important; + color: inherit !important; + margin: 0 !important; + align-items: center !important; + justify-content: center !important; +} + +/* Make sidebar-group position relative so flyout anchors correctly */ +.ots-sidebar.collapsed .sidebar-group { + position: relative !important; +} + +/* Add a bridge element so the mouse can travel from the icon to the flyout + without losing :hover (covers the 4px gap + some tolerance) */ +.ots-sidebar.collapsed .sidebar-group-toggle::before { + content: '' !important; + position: absolute !important; + top: 0 !important; + right: -12px !important; + width: 12px !important; + height: 100% !important; + background: transparent !important; + display: block !important; + pointer-events: auto !important; + z-index: 9999 !important; +} + +/* Also show a label tooltip on hover for top-level items */ +.ots-sidebar.collapsed .sidebar-group-toggle::after { + content: attr(data-group); + position: absolute; + left: 100%; + top: 50%; + transform: translateY(-50%); + background: var(--color-surface-elevated, #334155); + color: var(--color-text-primary, #fff); + padding: 4px 12px; + border-radius: 6px; + font-size: 13px; + font-weight: 500; + white-space: nowrap; + margin-left: 8px; + pointer-events: none; + opacity: 0; + transition: opacity 0.15s; + z-index: 9999; + box-shadow: 0 4px 12px rgba(0,0,0,0.2); +} + +.ots-sidebar.collapsed .sidebar-group:hover > .sidebar-group-toggle::after { + display: none; /* hide tooltip when submenu flyout is showing instead */ +} + +/* Single items (Dashboard etc) - show tooltip on hover */ +.ots-sidebar.collapsed > .sidebar-content .sidebar-nav > .sidebar-list > a { + position: relative !important; +} + +.ots-sidebar.collapsed > .sidebar-content .sidebar-nav > .sidebar-list > a::after { + content: attr(data-tooltip); + position: absolute; + left: 100%; + top: 50%; + transform: translateY(-50%); + background: var(--color-surface-elevated, #334155); + color: var(--color-text-primary, #fff); + padding: 4px 12px; + border-radius: 6px; + font-size: 13px; + font-weight: 500; + white-space: nowrap; + margin-left: 8px; + pointer-events: none; + opacity: 0; + transition: opacity 0.15s; + z-index: 9999; + box-shadow: 0 4px 12px rgba(0,0,0,0.2); +} + +.ots-sidebar.collapsed > .sidebar-content .sidebar-nav > .sidebar-list:hover > a::after { + opacity: 1; +} + +.ots-sidebar.collapsed .sidebar-header { + height: auto; + padding: 8px; + justify-content: center; + flex-direction: column; + gap: 8px; +} + +.ots-sidebar.collapsed .brand-icon { + flex-shrink: 0; +} + +/* ── Collapsed sidebar: reset base Xibo styles and center icons ───────── */ + +/* The