/* YZXYIM 即时通讯系统样式 */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

/* 列表组 */
.list-group-item-action:hover {
    background-color: var(--light-bg);
}

/* 徽章 */
.badge {
    font-weight: 500;
}

/* 表单 */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 聊天容器 */
.chat-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 聊天消息 */
.chat-messages {
    background-image: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.message-bubble {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.mine .message-bubble {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.message.other .message-bubble {
    background-color: white;
}

/* 在线状态 */
.badge.bg-success {
    background-color: var(--success-color) !important;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式 */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 60px);
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .col-md-4 {
        display: none;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.5;
}

/* 按钮组 */
.btn-group .btn {
    margin: 0 2px;
}

/* 警告框 */
.alert {
    border-radius: 0.5rem;
}
