/* blop-control.css - Royal Blop Interface - Final Balanced Edition */

.blop-dialog {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; z-index: 99999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blop-dialog-content {
    background: #0f1626;
    border: 8px solid #ffd700;
    border-radius: 20px;
    width: 92%;
    max-width: 1380px;
    height: 94vh;
    max-height: 94vh;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255,215,0,0.6);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blop-dialog-header {
    background: #1a2538;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #ffd700;
    flex-shrink: 0;
    min-height: 68px;
    z-index: 10;
}

.blop-dialog-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    color: #e0f7ff;
    display: flex;
    gap: 12px;
}

.blop-royal-grid {
    display: flex;
    flex: 1;
    gap: 12px;
    overflow: hidden;
    height: 100%;
}

.blop-dialog-content.vertical .blop-royal-grid {
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    max-height: none;
}

.blop-dialog-content.horizontal .blop-royal-grid {
    flex-direction: row;
    overflow: hidden;
}

.blop-chat-section {
    flex: 0 0 170px;
    background: #1e2a44;
    border: 6px solid #40b4ff;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Make Live Chat taller in Vertical mode only */
.blop-dialog-content.vertical .blop-chat-section {
    flex: 0 0 320px;           /* Increase this number if you want it even taller */
}

.blop-desktop-section {
    flex: 1;
    min-width: 300px;
    background: #1e2a44;
    border: 6px solid #40b4ff;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blop-whiteboard-section {
    flex: 1.35;
    min-width: 340px;
    background: #1e2a44;
    border: 6px solid #40b4ff;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

#whiteboard-canvas {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff;
    border: 4px solid #ffd700;
    border-radius: 12px;
    flex: 1;
}

#royal-round-table {
    width: 100%;
    max-width: 520px;
    height: 340px;
    margin: 15px auto;
    background-size: contain;
    background-position: center;
    position: relative;
}

#whiteboard-toolbar {
    background: #1a2538;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#hangout-sidebar {
    width: 280px;
    background: #1a2538;
    border: 6px solid #ffd700;
    border-radius: 16px;
    padding: 15px;
    overflow-y: auto;
    flex-shrink: 0;
}

.blop-dialog-content.horizontal #hangout-sidebar {
    display: none;
}

@media (max-width: 1400px) {
    .blop-dialog-content { max-width: 1280px; }
}

@media (max-width: 900px) {
    .blop-dialog-content.horizontal .blop-royal-grid {
        flex-direction: column;
    }
    .blop-chat-section { flex: 0 0 140px; }
    #hangout-sidebar { width: 240px; }
}

@media (max-width: 640px) {
    .blop-dialog-content { height: 92vh !important; }
    .blop-dialog-content.horizontal #hangout-sidebar { display: none; }
}