html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.user {
    cursor:pointer;
    border:0px;
    border-bottom:1px solid #333;
    padding-bottom:10px;
    padding-top:10px;
}

.container {
    max-width: 100vw; 
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex-grow: 1;
    height: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.chat-panel {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* Oldalsó panelek */
.side-panel, .side-panel-left {
    position: absolute;
    top: 0;
    height: calc(100% - 10px);
    /* background: white; */
    border-left: 1px solid #ccc;
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.side-panel { right: 0; width: 40%; }
.side-panel-left { left: 0; width: 40%; }

@media (max-width: 768px) {
    .side-panel, .side-panel-left {
        width: 80%;
    }
}

.side-panel.closed { transform: translateX(100%); }
.side-panel-left.closed { transform: translateX(-100%); }
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 4px 12px 4px 4px;
    object-fit: cover;
    flex: 0 0 auto;
}

#publicChat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#usersCount { flex: 0 0 auto; }

.profile-ring-girl {
    box-shadow: 0 0 0 2px #202428, 0 0 0 4px #f28cb8;
}

.profile-ring-guy {
    box-shadow: 0 0 0 2px #202428, 0 0 0 4px #6ea8fe;
}

.profile-ring-couple {
    box-shadow: 0 0 0 2px #202428, 0 0 0 4px #7f00ff;
}
 
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    padding: 5px;
    height: calc(100% - 50px); /* Input mező felett tölti ki a teret */
    margin-top:0px;
}

/* Privát chat */
#privateChat {
    display: none;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.privateChatHeader {
    padding-bottom:10px;
    border-bottom:1px solid #5c5c5c
}

.pinned-message {
    flex: 0 0 auto;
    margin: 0;
    padding: 2px 4px;
    border: 0;
    border-bottom: 1px solid #3a3d40;
    background: rgba(255, 255, 255, .025);
    color: inherit;
}

.pinned-message-inner {
    display: flex;
    align-items: center;
    min-width: 0;
}
.pinned-message-icon {
    flex: 0 0 auto;
    margin-right: 4px;
    color: #a3abb3;
    font-size: 10px;
}
.pinned-message-content {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}
.pinned-message-text {
    display: block;
    min-width: 0;
    max-height: 1.35em;
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pinned-message.expanded .pinned-message-text { max-height: none; overflow: visible; white-space: normal; }
.pinned-message .unpinRoomMessage {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d8b8b;
    font-size: 10px;
    line-height: 22px;
}
.pinned-message .unpinRoomMessage:hover,
.pinned-message .unpinRoomMessage:focus {
    color: #e4e6eb;
}

#requestVideoCall {
    height: 30px;
    padding: 0 7px;
    vertical-align: top;
}

.video-call-notice {
    flex: 0 0 auto;
    margin: 8px 2px 4px;
    padding: 10px 11px;
    border: 1px solid rgba(40, 167, 69, .55);
    border-radius: 10px;
    background: rgba(25, 135, 84, .13);
    color: #e4e6eb;
    font-size: 13px;
}

.video-call-notice[data-status="declined"],
.video-call-notice[data-status="expired"],
.video-call-notice[data-status="failed"] {
    border-color: rgba(108, 117, 125, .65);
    background: rgba(108, 117, 125, .13);
}

.video-call-notice-text {
    margin-bottom: 8px;
    line-height: 1.35;
}

.video-call-notice-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.video-call-notice-actions .btn {
    padding: 3px 10px;
    font-size: 12px;
}

#typingIndicator {
    position: absolute;
    bottom: 55px;
    background-color: #2e2d2d;
    border-radius: 5px;
    padding-left: 3px;
    padding-right: 3px;
    z-index: 100;
}

#privateChat .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 4px 14px 4px 4px;
}

#privateChatTitle {
    display:flex;
    color:#E4E6EB;
    font-weight: bold;
}

#privateMessages {
    flex-grow: 1;
    overflow-y: auto;
}

.input-group {
    flex-shrink: 0;
}

.newMessageAlertUser {
    position: static;
    flex: 0 0 auto;
    margin-left: 6px;
}

.chat-user-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.chat-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-user-actions {
    flex: 0 0 auto;
    margin-left: 8px;
}

.chatBanBtn {
    padding: 2px 7px;
    font-size: 10px;
}

.user.has-unread-chat {
    background-color: rgba(255, 193, 7, .12);
    box-shadow: inset 3px 0 0 #ffc107;
}

.chat-user-name.has-unread {
    color: #ffc107;
    font-weight: 700;
}

.chat-user-name.chat-mod-name.has-unread {
    color: #a64d63 !important;
}

