﻿.chat-container {
    margin: 0 auto;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}


.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.input-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

    .input-field:focus {
        border-color: #007bff;
    }

.btn-primary {
    padding: 12px 30px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-primary:hover {
        background: #0056b3;
    }

.chat-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

    .chat-header h3 {
        margin: 0;
        color: #333;
    }
.user-status {
    color: #ddd;
    padding: 2px;
    font-size: 8px;
}
.user-badge {
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display:flex;
    flex-direction:column;
}

.message-wrapper {
    margin-bottom: 10px;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-block;
}

.own-message {
    background: #007bff;
    color: white;
    float: right;
}

.other-message {
    background: white;
    color: #333;
    float: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
    margin-bottom: 4px;
}

.own-message .message-header {
    color: rgba(255,255,255,0.8);
}

.other-message .message-header {
    color: #6c757d;
}

.timestamp {
    font-size: 10px;
}

.message-body {
    word-wrap: break-word;
    font-size: 14px;
}

.chat-input {
    display: flex;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    gap: 10px;
    position: absolute;
    bottom: 50px;
    width: 100%;
}

    .chat-input .input-field {
        flex: 1;
    }

#scroll-anchor {
    float: left;
    clear: both;
}
.gg-chat-body-wrapper {
    display: flex;
    gap: 1px;
    height: 100%;
    padding-bottom:1px;
}
.gg-chat-body-left {
    flex: 0 1 400px;
    height: 100%;
    border-right: 2px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    overflow-y: auto;
    
}
.gg-chat-body-right {
    flex: auto;
    height: 100%;
    position:relative;
}
.gg-online-dot-green{
    color:#444;
}
.user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}
.user-details {
    color:#ddd;
}

.user-info:hover {
    background-color: #f0f0f0;
}

    .user-item.selected {
        background-color: #e3f2fd;
        border-left: 3px solid #2196f3;
    }

.online-indicator {
    color: #4caf50;
    font-size: 10px;
    margin-left: 5px;
}

.chat-header {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

    .chat-header h5 {
        margin: 0;
        color: #333;
    }

.chat-input input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}




/* wwwroot/css/chat.css */
.connection-status {
    padding: 4px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-connected .status-indicator {
    background: #4caf50;
}

.status-reconnecting .status-indicator {
    background: #ff9800;
    animation: pulse 1s infinite;
}

.status-disconnected .status-indicator {
    background: #f44336;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.connection-banner {
    padding: 8px 16px;
    background: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffc107;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-reconnect {
    padding: 4px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-reconnect:hover {
        background: #0056b3;
    }