/* QA Review Assistant Styles */

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Message styles */
.message-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #6c757d;
    transition: background-color 0.3s;
}

.agent-message {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
}

.customer-message {
    background-color: #f3e5f5;
    border-left-color: #9c27b0;
}

.message-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.message-time {
    font-weight: 500;
    margin-right: 10px;
}

.message-sender {
    font-weight: 600;
}

.message-content {
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.highlight-message {
    background-color: #fff3cd !important;
    border-left-color: #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Excerpt styles */
.excerpt-item {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.excerpt-item:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateX(2px);
}

/* Category card styles */
.category-card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card .card-header h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Override controls */
.override-controls {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.override-points {
    max-width: 100px;
}

/* Sticky transcript panel */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
}

/* Alert styles */
.alert {
    font-size: 0.9rem;
}

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

/* Navbar branding */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Card shadow */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sticky-top {
        position: relative;
        max-height: none !important;
    }

    .message-item {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .navbar, .override-controls, .btn {
        display: none;
    }

    .sticky-top {
        position: relative;
        max-height: none !important;
    }

    .card {
        break-inside: avoid;
    }
}
