/* chat-history modal styles — extracted from includes/chat-history-modal.php */
@keyframes chSpin {
    to { transform: rotate(360deg); }
}

.chat-history-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-history-modal-content::-webkit-scrollbar {
    display: none;
}
#chatHistoryContent {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#chatHistoryContent::-webkit-scrollbar {
    display: none;
}

/* History items */
.ch-history-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ch-history-item:hover {
    background: rgba(255,255,255,0.06);
}
.ch-history-item:last-child {
    border-bottom: none;
}

.ch-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.ch-username {
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.ch-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.ch-gender-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.ch-time {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

.ch-flag {
    font-size: 14px;
    line-height: 1;
}

/* Mobile fullscreen */
@media (max-width: 900px) {
    #meetgleChatHistoryModal { padding: 0 !important; }
    #meetgleChatHistoryModal > .chat-history-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        border-radius: 0 !important;
    }
    #chatHistoryContent {
        max-height: calc(100svh - 80px) !important;
    }
}
