/* Professor Gizmo AI Assistant Styles */

/* ─── Base Widget Container ───────────────────────────────────── */
.lab-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ─── Floating Action Button (minimized) ──────────────────────── */
.lab-fab {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
}

.lab-fab:hover {
  transform: scale(1.1);
}

.lab-fab-img {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: contain;
  transition: all 0.3s;
}

/* ─── Speech Bubble (minimized mode) ─────────────────────────── */
.lab-speech-bubble {
  position: absolute;
  bottom: 108px;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  max-width: 260px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  cursor: pointer;
  z-index: 1001;
  animation: labBubbleIn 0.4s ease;
}

.lab-speech-text { display: block; }

.lab-speech-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: #7C3AED;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: labBlink 0.7s infinite;
}

.lab-speech-tail {
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: white;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  transform: rotate(45deg);
}

@keyframes labBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lab-speech-bubble.lab-bubble-out {
  animation: labBubbleOut 0.3s ease forwards;
}

@keyframes labBubbleOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

/* ─── Chat Panel (open mode) ──────────────────────────────────── */
.lab-panel {
  width: 420px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: labPanelIn 0.3s ease;
  max-height: calc(100vh - 100px);
}

@keyframes labPanelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Header ───────────────────────────────────────────────────── */
.lab-widget-header {
  background: #ffffff;
  color: #1f2937;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
}

.lab-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.lab-face-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 56px;
  height: 56px;
}

.lab-face-img {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
}

