.btn-show-more {
    display: block;
    margin: 30px auto;
    padding: 12px 40px;
    background: #2a2a2a;
    color: #999;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.btn-show-more:active {
    transform: scale(0.95);
}


/* Кнопка прокрутки */
.floating-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: none !important;
    z-index: 10000 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.25s ease;
}

.floating-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Анимация иконки при наведении */
.floating-btn:hover #btn-icon {
    transform: rotate(15deg) scale(1.1);
    transition: 0.2s;
}

/* Цвета для ролей */
.btn-dancer { background-color: #a2ff00 !important; color: #000 !important; }
.btn-choreographer { background-color: #8A2BE2 !important; color: #fff !important; }

#btn-icon span {
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
}











/* Заголовок над прямоугольником */
.chats-title {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px; /* Отступ до подложки */
    margin-left: 5px;   /* Легкое смещение для красоты */
}

/* Серая подложка на всю ширину контейнера */
.chats-backdrop {
    width: 100%;
    min-height: 500px;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-list {
    padding: 15px;
}

.chat-view {
    display: flex;
    flex-direction: column;
    height: 550px;
}

.chat-view.hidden {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    background: #0d0d0d;
}

.chat-back-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.chat-back-btn:hover {
    color: #fff;
    background: #222;
}

.chat-partner-name {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.chat-msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    animation: msgIn 0.2s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-mine {
    align-self: flex-end;
    background: #a2ff00;
    color: #000;
    border-bottom-right-radius: 4px;
}

.chat-msg-other {
    align-self: flex-start;
    background: #222;
    color: #fff;
    border-bottom-left-radius: 4px;
}

.chat-msg-text {
    font-size: 14px;
    line-height: 1.4;
}

.chat-msg-time {
    font-size: 10px;
    color: rgba(0,0,0,0.5);
    margin-top: 4px;
    text-align: right;
}

.chat-msg-other .chat-msg-time {
    color: rgba(255,255,255,0.4);
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #222;
    background: #0d0d0d;
}

.chat-input-area input {
    flex: 1;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-input-area input:focus {
    border-color: #a2ff00;
}

.chat-send-btn {
    background: #a2ff00;
    color: #000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chat-send-btn:hover {
    background: #8cdb00;
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 0 20px rgba(162, 255, 0, 0.4);
}

.chat-send-btn:active {
    transform: scale(0.95) rotate(0deg);
}

.chat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: #444;
    font-size: 16px;
}

.chat-class-section {
    margin-bottom: 20px;
}

.chat-class-header {
    font-size: 13px;
    color: #a2ff00;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 12px 16px;
    border-bottom: 1px solid #222;
    margin-bottom: 4px;
}

.chat-dialog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 8px;
    margin: 2px 0;
}

.chat-dialog-item:hover {
    background: rgba(255,255,255,0.05);
}

.chat-dialog-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #8A2BE2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-dialog-info {
    flex: 1;
    min-width: 0;
}

.chat-dialog-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-role-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.choreographer-badge {
    background: rgba(138, 43, 226, 0.2);
    color: #b366ff;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.chat-dialog-preview {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.chat-dialog-time {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-dialog-delete {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #ff4444;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.chat-dialog-item:hover .chat-dialog-delete {
    opacity: 1;
}

.chat-dialog-delete:hover {
    background: rgba(255,68,68,0.2);
}

.hidden {
    display: none !important;
}
