/* Admin Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Chat bubble styling */
.msg-bubble {
  max-width: 75%;
  word-break: break-word;
  position: relative;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.msg-bubble.admin {
  background-color: #2563eb;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.msg-bubble.customer {
  background-color: #ffffff;
  color: #1e293b;
  border-top-left-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Audio Player inside Admin */
.admin-audio-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  padding: 4px 0;
}

.admin-audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.msg-bubble.admin .admin-audio-play-btn {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.msg-bubble.customer .admin-audio-play-btn {
  background: #2563eb;
  color: #ffffff;
}

.admin-audio-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.msg-bubble.admin .admin-audio-progress-bar {
  background: rgba(255, 255, 255, 0.3);
}

.msg-bubble.customer .admin-audio-progress-bar {
  background: #e2e8f0;
}

.admin-audio-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 3px;
  width: 0%;
}

.msg-bubble.admin .admin-audio-fill {
  background: #ffffff;
}

.msg-bubble.customer .admin-audio-fill {
  background: #2563eb;
}

/* Active session item */
.session-item.active {
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
}

/* Quick response chips */
.canned-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}
.canned-chip:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.unread-pulse {
  animation: pulse-subtle 2s infinite ease-in-out;
}
