﻿
#timelineContainer {
    position: relative;
    margin-left: 160px; /* Space for labels */
    padding-top: 30px; /* Space for time markings */
}



#panelContainer {
    position: relative;
}


.container {
    max-width: 1860px;
}
.jsoncontainerlayoutdiv {
    margin: 2px;
}

.listdivwrapper {
    /*    display: inline-block;
*/
    vertical-align: top;
    white-space: nowrap;
    overflow-x: scroll;
    /*width: calc(100% - 360px);*/
    width: 100%;
    /*margin-bottom: 70px;*/
    /*    border: solid 2px #11578A;
*/ border: solid 2px white;
    /*border-radius: 5px;*/
}

    .listdivwrapper::-webkit-scrollbar {
        display: block;
        height: 8px;
        /*width: 50px;*/
        background-color: gray;
    }

    .listdivwrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    .listdivwrapper::-webkit-scrollbar-thumb {
        background-color: #1F1E1E;
        border-radius: 4px;
    }


.childpaneldiv {
    width: 98%;
    height: auto;
    display: block;
}

.effectslistdivwrapper {
    display: none;
    vertical-align: top;
    white-space: nowrap;
    overflow-x: scroll;
    /*width: calc(100% - 360px);*/
    width: 100%;
    margin-bottom: 70px;
    border: solid 2px #11578A;
    border-radius: 5px;
}

.divPreviewShowSceneEffectTimelineDivContainer {
    display: block;
    vertical-align: top;
    white-space: nowrap;
    /*width: calc(100% - 6px);*/
    /*width: 100%;*/
    /*    border: solid 2px #11578A;
*/ border: solid 2px white;
    /*border-radius: 5px;*/
    /*margin-top: 10px;*/
    margin-bottom: 10px;
    margin-left: 3px;
    background-color: white;
    overflow: hidden;
}

.timelinepaneldiv {
    position: relative;
    height: 30px;
    margin-bottom: 10px;
}

.timelinepanellabeldiv {
    position: absolute;
    left: -160px;
    top: 0;
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timelinepaneleffectsdiv {
    position: relative;
    height: 30px;
}


.timelineeffectdiv {
    margin-left: 0;
    padding-left: 0;
    position: absolute; /* Ensure the effect position is relative to its parent */
    left: 0; /* Ensure it starts at the left edge of its container */
}

.effect-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 5px;
    font-size: 12px;
    overflow: hidden;
}

.effect-type-icon {
    margin-right: 5px;
}

.effect-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.effect-duration {
    margin-left: 5px;
}

.effect-type-video {
    background-color: rgba(255, 0, 0, 0.3);
}

.effect-type-image {
    background-color: rgba(0, 255, 0, 0.3);
}

.effect-type-audio {
    background-color: rgba(0, 0, 255, 0.3);
}

.effect-type-color {
    background-color: rgba(255, 255, 0, 0.3);
}

.effect-type-text {
    background-color: rgba(255, 0, 255, 0.3);
}


.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: e-resize;
    background-color: rgba(0, 0, 0, 0.2);
}


.time-markings {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    border-bottom: 1px solid #ccc;
}

.time-marking {
    position: absolute;
    top: 0;
    height: 20px;
    border-left: 1px solid #ccc;
    padding-left: 2px;
    font-size: 10px;
}

.selection-box {
    position: absolute;
    border: 1px solid blue;
    background-color: rgba(0, 0, 255, 0.1);
    pointer-events: none;
}

.timelinedurationdiv {
    height: 100%;
    position: absolute;
    width: 34px;
    /*margin: 2px;*/
    border: 0px red solid;
    /*border-radius: 5px;*/
    /*padding: 3px;*/
}

.timelineeffectdiv {
    height: 100%;
    background-size: 100% 100%;
    width: 30px;
    margin: 2px;
}

.previewshowsceneeffectdivwrapper {
    display: block;
    vertical-align: top;
    white-space: nowrap;
    width: 100%;
    /*max-width: 350px;*/
}

.previewlayoutscreenpaneldivwrapper {
    display: none;
    vertical-align: top;
    white-space: nowrap;
    width: 100%;
    /*max-width: 350px;*/
    margin-bottom: 70px;
}
.divPreviewLayoutScreenContainer {
    /*display: none;*/
    vertical-align: top;
    white-space: nowrap;
    width: 100%;
    /*max-width: 350px;*/
    margin-bottom: 70px;
}
.previewhelpdivwrapper {
    display: none;
    vertical-align: top;
    white-space: nowrap;
    width: 100%;
    /*max-width: 350px;*/
    margin-bottom: 70px;
}


.fullviewdivwrapper {
    width: 100%;
    height: 100%;
}


canvas {
    /*border: 1px solid red;*/
}

.arrow {
    cursor: pointer;
}

.displayimagediv {
    max-height: 40px;
    max-width: 80px;
}


.logodiv {
    max-height: 70px;
    border-radius: 8px;
    /*background-color: #15202B;*/
    cursor: pointer;
}

