/* blop-control.css - Royal Blop Interface - Royal Round Table FULLY VISIBLE 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-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 40, 0.92); backdrop-filter: blur(18px);
}

.blop-dialog-content {
    background: linear-gradient(135deg, #f8fdff 0%, #e6f7ff 100%);
    border-radius: 40px;
    width: 1600px !important;
    max-width: none !important;
    height: 900px;
    max-height: 96vh;
    overflow: hidden;
    box-shadow: 0 80px 100px rgba(0,100,150,0.7), 0 0 250px rgba(64,180,255,0.7);
    border: 12px solid #40b4ff;
    position: relative;
    animation: blopRoyalFadeIn 1s ease-out;
    display: grid;
    grid-template-rows: 80px 1fr 80px;
}

.blop-dialog-header {
    padding: 20px 60px;
    background: linear-gradient(90deg, #007cba, #40b4ff, #007cba);
    color: white;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 36px 36px 0 0;
}
.blop-dialog-header h3 { margin: 0; font-size: 42px; font-weight: 700; letter-spacing: 3px; }
.blop-close {
    width: 50px; height: 50px; background: rgba(255,255,255,0.4); border: none;
    border-radius: 50%; font-size: 34px; color: white; cursor: pointer;
}
.blop-close:hover { background: #d63638; transform: scale(1.3); }

.blop-dialog-body {
    padding: 40px 70px;
    background: rgba(255,255,255,0.96);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.blop-royal-grid {
    display: grid;
    grid-template-columns: 380px 380px 1fr;
    gap: 50px;
    min-height: 680px;
}

.blop-message-section,
.blop-chat-section,
.blop-desktop-section {
    background: white;
    border-radius: 50px;
    padding: 25px 30px;
    border: 14px solid #40b4ff;
    box-shadow: 0 25px 60px rgba(0,100,150,0.22);
    display: flex;
    flex-direction: column;
}

.blop-message-section h4,
.blop-chat-section h4,
.blop-desktop-section h4 {
    margin: 0 0 30px 0;
    font-size: 38px;
    color: #007cba;
    text-align: center;
    font-weight: 700;
}
.blop-message-section h4::after,
.blop-chat-section h4::after,
.blop-desktop-section h4::after {
    content: ''; display: block; width: 180px; height: 10px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    margin: 15px auto 0; border-radius: 8px;
    box-shadow: 0 0 30px rgba(255,215,0,0.9);
}

#blop-message-text {
    width: 100%;
    height: 140px;
    padding: 20px;
    font-size: 19px;
    border: 10px solid #40b4ff;
    border-radius: 32px;
    background: #f8fdff;
    resize: none;
}

#chat-messages {
    height: 300px;
    padding: 20px;
    background: #f8fdff;
    border: 10px solid #40b4ff;
    border-radius: 32px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.blop-chat-input-wrapper textarea {
    width: 100%;
    height: 70px;
    padding: 18px;
    font-size: 19px;
    border: 10px solid #40b4ff;
    border-radius: 32px;
    background: #f8fdff;
    resize: none;
}

/* MINI DESKTOP - ROYAL ROUND TABLE VISIBLE FOREVER */
.blop-desktop-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 680px;
}

#blop-upload-area {
    width: 260px;
    height: 80px;
    border: 10px dashed #40b4ff;
    border-radius: 36px;
    background: #f0fbff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: #007cba; font-weight: bold;
}
#blop-upload-area::before { content: "DropZone"; }
#blop-upload-area.dragover {
    border-color: #ffd700; background: rgba(255,215,0,0.2);
    transform: scale(1.03);
}

.blop-desktop-buttons {
    display: flex;
    gap: 25px;
}

.blop-desktop-buttons button {
    padding: 12px 40px;
    background: linear-gradient(90deg, #007cba, #40b4ff);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(64,180,255,0.7);
    transition: all 0.4s;
}
.blop-desktop-buttons button:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(64,180,255,0.9);
}

/* ROYAL ROUND TABLE - NOW FULLY VISIBLE */
.blop-royal-table {
    width: 380px;
    height: 380px;
    background: url('./images/royal-round-table.png') center/contain no-repeat;
    background-size: 380px 380px;
    border: 10px solid #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255,215,0,0.8), 0 20px 60px rgba(0,0,0,0.5);
    margin: 20px 0;
    flex-shrink: 0;
}

#blop-file-list {
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    padding-top: 10px;
}
.blop-file-item {
    padding: 18px 24px;
    background: white;
    border: 8px solid #b3e0ff;
    border-radius: 28px;
    margin: 12px 0;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blop-btn.primary, #blop-message-save, #chat-send {
    padding: 16px 50px;
    background: linear-gradient(90deg, #007cba, #40b4ff);
    color: white; border: none; border-radius: 70px;
    font-size: 20px; font-weight: bold; cursor: pointer;
    box-shadow: 0 15px 40px rgba(64,180,255,0.8);
}
.blop-btn.primary:hover, #blop-message-save:hover, #chat-send:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 25px 60px rgba(64,180,255,1);
}

.blop-actions-right { text-align: center; margin-top: 25px; }

.blop-dialog-footer {
    padding: 30px;
    text-align: center;
    background: rgba(255,255,255,0.98);
    border-top: 4px solid #b3e0ff;
}
#blop-close-btn {
    padding: 18px 80px;
    font-size: 22px;
}

@keyframes blopRoyalFadeIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}