@keyframes audio-recording-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.audio-recording-panel {
  display: block;
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 1;
  padding: 15px;
  background: var(--color-bg-primary);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  transform: translate(-50%, 100%);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  user-select: none;

  &.on-action-page {
    cursor: default;

    .action-hint {
      display: none;
    }
  }

  &.recording {
    transform: translate(-50%, 0);
    pointer-events: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }

  &:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .recording-info-row {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .recording-indicator {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg-primary);
    border: 2px solid var(--color-fg-error-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;

    .inner {
      width: 10px;
      height: 10px;
      background-color: var(--color-fg-error-secondary);
      border-radius: 50%;
      animation: audio-recording-pulse 1.2s infinite;
    }
  }

  .action-hint {
    padding-top: 10px;
    font-size: 12px;
    color: var(--color-text-primary);
    /* Prevent line breaks */
    white-space: nowrap;
  }
}
