.ai-copilot-sidebar {
    background: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.copilot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    flex-shrink: 0;
}

.copilot-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.copilot-header button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.copilot-header button:hover:not(:disabled) {
    background: #0056b3;
}

.copilot-header button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.intent-score {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.intent-score h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1em;
}

.score-display {
    font-size: 3em;
    font-weight: bold;
    margin: 15px 0;
    transition: color 0.3s;
}

.score-gauge-container {
    background: #e9ecef;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.score-gauge {
    height: 100%;
    /* Gradient removed - color set dynamically from JS binding */
    border-radius: 12px;
    transition: width 0.5s ease-in-out, background 0.3s ease;
}

.score-label {
  font-size: 1.1em;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.score-label i {
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.suggested-message,
.talking-points,
.objection-handling,
.next-action {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggested-message h4,
.talking-points h4,
.objection-handling h4,
.next-action h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1em;
    font-weight: 600;
}

.suggested-message p {
    line-height: 1.6;
    color: #212529;
    margin-bottom: 10px;
}

.suggested-message button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.suggested-message button:hover:not(:disabled) {
    background: #0056b3;
}

.suggested-message button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.talking-points ul,
.objection-handling ul {
    padding-left: 20px;
    margin: 5px 0 0 0;
}

.talking-points li,
.objection-handling li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #495057;
}

.next-action .action-text {
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.next-action .action-time {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* Customer Name Section - Fixed */
.customer-name-section {
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.customer-name-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 5px;
}

.customer-name-label i {
    margin-right: 5px;
    color: #007bff;
}

.customer-name-value {
    font-size: 1.1em;
    font-weight: 700;
    color: #212529;
    word-wrap: break-word;
}

/* Scrollable Content Area */
.copilot-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Loading state */
.ai-copilot-sidebar.loading {
    opacity: 0.6;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 15px;
    color: #495057;
    font-weight: 500;
}
