body {
    margin: 0;
    padding: 0;
    background-color: #111;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow: hidden; 
}

.app-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
}

.left-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    height: 100vh;
}

.video-wrapper {
    height: 100vh;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;    
    width: 220mm; 
}

.video-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    z-index: 9999;
    background-color: rgba(255, 152, 0, 0);
    transition: background-color 0.2s;
}

.video-wrapper:hover::after {
    background-color: rgba(255, 152, 0, 0.2); 
}

#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*transform:  scaleY(-1);*/
}

#remoteVideo::-webkit-media-controls-panel {    
    /*transform: scaleY(-1); */
}


.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border-left: 2px solid #2d2d2d;
    padding: 0;
}

.interface-main-container {
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    overflow: hidden;
}

.tabs-main {
    display: flex;
    background-color: #222;
    border-bottom: 2px solid #333;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.tab-btn:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.tab-btn.active {
    background-color: #1a1a1a;
    color: #00bcd4;
    font-weight: bold;
    border-bottom: 2px solid #00bcd4;
}

.tabs-sub {
    display: flex;
    background-color: #262626;
    border-bottom: 1px solid #3a3a3a;
    flex-shrink: 0;
}

.sub-tab-btn {
    padding: 10px 25px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
}

.sub-tab-btn:hover {
    color: #fff;
}

.sub-tab-btn.active {
    background-color: #2e2e2e;
    color: #ff9800;
    font-weight: bold;
}

.tab-content, .sub-tab-content {
    display: none !important;
}

.tab-content.active, .sub-tab-content.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    padding: 15px 0 0 0;
    overflow: hidden;
}

.tab-content.active:not(:has(.tabs-sub)) {
    padding: 15px 0 0 0;
}

.session-input-block {
    margin: 0 15px 15px 15px; 
    flex-shrink: 0;
}

.session-label {
    display: block; 
    font-weight: bold; 
    margin-bottom: 5px; 
    color: #ccc;
}

.session-input {
    width: 100%; 
    padding: 8px; 
    border: 1px solid #444; 
    background: #222; 
    color: #fff; 
    border-radius: 4px; 
    box-sizing: border-box;
}

.tab-inner-wrapper {
    display: flex; 
    flex-direction: row; 
    width: 100%; 
    flex: 1; 
    box-sizing: border-box; 
    gap: 20px; 
    overflow: hidden;
}

.controls-block {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 10px;              
    height: 100%;
    box-sizing: border-box;
}

.controls-block .btn {
    width: 100% !important;  
    display: block !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.btn {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
}

.btn-start { background-color: #28a745; color: white; }
.btn-stop { background-color: #dc3545; color: white; }
.btn:disabled { background-color: #444; color: #777; cursor: not-allowed; }
#recStatus { margin-top: 10px; font-size: 14px; color: #aaa; }

.placeholder-text { 
    width: 100%;
    text-align: center;
    color: #666; 
    font-size: 16px; 
    padding-left: 0;
    margin-top: 15px;
    margin-bottom: 5px;
    line-height: 1;
    flex-shrink: 0;
}

.audio-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.audio-buttons-row .btn-audio-start,
.audio-buttons-row .btn-audio-stop,
.audio-buttons-row .btn-photo {
    flex: 1 !important;
    width: 100% !important;
    white-space: nowrap !important;
}

.server-files-container {
    width: 100%;
    max-width: 400px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    flex-grow: 1;                
    overflow-y: auto;
    font-family: monospace;
    font-size: 11px;
    line-height: 14px;
    color: #00ff00;
    box-sizing: border-box;
    margin: 0;
    padding: 5px;
    min-height: 100px;
}

.server-file-link {
    display: block; 
    color: #00ff00; 
    text-decoration: none; 
    margin-bottom: 2px; 
    width: 100%; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.recorder-controls {
    background-color: #222;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    max-width: 400px;
}

.recorder-controls h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #ccc;
}

.tab-split-right {
    position: relative;
    flex: 1;                
    display: flex;
    flex-direction: column; 
    gap: 10px;
    height: 100%;           
    box-sizing: border-box;
}

.btn-ai {
    width: 100%;            
    padding: 5px;
    background-color: #262626;
    border: 1px solid #3a3a3a;
    color: #ff9800;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
}

.btn-ai:hover {
    background-color: #323232;
    color: #fff;
}

.ai-textareaQuery {
    width: 100% !important;
    flex: 20 !important;                
    background-color: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    resize: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
}

.ai-textarea {
    width: 100% !important;
    flex: 80 !important;                
    background-color: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    resize: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
}

.indicator-opacity-0 {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.indicator-opacity-1 {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.indicator-slider-center {
    top: 50%;
    left: 0%;
    transform: translate(0%, -50%);
}

.indicator-book-none {
    display: none !important;
}

#indicatorBook {
    position: absolute;
    width: 70px;
    height: 70px;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    pointer-events: none;
}

#indicatorSlider {
    position: relative;
    width: 70px;
    height: 70px;
    margin: auto;
}

.circularG {
    position: absolute;
    background-color: red;
    width: 14px;
    height: 14px;
    border-radius: 9px;
    animation-name: bounce_circularG;
    animation-duration: 1.1s;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

#circularG_1 { left: 0; top: 23px; animation-delay: 0.41s; }
#circularG_2 { left: 6px; top: 6px; animation-delay: 0.55s; }
#circularG_3 { top: 0; left: 23px; animation-delay: 0.69s; }
#circularG_4 { right: 6px; top: 6px; animation-delay: 0.83s; }
#circularG_5 { right: 0; top: 23px; animation-delay: 0.97s; }
#circularG_6 { right: 6px; bottom: 6px; animation-delay: 1.1s; }
#circularG_7 { left: 23px; bottom: 0; animation-delay: 1.24s; }
#circularG_8 { left: 6px; bottom: 6px; animation-delay: 1.38s; }

@keyframes bounce_circularG {
    0% { transform: scale(1); }
    100% { transform: scale(0.3); }
}

#log_container {
    height: 20vh; 
    background: #111; 
    border-top: 2px solid #333; 
    color: #00ff00; 
    font-family: monospace; 
    font-size: 12px; 
    padding: 8px; 
    box-sizing: border-box; 
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    gap: 0;
}

.log-box-flex {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.log-left-col, #logs-container-left {
    width: 33.33%;
    min-width: 33.33%;
    max-width: 33.33%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding-right: 10px;
}

.log-right-col, #logs-container-right {
    width: 66.66%;
    min-width: 66.66%;
    max-width: 66.66%;
    height: 100%;
    overflow-y: auto;
    border-left: 1px solid #333; 
    box-sizing: border-box;
    padding-left: 15px; 
    color: #00ff00;
}

#logs-container-left div, #logs-container-right div {
    display: block;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 4px;
}
