/* QVCopilot Application Styles */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Professional Color Palette */
  --primary-color: #1A365D;      /* Deep navy blue */
  --secondary-color: #2C7A7B;    /* Teal accent */
  --success-color: #38A169;      /* Muted sage green */
  --warning-color: #DD6B20;      /* Warm amber */
  --danger-color: #E53E3E;       /* Muted red */
  --background-color: #F7FAFC;   /* Soft white */
  --card-background: #FFFFFF;    /* Pure white */
  --border-color: #E2E8F0;       /* Subtle gray */
  --text-primary: #2D3748;       /* Dark gray for main text */
  --text-secondary: #4A5568;     /* Medium gray for secondary text */
  --text-tertiary: #718096;      /* Light gray for tertiary text */
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--background-color);
  margin-bottom: 120px; /* Make space for demo controls panel */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
}

/* Header styles */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: var(--space-sm);
}

/* Q logo circle */
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-sm);
  color: white;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(44, 122, 123, 0.2);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* Make QV stand out in the logo */
.logo-text span {
  color: var(--secondary-color);
  font-weight: 800;
}

.header-buttons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle:hover {
  background-color: #236c6d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-icon {
  font-style: normal;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: var(--space-sm) 0;
  z-index: 1000;
  display: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.dropdown-open .dropdown-menu {
  display: block;
  transform: translateY(4px);
}

.dropdown-open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--background-color);
  color: var(--secondary-color);
}

/* Button styles */
.button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button.primary {
  background-color: var(--primary-color);
}

.button.primary:hover {
  background-color: #15294a;
}

.button.success {
  background-color: var(--success-color);
}

.button.success:hover {
  background-color: #2f8a58;
}