.chat-user-name.chat-owner-name.has-unread {
    color: #c49a3a !important;
}

        .online-status {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            display: inline-block;
            margin-left: 8px;
            position: absolute;
            bottom: 5px;
            left: 30px;
            border: 2px solid #eee;
        }
        .offline {
            opacity: 0.5;
        }
        .user.offline .chat-user-name {
            color: #adb5bd !important;
        }
        .message {
            display: flex;
            align-items: flex-start;
            max-width: 95%;
            margin-bottom:10px;
        }
        .message .msg-box {
            padding: 10px 15px;
            border-radius: 15px;
            position: relative;
        }
        .message .time {
            font-size: 12px;
            color: #bbb;
            margin-top: 3px;
            text-align: right;
        }

        .message.read .time::after {
            content: " ✔";
            color: #6ea8fe;
        }
        .message .avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin: 0 10px;
        }

        .my-messageFlex {
            align-self: flex-start;
            word-break: break-word;
        }
        .my-message {
            color:lightgrey;
        }
        .my-message .msg-box {
            background-color: #0561ff5c;
            color: #E4E6EB;
        }

        .other-messageFlex {
            flex-direction: row-reverse;
            align-self: flex-end;
            word-break: break-word;
        }
        .other-message {
            color:lightgrey;
        }
        .other-message .msg-box {
            background-color: #2c382dd4;
            color:#E4E6EB;
        }
        #openEmojiPanel {
            font-size:x-large;
            cursor: pointer;
        }

        .emoji-container {
            position: relative;
            display: inline-block;
        }

        .emoji-picker, .emoji-pickerPublic {
            position: absolute;
            bottom: 50px; /* Inputmező fölé nyílik */
            left: 0;
            display: none;
            z-index: 1000;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .sendMsgButton {
            padding: 0;
            width: 35px;
        }

        .emoji-btn, .emoji-btnPublic {
            font-size: 24px;
            cursor: pointer;
            background: none;
            border: none;
            margin: auto;
        }

        .userlink {
            text-decoration: none;
        }

        .chatInput {
            height: 36px;
            padding: 6px;
        }

        .mediaUploadPrivate, .mediaUploadPublic {
            font-size: x-large; 
            color: darkseagreen; 
            margin-right: 5px;
            cursor: pointer;
            margin: auto;
        }

        .imgInChat {
            width: 100%;
            height: 100%;
            max-width:150px;
        }

        .videoInChat {
            background-color: black;
            width: 150px;
            height: 80px; /* Beállíthatod, hogy mekkora legyen */
            position: relative;
            cursor: pointer;
            border-radius: 10px; /* Lekerekítés opcionálisan */
        }

/* Lejátszás ikon a közepére */
.playButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playButton::before {
    content: '▶';
    font-size: 30px;
    color: white;
}        

#usersCount {
    position: absolute;
    right: 30px;
    bottom: 80px;
    background-color: #161616;
    border-radius: 5px;
    padding: 2px;
    padding-left: 5px;
    padding-right: 5px;
    font-size:small;
    color:#8d8b8b;
    cursor: pointer;
}

#userListContainer {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#userListToolbar {
    height: 26px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 12px;
    color: #adb5bd;
    border-bottom: 1px solid #333;
}

#userListScroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#userListRefreshNotice {
    display: none;
    height: 22px;
    min-height: 22px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 20px;
}

.chat-mod-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border: 1px solid #6ea8fe;
    border-radius: 4px;
    background: #0d6efd;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    vertical-align: middle;
    letter-spacing: .3px;
}

.chat-mod-name,
.chat-mod-name:link,
.chat-mod-name:visited,
.chat-mod-name:hover,
.chat-mod-name:active {
    color: #a64d63 !important;
}

.chat-owner-name,
.chat-owner-name:link,
.chat-owner-name:visited,
.chat-owner-name:hover,
.chat-owner-name:active {
    color: #c49a3a !important;
}

.chatLikeBtn {
    border: 0;
    background: transparent;
    color: #777;
    margin-left: 7px;
    padding: 0 2px;
    cursor: pointer;
    font-size: 12px;
}

.chatLikeBtn:hover,
.chatLikeBtn.liked {
    color: #dc3545;
}

.chatLikeCount {
    margin-left: 3px;
    font-size: 11px;
}

.chatDeletePublicBtn {
    border: 0;
    background: transparent;
    color: #a5a5a5;
    margin-left: 7px;
    padding: 0 2px;
    cursor: pointer;
    font-size: 12px;
}

.chatDeletePublicBtn:hover,
.chatDeletePublicBtn:focus {
    color: #dc3545;
}

.chatPinMessageBtn {
    border: 0;
    background: transparent;
    color: #a5a5a5;
    margin-left: 7px;
    padding: 0 2px;
    cursor: pointer;
    font-size: 12px;
}

.chatPinMessageBtn:hover,
.chatPinMessageBtn:focus { color: #ffc107; }

#roomsList{max-height:min(70vh,520px);min-width:240px;overflow-y:auto;overflow-x:hidden}
#roomsList .dropdown-header{color:#9da7b7;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
#roomsList .dropdown-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#roomsList .chat-room-lock{margin-right:7px;color:inherit}
#roomsList .chat-room-create-action{color:#76d7a8;font-weight:700}
#roomsList .chat-room-create-action:hover,#roomsList .chat-room-create-action:focus{color:#fff;background:#198754}
        
