/* custom.chatcategories — UI styles */

/* Shared input */
.custom-cat-input {
    width: 200px;
    padding: 6px 10px;
    border: 1px solid #c4c7cc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

/* Popup wrapper */
.custom-cat-popup-wrapper {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Button row inside popup */
.custom-cat-btn-row {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    margin-top: 10px;
}

/* Cancel button */
.custom-cat-btn-cancel {
    padding: 4px 14px;
    background: rgb(238, 238, 238);
    color: rgb(51, 51, 51);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

/* Save / Create button */
.custom-cat-btn-save {
    padding: 4px 14px;
    background: rgb(59, 200, 245);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

/* Apply button (add chat popup) */
.custom-cat-btn-apply {
    padding: 6px 16px;
    background: #3bc8f5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

/* "Add chat" button — native recent header: white bar, cyan text */
.custom-cat-add-chat-btn {
    background: #fff;
    color: #2fc6f6;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-bottom: 1px solid #e6e7e8;
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
}

.custom-cat-add-chat-btn .custom-cat-add-chat-plus {
    font-size: 16px;
    line-height: 1;
    color: inherit;
}

.custom-cat-add-chat-btn:hover {
    background: #fff;
    color: #1eaad6;
}

/* "Add category" item in more-menu */
.custom-cat-create-menu-item .main-submenu-item-text {
    color: #0154c8;
}


/* Demo/test stand: portal + module version in the empty lower-right of /online/ */
.classnyisait-chatcat-version-badge {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 20;
    pointer-events: none;
    font-size: 11px;
    line-height: 1.25;
    color: #5c6470;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 3px 8px;
    white-space: pre-line;
    word-break: break-word;
    max-width: min(360px, 42vw);
    max-height: 40vh;
    overflow-x: hidden;
    overflow-y: auto;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}
body > .classnyisait-chatcat-version-badge {
    position: fixed;
}
.classnyisait-chatcat-version-badge:hover {
    pointer-events: auto;
    color: #2f343b;
    background: rgba(255, 255, 255, 0.96);
}
