/* assets/css/page-style.css */

#gptla-search-container {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;

  .gptla-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #ccc;
    /* border-radius: 50px; */
    padding: 8px 12px;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .gptla-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 16px;
    color: #000;
    outline: none;
    min-width: 0;
  }

  .gptla-search-bar button {
    background: none;
    border: none;
    margin: 0 5px;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.2s ease;
  }

  .gptla-search-bar button:hover {
    transform: scale(1.2);
  }

  #gptla-results-container {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    min-height: 60px;
  }

  .typing {
    font-style: italic;
    color: #555;
  }

  .gptla-result ul {
    padding-left: 20px;
  }

  .gptla-result li {
    margin-bottom: 10px;
  }

  #gptla-send-btn,
  #gptla-voice-btn {
    /* background: #007bff; */
    border: none;
    /* color: white; */
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
  }

  #gptla-send-btn:hover,
  #gptla-voice-btn:hover {
    background: #55555589;
  }

  #gptla-voice-btn.listening {
    animation: pulse 1.5s infinite;
    background-color: #f44336; /* optional visual feedback */
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.7;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  input:disabled,
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  @keyframes progress-stripes {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 40px 0;
    }
  }

  #gptla-progress-bar {
    animation: progress-stripes 1s linear infinite;
    background-size: 40px 40px;
  }

  .gptla-business {
    margin-bottom: 16px;
    font-family: sans-serif;
  }

  .gptla-business h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
  }

  .gptla-tag {
    font-size: 0.75rem;
    color: #fff;
    background-color: #4a6bdf;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 4px;
  }

  @media (max-width: 600px) {
    .gptla-search-bar {
      flex-wrap: nowrap;
      padding: 6px 8px;
    }

    .gptla-search-bar input {
      font-size: 14px;
      padding: 8px;
    }

    .gptla-search-bar button {
      font-size: 18px;
      padding: 6px;
    }
  }
}