.call-summary-button {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-button {
  background-color: var(--text-tertiary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-button:hover {
  background-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.call-summary-button:hover {
  background-color: #2f8a58;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Main content layout */
.main-content {
  display: flex;
  gap: var(--space-xl);
}

.left-panel {
  flex: 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.middle-panel {
  flex: 2.5;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  border-left: 1px solid var(--border-color);
  padding-left: var(--space-lg);
}

.right-panel {
  flex: 2.5;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Card styles */
.card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
  padding: var(--space-md);
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Icons for headings */
.card-header i, 
.card-header svg {
  margin-right: var(--space-sm);
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: var(--space-sm);
  color: var(--secondary-color);
}

.card-body {
  padding: var(--space-md);
}

/* Latest customer message */
.latest-customer-message {
  padding: 0;
}

.message-box {
  padding: 16px;
  margin: 0;
  border-left: 4px solid #e9ecef;
  font-size: 1.1rem;
  min-height: 60px;
}

/* Active Response */
#active-response-card {
  border-left: 4px solid #0070f3;
}

#active-response-label {
  flex: 1;
}

.category-label {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  color: white;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.category-label.primary {
  background-color: var(--primary-color);
}

.category-label.information {
  background-color: var(--secondary-color);
}

.category-label.urgent,
.category-label.escalation {
  background-color: var(--danger-color);
}

.category-label.upsell {
  background-color: var(--warning-color);
  color: #444;
}

.selected-response-content {
  padding: 8px 0;
  line-height: 1.5;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.feedback-buttons {
  display: flex;
  gap: 8px;
}

.thumb-button {
  background: none;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.thumb-button:hover {
  background-color: #f8f9fa;
}

.ready-to-send {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ready-to-send:hover {
  background-color: #2f8a58;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Conversation sections */
.conversation-container {
  display: flex;
  padding: 0;
  gap: var(--space-lg);
  background-color: var(--card-background);
}

.conversation-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.conversation-wrapper:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.conversation-wrapper:first-child {
  background-color: var(--background-color);
}

.conversation-header {
  padding: var(--space-md);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
}

.conversation-header.customer {
  color: var(--text-secondary);
  background-color: var(--background-color);
}

.conversation-header.agent {
  color: var(--primary-color);
  background-color: rgba(26, 54, 93, 0.05);
}

.conversation-section {
  padding: var(--space-md);
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.customer-section {
  background-color: var(--background-color);
}

.agent-section {
  background-color: var(--card-background);
}

.customer-section .transcript-message,
.transcript-message.customer {
  background-color: var(--background-color);
  border-left: 4px solid var(--border-color);
  align-self: flex-start;
  margin-right: auto;
  max-width: 90%;
  padding: var(--space-md);
  border-radius: 12px 12px 12px 2px;
  margin-bottom: var(--space-md);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customer-section .transcript-message:hover,
.transcript-message.customer:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.customer-section .transcript-message::before,
.transcript-message.customer::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  left: -6px;
  top: 12px;
  transform: rotate(45deg);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.agent-section .transcript-message,
.transcript-message.agent {
  background-color: rgba(44, 122, 123, 0.08);
  border-right: 4px solid var(--secondary-color);
  border-left: none;
  align-self: flex-end;
  margin-left: auto;
  max-width: 90%;
  padding: var(--space-md);
  border-radius: 12px 12px 2px 12px;
  margin-bottom: var(--space-md);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-section .transcript-message::before,
.transcript-message.agent::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: rgba(44, 122, 123, 0.08);
  right: -6px;
  top: 12px;
  transform: rotate(45deg);
  border-right: 1px solid rgba(44, 122, 123, 0.3);
  border-top: 1px solid rgba(44, 122, 123, 0.3);
}

.agent-section .transcript-message:hover,
.transcript-message.agent:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.message-content {
  word-break: break-word;
}

.message-time {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 8px;
  display: block;
  text-align: right;
}

.speaker-label {
  display: none; /* Hide this as it's shown in the section header */
}

/* Situational Awareness */
.situational-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 16px;
  transition: background-color 0.3s;
  position: relative;
  overflow: visible;
  z-index: 5;
}

.situational-card.red {
  background-color: #ffebee;
}

.situational-card.yellow {
  background-color: #fffde7;
}

.situational-card.green {
  background-color: #e8f5e9;
}

.situational-card .card-body {
  padding-top: 16px !important;
  position: relative;
  min-height: 100px;
}

.traffic-lights {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
  position: absolute;
  top: 0px;
  right: 10px;
  z-index: 5;
}

.sentiment-indicator {
  display: flex;
  margin-left: auto;
}

.traffic-light {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 10px;
  border-radius: 20px;
  background-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(0,0,0,0.1);
  transition: all 0.3s;
  opacity: 0.3;
}

.light.active {
  width: 26px;
  height: 26px;
  margin: -6px 0px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.8);
  opacity: 1;
  transform: scale(1.56);
}

.light.red {
  background-color: #ff5252;
  opacity: 0.3;
}

.light.red.active {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255,0,0,0.5);
}

.light.yellow {
  background-color: #ffb300;
  opacity: 0.3;
}

.light.yellow.active {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255,179,0,0.5);
}

.light.green {
  background-color: #4caf50;
  opacity: 0.3;
}

.light.green.active {
  opacity: 1;
  box-shadow: 0 0 12px rgba(76,175,80,0.5);
}

.situational-advice {
  margin-top: 15px;
  margin-bottom: 15px;
  min-height: 20px;
  width: 100%;
  display: block !important;
  z-index: 1000;
}

.advice-content {
  display: block;
  margin-bottom: 8px;
}

.ai-suggestion {
  margin-top: 10px;
  margin-bottom: 15px;
  min-height: 20px;
  width: 100%;
  display: block !important;
  z-index: 1000;
}

/* Response Categories */
.response-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.response-category {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.category-dot.primary {
  background-color: #0070f3;
}

.category-dot.info {
  background-color: #17a2b8;
}

.category-dot.offers {
  background-color: #ffc107;
}

.count {
  margin-left: auto;
  background-color: #e9ecef;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.8rem;
}

.category-items {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Category specific response options */
.category-items .response-option {
  width: 100%;
  margin-bottom: 0;
  min-height: 80px;
}

/* Ensure proper spacing for response headers */
.response-option .response-header {
  min-height: 20px;
}

/* Responses area */
.responses-area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.response-option {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: calc(50% - 6px);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: 90px;
}

.response-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.response-option.selected {
  border: 2px solid var(--secondary-color);
  background-color: rgba(44, 122, 123, 0.05);
}

.response-option i,
.response-option svg {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-top: 2px;
}

.response-content {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.response-header {
  font-weight: bold;
  margin-bottom: 8px;
  color: #094067;
  width: 100%;
  display: block;
  line-height: 1.3;
  word-wrap: break-word;
}

.response-preview {
  font-size: 0.9rem;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.response-option.primary {
  border-left: 4px solid #0070f3;
}

.response-option.information {
  border-left: 4px solid #17a2b8;
}

.response-option.urgent,
.response-option.escalation {
  border-left: 4px solid #dc3545;
}

.response-option.upsell {
  border-left: 4px solid #ffc107;
}

/* Expanded response */
.expanded-response {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
  border-left: 4px solid #0070f3;
}

/* Customer information */
.customer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-info-row {
  display: flex;
  margin-bottom: 8px;
}

.customer-info-label {
  font-weight: bold;
  width: 120px;
  min-width: 120px;
}

.customer-info-value {
  flex: 1;
}

/* Purchase History */
.purchase-history-container {
  max-height: 180px;
  overflow-y: auto;
}

.purchase-history {
  display: flex;
  flex-direction: column;
}

.purchase-item {
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
}

.purchase-date {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

/* Action Items */
.action-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  position: relative;
}

.action-item.high {
  border-left: 4px solid #dc3545;
}

.action-item.medium {
  border-left: 4px solid #ffc107;
}

.action-item.low {
  border-left: 4px solid #17a2b8;
}

.action-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.action-item-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.action-status {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #6c757d;
}

.action-status.completed {
  color: #28a745;
}

.action-status.pending {
  color: #ffc107;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-indicator.completed {
  background-color: #28a745;
}

.status-indicator.pending {
  background-color: #ffc107;
}

.action-button {
  padding: 5px 12px;
  border-radius: 4px;
  background-color: #0d6efd;
  color: white;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s;
}

.action-button:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
}

.action-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.action-button.done {
  background-color: #28a745;
}

.priority-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
  color: white;
  margin-left: auto;
  text-transform: uppercase;
}

.priority-tag.high {
  background-color: #dc3545;
}

.priority-tag.medium {
  background-color: #ffc107;
  color: #333;
}

.priority-tag.low {
  background-color: #17a2b8;
}

.completed {
  text-decoration: line-through;
  color: #6c757d;
}

/* Scenarios */
.scenarios {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.scenario-button {
  background-color: #f1f3f5;
  border: 1px solid #dee2e6;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.scenario-button:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scenario-button.active {
  background-color: #0070f3;
  color: white;
  border-color: #0070f3;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.3);
}

/* Demo controls panel */
.demo-controls-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding-bottom: 10px;
}

.demo-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #dee2e6;
  font-weight: bold;
  color: #094067;
  background-color: #e9ecef;
}

.demo-controls-header span {
  flex: 1;
  text-align: center;
}

.hide-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  font-size: 0.9rem;
  padding: 4px 8px;
}

.hide-button:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.demo-controls-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.scenario-selector {
  margin-bottom: 10px;
}

.scenario-selector label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.control-button {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

#play-button {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

#play-button:hover {
  background-color: #3d8b40;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.control-button:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recording-button {
  color: #dc3545;
}

.recording-button:hover {
  background-color: #ffebee;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-slider {
  width: 100px;
}

/* Loading indicator */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #0070f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: relative;
  padding: 20px 24px;
  border-bottom: 1px solid #eaeaea;
  background: linear-gradient(to right, #4caf50, #66bb6a);
  border-radius: 10px 10px 0 0;
}

.modal-header h2 {
  color: white;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  cursor: pointer;
  color: white;
  opacity: 0.9;
  transition: all 0.2s;
}

.close-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.summary-content h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  position: relative;
}

.summary-content h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #4caf50;
}

.summary-content h3:first-child {
  margin-top: 0;
}

.summary-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.summary-row {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row span:first-child {
  font-weight: 600;
  margin-right: 12px;
  min-width: 140px;
  display: inline-block;
  color: #555;
}

.summary-row span:last-child {
  color: #2c3e50;
  font-weight: 500;
}

.summary-action-items {
  margin-top: 15px;
}

.summary-action-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  padding: 12px 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-action-item:hover {
  background-color: #f2f2f2;
  transform: translateY(-2px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.summary-action-item .status-icon {
  margin-right: 12px;
  font-weight: bold;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  background-color: #f0f0f0;
  color: #999;
}

.summary-action-item.completed .status-icon {
  background-color: #e8f5e9;
  color: #4caf50;
}

.action-text {
  display: inline-block;
  flex: 1;
  font-weight: 500;
}

.summary-action-item.completed .action-text {
  text-decoration: line-through;
  color: #888;
}

.sentiment-timeline {
  margin: 25px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sentiment-graph {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.sentiment-graph circle {
  transition: all 0.3s ease;
}

.sentiment-graph circle:hover {
  r: 8;
  stroke-width: 3;
}

.sentiment-graph path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.5s ease forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.time-label {
  font-size: 11px;
  fill: #6c757d;
  font-weight: 500;
}

.sentiment-notes {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.sentiment-notes p {
  margin-bottom: 15px;
  color: #444;
}

.sentiment-notes h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.sentiment-notes h4::before {
  content: "★";
  color: #4caf50;
  margin-right: 8px;
  font-size: 18px;
}

.sentiment-notes h4 span {
  color: #3da9fc;
  font-weight: 500;
  margin-left: 5px;
}

.sentiment-notes p:last-child {
  margin-bottom: 0;
  font-style: italic;
  border-left: 3px solid #4caf50;
  padding-left: 15px;
  background-color: #f2f2f2;
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
}

/* Media queries for responsive design */
@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }
  
  .left-panel, .middle-panel, .right-panel {
    width: 100%;
  }
}

.collapsible {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.toggle-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
  font-size: 16px;
}

.collapsed .toggle-icon {
  transform: translateY(-50%) rotate(-90deg);
}

.collapsible-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.collapsed + .collapsible-content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
}

/* === SENTIMENT TRENDLINE === */
.sentiment-trend-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 0px;
  left: 10px;
  width: 45%;
  height: 36px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 5px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  margin-right: 0;
  overflow: hidden;
  z-index: 10;
}

.sentiment-trend-line {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Center reference line */
.sentiment-center-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}

.sentiment-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sentiment-point:last-child {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.sentiment-point.red {
  background-color: #ff5252;
}

.sentiment-point.yellow {
  background-color: #ffb300;
}

.sentiment-point.green {
  background-color: #4caf50;
}

.sentiment-line-segment {
  position: absolute;
  height: 2px;
  z-index: 2;
  transition: all 0.3s ease;
}

.sentiment-line-segment.red {
  background-color: #ff5252;
}

.sentiment-line-segment.yellow {
  background-color: #ffb300;
}

.sentiment-line-segment.green {
  background-color: #4caf50;
}

/* Remove situational-info container changes */
.situational-info {
  position: relative;
  width: 100%;
  height: 36px;
}

/* Yellow notification box inside situational card */
.situational-card .notification-box {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 15px 0 10px 0; /* Added top margin to push it down */
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Separator for situational awareness tips */
.situational-separator {
  margin: 15px 0;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0.03), rgba(0,0,0,0.1), rgba(0,0,0,0.03));
  border: none;
}

/* Timeline for customer history */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
  margin: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 3px solid var(--card-background);
  box-shadow: 0 0 0 1px var(--secondary-color);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
  display: block;
}

.timeline-content {
  background-color: var(--background-color);
  padding: var(--space-md);
  border-radius: 8px;
  border-left: 3px solid var(--secondary-color);
}

.timeline-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Enhanced Action Items */
.action-item {
  border-radius: 8px;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.action-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.action-item-header {
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--background-color);
}

.action-item-title {
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.action-item-title i,
.action-item-title svg {
  color: var(--secondary-color);
}

.action-item-body {
  padding: var(--space-md);
}

.action-item-content {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.action-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding: var(--space-sm) var(--space-md);
}

.action-status {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.completed {
  background-color: rgba(56, 161, 105, 0.1);
  color: var(--success-color);
}

.status-badge.pending {
  background-color: rgba(221, 107, 32, 0.1);
  color: var(--warning-color);
}

.status-badge.high-priority {
  background-color: rgba(229, 62, 62, 0.1);
  color: var(--danger-color);
}

.auto-hide-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #495057;
}

.auto-hide-control input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.auto-hide-control label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
} 