/* Live Support Chat Styles */
.support-dashboard {
    display: flex;
    height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.support-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
}

.support-sidebar h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.active-chats-list {
    max-height: 400px;
    overflow-y: auto;
}

.chat-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.chat-item:hover {
    background: #e9ecef;
}

.chat-item.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-user-name {
    font-weight: 600;
    font-size: 14px;
}

.chat-time {
    font-size: 12px;
    opacity: 0.7;
}

.chat-preview {
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.support-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
}

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

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.message.admin {
    justify-content: flex-end;
}

.message.user {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.admin .message-bubble {
    background: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.user .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: center;
}

.chat-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input .form-input {
    flex: 1;
    margin: 0;
}

.chat-input .btn {
    padding: 8px 15px;
    min-width: auto;
}

/* Live Notification Styles */
.notification-preview {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.notification-preview h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.notification-preview p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.notification-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.notification-status.sent {
    background: #d4edda;
    color: #155724;
}

.notification-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Chat notification badge */
.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Online status indicator */
.online-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.online-status.online {
    background: #28a745;
}

.online-status.offline {
    background: #6c757d;
}

/* Responsive design for support dashboard */
@media (max-width: 768px) {
    .support-dashboard {
        flex-direction: column;
        height: auto;
    }
    
    .support-sidebar {
        width: 100%;
        max-height: 200px;
    }
    
    .support-chat-area {
        min-height: 400px;
    }
}