.logo {
    max-height: 60px;
}


.divPreviewScene {
    /*width: 100%;*/
    background-color: black;
    position: relative;
    height: 270px;
    width: 350px;
    /*min-width: 350px;*/
    margin: 0 auto;
    overflow: hidden;
    display: inline-block;
}

.divPreviewPanel {
    /*width: 100%;*/
    background-color: black;
    position: relative;
    height: 300px;
    width: 350px;
    /*min-width: 350px;*/
    margin: 0 auto;
    border-radius: 5px;
    overflow: visible;
}

.divPanel {
    position: absolute;
    cursor: pointer;
}

.divEffect {
    position: absolute;
    cursor: pointer;
}
/*
.divFullviewScene {
    background-color: black;
    position: relative;
    width: 100%;
    height: 100%;
}*/

.divFullviewPanel {
    background-color: black;
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

.divVideo {
    /*border:1px red solid;*/
    position: absolute;
    z-index: 0;
    display: none;
}

.divPreviewSceneButtons {
    margin: 0 auto;
    white-space: nowrap;
    /*    position:absolute;
    top:280px;*/
}

.divPreviewLayoutScreenPanelButtons {
    /* width: 100%; */
    /*  background-color: black;*/
    position: relative;
    /*height: 270px;*/
    width: 350px;
    /* min-width: 350px; */
    /*margin: 0 auto;*/
    border-radius: 5px;
    overflow: hidden;
    border: 1px black solid;
    /*color: white;*/
    margin-left: 4px;
}

.divSelectScreenShowScene {
    border-radius: 5px;
    overflow: hidden;
    border: 1px black solid;
    text-align: center;
    font-weight: bold;
    background-color: #C30B0F;
    margin-bottom: 20px;
    color: white;
}


@media only screen and (max-width: 820px) {
    .logo {
        max-height: 40px;
    }

    .listdivwrapper {
        width: 100%;
        height: calc(100% - 380px);
        /*      position: absolute;
        bottom: 0px;*/
        /*margin-bottom: 70px;*/
    }

    .effectslistdivwrapper {
        /* Hide effects grid on narrow screens */
        display: none !important;
        width: 100%;
        height: calc(100% - 380px);
        /*      position: absolute;
        bottom: 0px;*/
        margin-bottom: 70px;
    }

    .previewdivwrapper {
        /*      position: absolute;
        top: 40px;*/
    }

    .divPreviewShowSceneEffectTimelineDivContainer {
        /* Hide timeline on narrow screens */
        display: none !important;
        /*      position: absolute;
        top: 40px;*/
    }

    /* Stack preview above lists on narrow screens */
    .divPreviewRight,
    .divPreviewLeft {
        width: 100%;
        float: none;
    }
}

@media screen and (max-width: 980px) {
}

.corner {
    position: absolute;
    height: 20px;
    width: 20px;
    background-color: lime;
    color: black;
    font-size: 18px;
    font-weight: bold;
    z-index: 9999;
    border-radius: 50%;
    text-align: center;
}

.divPreviewLeft {
    width: 30%;
    float: left;
}

.divPreviewRight {
    width: 70%;
    float: right;
    white-space: nowrap;
}

.divPreviewSceneContainer {
    background-color: black;
    position: relative;
    height: 320px;
    min-height: 40px;
    width: 279px;
    /*min-width: 350px;*/
    margin: 0 auto;
    overflow: visible;
    float: left;
    border: 2px white solid;
    min-width: 40px;
    box-sizing: border-box; /* Include border in width/height calculations */
}

/* Inner content wrapper to clip overflowing content */
.divPreviewSceneContainer > .content-clip-wrapper {
    position: absolute;
    top: 35px; /* Below the header */
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.divPreviewSceneContainer > .content-clip-wrapper > * {
    pointer-events: auto;
}

/* Header outside clip wrapper */
.divPreviewSceneContainer > .appheader {
    background-color: transparent;
    cursor: move;
}

/* Handles should be direct children, positioned relative to container, and above content */
.divPreviewSceneContainer > .resize-handle {
    z-index: 10;
    pointer-events: auto;
}

/* Ensure bottom handles stay at bottom */
.divPreviewSceneContainer > .resize-s,
.divPreviewSceneContainer > .resize-se,
.divPreviewSceneContainer > .resize-sw {
    top: auto !important;
}

/*.divPreviewLayoutScreenPanelContainer {
    background-color: black;
    position: relative;
    height: 320px;
    width: 100%;*/
    /*min-width: 350px;*/
    /*margin: 0 auto;
    overflow: hidden;*/
    /* float: left; */
    /*border: 2px white solid;
}*/

@media only screen and (min-width: 1300px) {
    .divPreviewLeft {
        width: 30%;
        float: left;
    }

    .divPreviewRight {
        width: 70%;
        float: right;
    }
}

@media only screen and (min-width: 1380px) {
    .divPreviewLeft {
        width: 30%;
        float: left;
    }

    .divPreviewRight {
        width: 70%;
        float: right;
    }
}

@media only screen and (min-width: 1652px) {
    .divPreviewLeft {
        width: 30%;
        float: left;
    }

    .divPreviewRight {
        width: 70%;
        float: right;
    }
}

.feed-content-homeshow {
    width: calc(100% - 500px);
    padding-bottom: 80px;
}
/*
#jsoncontainerlayout-EffectLayout {
    display: none;
}*/

.jsoncontainerlayoutdiv {
    /*max-width:400px;*/
    display: block;
    margin-right: 2px;
    vertical-align: top;
}

.divStartShowButton {
    /*    border-radius: 20px;
    background-color: white;
    float: right;
    color: red;
    font-weight: bold;
    padding: 2px;
    border: 1px red solid;*/
    cursor: pointer;
    color: white;
    float: right;
    margin: 2px;
    border: 1px solid white;
    padding: 2px;
    border-radius: 6px;
}

.divPreviewScreenName {
    /*    border-radius: 20px;
    background-color: white;
    float: right;
    color: red;
    font-weight: bold;
    padding: 2px;
    border: 1px red solid;*/
    color: white;
    float: left;
    margin: 2px;
    padding: 2px;
}
.iframe-container {
    overflow: hidden;
    /* 16:9 aspect ratio */
    /*    padding-top: 56.25%;
*/ position: relative;
    /*    margin-left: 5%;
    margin-right: 5%;
*/
    height: 100%;
}

    .iframe-container iframe {
        border: 0;
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

.divShowPanelsName {
    color: white;
    float: left;
    margin: 2px;
    padding: 2px;
}
.divShowPanelsButton {
    border-radius: 20px;
    background-color: white;
    float: right;
    color: red;
    font-weight: bold;
    padding: 2px;
    border: 1px red solid;
    cursor: pointer;
    display: none;
}

.previewscenedivwrapper {
    overflow: visible;
    position: relative; /* allow absolutely-positioned screen containers */
    min-height: 350px; /* keep area visible when children are absolute */
    padding: 10px; /* space for resize handles to be visible */
}

/* Mobile overrides placed at end to ensure precedence */
@media only screen and (max-width: 820px) {
    .divPreviewRight,
    .divPreviewLeft {
        width: 100% !important;
        float: none !important;
    }
    .previewshowsceneeffectdivwrapper {
        white-space: normal;
    }
}

/* =====================================================
   Display Profile Styles
   ===================================================== */

.divPreviewDisplayProfileContainer {
    vertical-align: top;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 70px;
}

.divPreviewDisplayProfileList {
    background-color: rgba(0, 188, 212, 0.05);
    min-height: 200px;
    border-radius: 8px;
    padding: 5px;
}

.display-profile-preview-header {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 150, 170, 0.1) 100%);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(0, 188, 212, 0.3);
}

.display-profile-preview-header h4 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.display-profile-preview-content {
    padding: 10px;
}

.display-profile-info {
    transition: all 0.3s ease;
}

.display-profile-info:hover {
    background: rgba(0, 188, 212, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.display-profile-mapping-visual {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
}

.mapping-visual-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(200, 120, 0, 0.1) 100%);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
}

.mapping-visual-header h5 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mapping-visual-content {
    padding: 10px;
}

.panel-mappings-list table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.panel-mappings-list table thead tr {
    font-weight: 600;
}

.panel-mappings-list table tbody tr {
    transition: background-color 0.2s ease;
}

.panel-mappings-list table tbody tr:hover {
    background-color: rgba(255, 152, 0, 0.1);
}

/* Display Profile Tab Button */
#tabDisplayProfiles {
    transition: all 0.2s ease;
}

#tabDisplayProfiles:hover {
    background-color: rgba(0, 188, 212, 0.3) !important;
}

/* Logical Panel Name Badge Styling */
.logical-panel-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #00bcd4 0%, #00838f 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
}

/* Panel Mapping Arrow Animation */
.mapping-arrow {
    display: inline-block;
    animation: pulse-arrow 1.5s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

/* Display Profile Card in Grid */
.display-profile-card {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 150, 170, 0.05) 100%);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.display-profile-card:hover {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 150, 170, 0.1) 100%);
    border-color: #00bcd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.display-profile-card.selected {
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.4);
}

.display-profile-card .profile-name {
    color: #00bcd4;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.display-profile-card .profile-layout {
    color: #888;
    font-size: 12px;
}

.display-profile-card .default-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #4caf50;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* Responsive adjustments for Display Profiles */
@media only screen and (max-width: 820px) {
    .divPreviewDisplayProfileContainer {
        white-space: normal;
    }
    
    .display-profile-mapping-visual {
        margin-top: 10px;
    }
    
    .panel-mappings-list table {
        font-size: 12px;
    }
    
    .panel-mappings-list table th,
    .panel-mappings-list table td {
        padding: 6px !important;
    }
}