/* === Expert Interface Styles === */
html, body {
    background-color: #07b1d3;
    margin: 0;
    padding: 0;
}
.container {
    background: transparent;
}
.block-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 20px;
    position: relative;
    background: transparent;
}
.block {
    min-width: 200px;
    min-height: 125px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #07b1d3;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
.block h4 {
    color: #07b1d3;
}
.block select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    color: #333;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
}
.hidden {
    display: none;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.block-container-wrapper {
    position: relative;
    padding-right: 140px;
    background: transparent;
}
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
.logo-container img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo-container img:hover {
    transform: scale(1.1);
}
.split-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
}
.left-pane {
    flex: 1 1 50%;
    overflow-y: auto;
    background: transparent;
    min-width: 0;
}
.right-pane {
    flex: 1 1 50%;
    min-width: 0;
    border-left: 2px solid #e0e0e0;
    background: #f8f8f8;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.right-pane iframe {
    width: 100%;
    height: 100vh;
    border: none;
}
.divider-bar {
    position: relative;
    width: 0;
    min-width: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.divider-toggle-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4000;
    background: #07b1d3;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
}
.divider-toggle-btn:hover {
    background: #0592ad;
}

.left-pane-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

/* Hide right pane when collapsed */
.right-pane.collapsed {
    display: none;
}

/* Expand left pane when right is hidden */
.left-pane.expanded {
    flex: 1 1 100%;
}

/* Floating chat window styles */
.floating-chat {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 5000;
    overflow: hidden;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(30px);
    transition: opacity 0.25s, transform 0.25s;
}
.floating-chat.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}
.floating-chat-header {
    background: #07b1d3;
    color: #fff;
    padding: 10px 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}
.floating-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.floating-chat iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
}

#openFloatingChatBtn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 5100;
    margin-top: 0;
}
.floating-chat-resizer {
    position: absolute;
    width: 18px;
    height: 18px;
    right: 2px;
    bottom: 2px;
    cursor: se-resize;
    z-index: 10;
    background: transparent;
}
.floating-chat-resizer:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #07b1d3 60%, transparent 60%);
    border-radius: 3px;
    opacity: 0.7;
}
.floating-chat {
    resize: none !important;
    /* disables native resize for custom handle */
}