.chat-wrapper {
    background: url('../img/bgpage-chat.svg') center/cover no-repeat fixed;
    min-height: calc(100vh - 56px);
    padding: 4rem 1rem 4rem 1rem;
    position: relative;
}

.chat-wrapper .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: auto;
    margin-bottom: auto;
    border-radius: var(--radius-xl);
}

.card {
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--gradient-primary);
    color: #ffffff;
}

.card-header.bg-white {
    background: var(--color-bg-primary) !important;
    color: var(--color-text-primary);
}

.card-body {
    background: var(--color-bg-primary);
}

#messageContainer {
    background: var(--color-bg-primary);
    min-height: 400px;
    max-height: 500px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-success);
    animation: pulse 2s infinite;
}

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

.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

.bg-primary { background: var(--gradient-primary) !important; }
.bg-info { background-color: var(--color-info) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-white { background-color: var(--color-bg-primary) !important; }
.bg-light { background-color: var(--color-bg-secondary) !important; }

.border-primary { border-color: var(--color-primary) !important; }
.border-bottom { border-bottom: 1px solid var(--color-border) !important; }

.shadow-sm { box-shadow: var(--shadow-sm); }

.rounded-circle { border-radius: 50% !important; }
.rounded-3 { border-radius: var(--radius-md) !important; }

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
}

.typing-indicator .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: currentColor;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-3px); opacity: 1; }
}

#messageContainer::-webkit-scrollbar {
    width: 6px;
}

#messageContainer::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

#messageContainer::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: 3px;
}

#messageContainer::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.list-group {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.list-group-flush .list-group-item {
    border-radius: 0;
}

.list-group-flush .list-group-item:first-child:hover {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.list-group-flush .list-group-item:last-child:hover {
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

.list-group-flush .list-group-item:hover {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .col-lg-3 { display: none; }
}