/* Chat container */
.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}

/* Message styling */
.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.message-label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    line-height: 1.4;
}

/* Customer messages - left aligned */
.customer-message {
    margin-right: auto;
}

.customer-message .message-label {
    color: #856404;
}

.customer-message .message-content {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-bottom-left-radius: 0.25rem;
}

/* Agent messages - right aligned */
.agent-message {
    margin-left: auto;
    text-align: right;
}

.agent-message .message-label {
    color: #004085;
}

.agent-message .message-content {
    background-color: #cce5ff;
    border: 1px solid #007bff;
    border-bottom-right-radius: 0.25rem;
    text-align: left;
}

/* Score bars */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* Card improvements */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Sticky sidebar */
.sticky-top {
    z-index: 100;
}

/* Table hover effect */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-container {
        height: 300px;
    }

    .message {
        max-width: 95%;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* Loading spinner in button */
.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* History table score column */
.table td {
    vertical-align: middle;
}
