/* OCP HUB Chat & File Panel - Compact Royal Style (250x400px) */
/* Dark cosmic theme, gold accents, always visible, no collapse/toggle */

.ocp-hub-panel {
    position: absolute !important;
    bottom: 30px !important;
    left: 20px !important;
    width: 425px !important;
    height: 600px !important;
    background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 100%) !important;
    border: 2px solid #ffd700 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), inset 0 0 15px rgba(255,215,0,0.08) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    color: #e0e1dd !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Remove all collapsed/hidden states */
.ocp-hub-panel.collapsed,
.ocp-hub-panel .hub-content.hidden,
.activity-badge.hidden {
    display: none !important;
}

.hub-header {
    padding: 10px 14px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    color: #0f0f1a;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-bottom: 2px solid #d4a017;
    flex-shrink: 0;
}

/* Chat Section */
.hub-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-msg {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 14px;
    max-width: 88%;
    word-break: break-word;
}

.chat-msg.other {
    background: #40b4ff;
    align-self: flex-start;
    color: #fff;
}

.chat-msg.me {
    background: #ffd700;
    color: #0f0f1a;
    align-self: flex-end;
}

.chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid #ffd700;
}

.chat-input-area {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

#hub-chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ffd700;
    border-radius: 12px;
    background: #1a1a2e;
    color: #e0e1dd;
    font-size: 13px;
    outline: none;
}

#hub-chat-input:focus {
    border-color: #ffed4e;
    box-shadow: 0 0 12px rgba(255,215,0,0.5);
}

#hub-chat-send {
    padding: 8px 14px;
    background: #ffd700;
    color: #0f0f1a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

#hub-chat-send:hover {
    background: #ffed4e;
}

/* File Section */
.hub-files {
    padding: 10px;
    border-top: 1px solid #ffd700;
    flex-shrink: 0;
}

.file-drop-zone {
    height: 50px;
    border: 2px dashed #ffd700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-drop-zone.dragover {
    background: rgba(255,215,0,0.12);
    border-color: #ff4444;
}

.file-list {
    max-height: 80px;
    overflow-y: auto;
    font-size: 11px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(64,180,255,0.08);
    border-radius: 8px;
    margin: 4px 0;
}

.file-item a {
    color: #40b4ff;
    text-decoration: none;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item span {
    color: #aaa;
    font-size: 10px;
}

/* Controls */
.hub-controls {
    padding: 8px 10px;
    border-top: 1px solid #ffd700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-shrink: 0;
}

#hub-invite-btn {
    padding: 6px 12px;
    background: #40b4ff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
}

#hub-invite-btn:hover {
    background: #2a9df4;
}

#hub-online-count {
    color: #ffd700;
    font-weight: bold;
}

/* Force visibility overrides */
.ocp-hub-panel,
.ocp-hub-panel *,
#ocp-hub-panel-wrapper {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}