/* Sidebar / Floating Window position on bottom right */
#wprc-portal-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 320px;
    max-width: 88vw;
    background: #ffffff;
    border: 2px solid #2b7a78;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999999;
    font-family: Arial, sans-serif;
    font-size: 12px;
    overflow: hidden;
}

/* Header styling */
#wprc-portal-header {
    background: #2b7a78;
    color: #ffffff;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#wprc-portal-header h2 {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
}

#wprc-nickname-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

#wprc-nickname-bar span {
    color: #e0f2f1;
}

#wprc-anon-nick {
    width: 80px;
    padding: 2px 4px;
    border-radius: 3px;
    border: none;
    font-size: 10px;
}

/* Body layout */
#wprc-portal-body {
    padding: 8px;
    background: #fff;
}

/* Room tabs */
#wprc-sidebar-rooms {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    align-items: center;
}

#wprc-rooms-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 0 3px 0;
    margin: 0;
    list-style: none;
    flex-grow: 1;
}

#wprc-rooms-list li {
    background: #e0f2f1;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 10px;
    color: #17252a;
}

#wprc-rooms-list li.active {
    background: #2b7a78;
    color: #fff;
    font-weight: bold;
}

#wprc-add-room-btn {
    background: #f0f4f8;
    border: 1px dashed #2b7a78;
    color: #2b7a78;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    padding: 2px 5px;
    white-space: nowrap;
}

/* Messages Box */
#wprc-current-room-title {
    font-size: 10px;
    color: #666;
    margin-bottom: 3px;
}

#wprc-messages {
    height: 160px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    padding: 6px;
    overflow-y: auto;
    margin-bottom: 6px;
    border-radius: 3px;
}

.wprc-msg-item {
    margin-bottom: 5px;
    line-height: 1.2;
    word-break: break-word;
}

/* Textarea & Controls */
#wprc-message-input {
    width: 100%;
    height: 40px;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: none;
    font-size: 11px;
}

#wprc-controls-row {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#wprc-pre-translate-bar {
    display: flex;
    gap: 2px;
    align-items: center;
    font-size: 9px;
    color: #666;
}

.wprc-trans-input-btn {
    background: #3aaf9f;
    color: white;
    border: none;
    padding: 1px 4px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 8px;
}

#wprc-send-btn {
    background: #2b7a78;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    font-size: 10px;
}