.lab-header-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lab-widget-tts,
.lab-widget-expand,
.lab-widget-close {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-widget-tts:hover,
.lab-widget-expand:hover,
.lab-widget-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.lab-widget-tts .tts-waves { opacity: 0.3; }
.lab-widget-tts.tts-active { color: #7C3AED; }
.lab-widget-tts.tts-active .tts-waves { opacity: 1; }

/* ─── Body ─────────────────────────────────────────────────────── */
.lab-widget-body {
  max-height: 500px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ─── Suggested questions ──────────────────────────────────────── */
.lab-suggested-questions {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.lab-suggested-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.lab-suggested-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* ─── Chat messages ────────────────────────────────────────────── */
.lab-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  max-height: 380px;
  min-height: 200px;
}

.lab-message {
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  animation: labFadeIn 0.3s;
}

@keyframes labFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lab-message-user {
  justify-content: flex-end;
}

.lab-message-user .lab-message-content {
  background: #7C3AED;
  color: white;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  max-width: 80%;
  font-size: 14px;
}

.lab-message-assistant {
  justify-content: flex-start;
}

.lab-message-icon {
  width: 72px;
  height: 72px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  padding: 0;
}

.lab-message-icon img {
  width: 72px;
  height: 72px;
  border-radius: 0;
  object-fit: contain;
}

.lab-message-assistant .lab-message-content {
  background: #f3f4f6;
  color: #1f2937;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  max-width: 85%;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Rich content in messages ─────────────────────────────────── */
.lab-message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
}

.lab-message-content table th {
  background: #e5e7eb;
  font-weight: 700;
  text-align: left;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #374151;
}

.lab-message-content table td {
  padding: 5px 10px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.lab-message-content table tr:nth-child(even) td {
  background: #f9fafb;
}

.lab-message-content table tr:hover td {
  background: #ede9fe;
}

.lab-message-content ul, .lab-message-content ol {
  margin: 6px 0;
  padding-left: 20px;
}

.lab-message-content li {
  margin-bottom: 3px;
}

.lab-message-content strong {
  font-weight: 700;
  color: #111827;
}

.lab-message-content .lab-highlight {
  background: #fef3c7;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  color: #92400e;
}

.lab-message-content .lab-currency {
  font-weight: 600;
  color: #059669;
}

.lab-message-content .lab-link {
  color: #7C3AED;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  cursor: pointer;
}

.lab-message-content .lab-link:hover {
  color: #6D28D9;
}

.lab-message-content .lab-status-low {
  color: #dc2626;
  font-weight: 600;
}

.lab-message-content .lab-status-ok {
  color: #059669;
  font-weight: 600;
}

/* ─── Thinking state ───────────────────────────────────────────── */
.lab-message.thinking .lab-message-content {
  animation: labPulse 1.5s infinite;
}

@keyframes labPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lab-message.restricted .lab-message-content {
  background: #FEF3C7;
  border-left: 3px solid #F59E0B;
}

/* ─── Action confirmation ──────────────────────────────────────── */
.lab-action-confirmation {
  margin: 12px 0;
  padding: 12px;
  background: #eff6ff;
  border: 2px solid #06B6D4;
  border-radius: 10px;
  animation: labSlideIn 0.3s;
}

@keyframes labSlideIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lab-action-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lab-action-icon { font-size: 22px; }

.lab-action-text {
  flex: 1;
  font-weight: 500;
  color: #1e40af;
  font-size: 14px;
}

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

.lab-btn-confirm,
.lab-btn-cancel {
  flex: 1;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 13px;
}

.lab-btn-confirm {
  background: #10B981;
  color: white;
}

.lab-btn-confirm:hover {
  background: #059669;
  transform: translateY(-1px);
}

.lab-btn-cancel {
  background: #f3f4f6;
  color: #6b7280;
}

.lab-btn-cancel:hover {
  background: #e5e7eb;
}

/* ─── Input area ───────────────────────────────────────────────── */
.lab-chat-input-area {
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lab-chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

.lab-chat-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.lab-chat-send {
  background: #fff;
  border: 2px solid #1f2937;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.lab-chat-send:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
}

.lab-send-icon {
  width: 22px;
  height: 22px;
  color: #6366f1;
}

/* ─── Big face (hidden in widget mode) ─────────────────────────── */
.lab-big-face {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   IMMERSIVE EXPANDED MODE — Clean white theme
   ═══════════════════════════════════════════════════════════════════ */
.lab-widget.lab-expanded {
  position: fixed;
  top: var(--header-height, 64px);
  left: var(--sidebar-width, 250px);
  right: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  z-index: 999;
}

.lab-widget.lab-expanded .lab-fab {
  display: none !important;
}

.lab-widget.lab-expanded .lab-panel {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

.lab-widget.lab-expanded .lab-widget-header {
  border-radius: 0;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid #d1d5db;
}

.lab-widget.lab-expanded .lab-widget-title {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.lab-widget.lab-expanded .lab-face-wrap {
  background: transparent;
  border: none;
}

.lab-widget.lab-expanded .lab-widget-body {
  max-height: none;
  height: calc(100% - 53px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* ─── Suggested questions in expanded — moved to bottom ──────── */
.lab-widget.lab-expanded .lab-chat-messages { order: 1; }
.lab-widget.lab-expanded .lab-suggested-questions { order: 2; }
.lab-widget.lab-expanded .lab-chat-input-area { order: 3; }

.lab-widget.lab-expanded .lab-suggested-questions {
  border-bottom: none;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 24px;
  justify-content: center;
}

.lab-widget.lab-expanded .lab-suggested-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 12px;
}

.lab-widget.lab-expanded .lab-suggested-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #111827;
}

/* ─── Chat messages in expanded ───────────────────────────────── */
.lab-widget.lab-expanded .lab-chat-messages {
  max-height: none;
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  overflow-y: auto;
}

.lab-widget.lab-expanded .lab-message-user .lab-message-content {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.lab-widget.lab-expanded .lab-message-assistant .lab-message-content {
  background: #f9fafb;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  max-width: 75%;
  font-size: 14px;
  line-height: 1.6;
}

.lab-widget.lab-expanded .lab-message-icon {
  background: transparent;
  border: none;
}

.lab-widget.lab-expanded .lab-message-content strong {
  color: #7C3AED;
}

.lab-widget.lab-expanded .lab-message-content .lab-currency {
  color: #059669;
}

/* ─── Tables in expanded ──────────────────────────────────────── */
.lab-widget.lab-expanded .lab-message-content table th {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.lab-widget.lab-expanded .lab-message-content table td {
  border-color: #e5e7eb;
  color: #4b5563;
}

.lab-widget.lab-expanded .lab-message-content table tr:nth-child(even) td {
  background: #f9fafb;
}

.lab-widget.lab-expanded .lab-message-content table tr:hover td {
  background: #ede9fe;
}

/* ─── Action confirmation in expanded ─────────────────────────── */
.lab-widget.lab-expanded .lab-action-confirmation {
  background: #eff6ff;
  border-color: #06B6D4;
}

.lab-widget.lab-expanded .lab-action-text {
  color: #1e40af;
}

.lab-widget.lab-expanded .lab-btn-cancel {
  background: #f3f4f6;
  color: #6b7280;
}

.lab-widget.lab-expanded .lab-btn-cancel:hover {
  background: #e5e7eb;
}

/* ─── Restricted messages in expanded ─────────────────────────── */
.lab-widget.lab-expanded .lab-message.restricted .lab-message-content {
  background: #fef3c7;
  border-left: 3px solid #F59E0B;
  border-color: #fde68a;
}

/* ─── Input area in expanded ──────────────────────────────────── */
.lab-widget.lab-expanded .lab-chat-input-area {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.lab-widget.lab-expanded .lab-chat-input {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
}

.lab-widget.lab-expanded .lab-chat-input::placeholder {
  color: #9ca3af;
}

.lab-widget.lab-expanded .lab-chat-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.lab-widget.lab-expanded .lab-chat-send {
  width: 48px;
  height: 48px;
}

.lab-widget.lab-expanded .lab-send-icon {
  width: 26px;
  height: 26px;
}

/* ─── Thinking in expanded ────────────────────────────────────── */
.lab-widget.lab-expanded .lab-message.thinking .lab-message-content {
  color: #7C3AED;
}

/* ─── Scrollbar in expanded ───────────────────────────────────── */
.lab-widget.lab-expanded .lab-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.lab-widget.lab-expanded .lab-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.lab-widget.lab-expanded .lab-chat-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.lab-widget.lab-expanded .lab-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Expand icon transforms to collapse icon */
.lab-widget.lab-expanded .lab-widget-expand svg {
  transform: rotate(180deg);
}

/* ─── Mobile landscape (limited height) ────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  /* Smaller FAB on mobile landscape to avoid taking too much space */
  .lab-fab {
    width: 56px;
    height: 56px;
  }
  .lab-fab-img {
    width: 56px;
    height: 56px;
  }
  .lab-widget {
    bottom: 12px;
    right: 12px;
  }
  .lab-speech-bubble {
    display: none !important;
  }
}

/* ─── Mobile responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide FAB on mobile — accessed via header button instead */
  .lab-widget:not(.lab-expanded) .lab-fab {
    display: none;
  }

  /* Speech bubbles hidden on mobile */
  .lab-speech-bubble {
    display: none !important;
  }

  .lab-widget-body {
    max-height: none;
    flex: 1;
    min-height: 0;
  }

  .lab-chat-messages {
    max-height: none;
    min-height: 120px;
    flex: 1;
  }

  .lab-widget.lab-expanded {
    left: 0;
    top: var(--header-height, 64px);
    width: 100%;
    border-radius: 0;
  }

}

/* ─── Sidebar collapsed override ───────────────────────────────── */
.sidebar.collapsed ~ .lab-widget.lab-expanded,
body.sidebar-collapsed .lab-widget.lab-expanded {
  left: var(--sidebar-collapsed-width, 64px);
}

/* ─── Default scrollbar ────────────────────────────────────────── */
.lab-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.lab-chat-messages::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.lab-chat-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.lab-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ─── Voice Command FAB ─────────────────────────────────────── */

.voice-fab {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .voice-fab {
    display: flex;
  }
}

.voice-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  color: white;
  padding: 0;
}

.voice-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.voice-btn:active {
  transform: scale(0.95);
}

.voice-btn.listening {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #667eea;
  opacity: 0;
  pointer-events: none;
}

.voice-btn.listening .pulse-ring {
  animation: voice-ring 1s infinite;
  border-color: #f5576c;
}

@keyframes voice-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Voice status pill */
.voice-status {
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: voice-slideIn 0.3s ease;
}

.voice-status.hidden {
  display: none;
}

@keyframes voice-slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.voice-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5576c;
  animation: voice-blink 1s infinite;
}

@keyframes voice-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.voice-status-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* Mobile */
@media (max-width: 768px) {
  .voice-fab {
    bottom: 20px;
    right: 20px;
  }
  .voice-btn {
    width: 56px;
    height: 56px;
  }
}

/* Haptic feedback feel on touch */
@media (hover: none) {
  .voice-btn:active {
    transform: scale(0.9);
  }
}

/* ─── Desktop Voice Modal ───────────────────────────────────── */

#voice-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}

#voice-modal.active {
  display: flex;
  animation: voiceModalFadeIn 0.2s ease;
}

@keyframes voiceModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.voice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.voice-modal-content {
  position: relative;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 380px;
  max-width: 500px;
  animation: voiceModalSlideUp 0.3s ease;
}

@keyframes voiceModalSlideUp {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.voice-modal-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.voice-modal-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 3px solid #667eea;
  animation: voice-ring 1.5s infinite;
}

.voice-modal-status {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  font-family: 'Nunito', sans-serif;
}

.voice-modal-transcript {
  font-size: 22px;
  color: #667eea;
  min-height: 36px;
  margin-bottom: 24px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
}

.voice-modal-hint {
  font-size: 13px;
  color: #999;
}

.voice-modal-hint kbd {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  border: 1px solid #e5e7eb;
}

.voice-modal-content.processing .voice-modal-status {
  color: #764ba2;
}

.voice-modal-content.processing .voice-modal-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.voice-modal-content.error .voice-modal-status {
  color: #f5576c;
}

@media (max-width: 768px) {
  .voice-modal-content {
    min-width: 85%;
    padding: 30px 20px;
  }
}

/* ─── Desktop Hotkey Hint ───────────────────────────────────── */

.voice-hotkey-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  animation: voiceModalSlideUp 0.3s ease;
}

.voice-hint-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
}

.voice-hint-content kbd {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.voice-hint-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.voice-hint-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
