/* Stalling Chatbot CSS */

.stalling-container {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f7f9fc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: none;
    animation: gentle-pulse 2s infinite;
    border-left: 4px solid #4f46e5;
  }
  
  .stalling-message {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
  }
  
  .stalling-message:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #4f46e5;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
  }
  
  .stalling-message:after {
    content: "...";
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: ellipsis 1.5s infinite;
    overflow: hidden;
  }
  
  @keyframes gentle-pulse {
    0% {
      background-color: #f7f9fc;
    }
    50% {
      background-color: #eef2ff;
    }
    100% {
      background-color: #f7f9fc;
    }
  }
  
  @keyframes spin {
    0% {
      transform: translateY(-50%) rotate(0deg);
    }
    100% {
      transform: translateY(-50%) rotate(360deg);
    }
  }
  
  @keyframes ellipsis {
    0% {
      content: ".";
    }
    33% {
      content: "..";
    }
    66% {
      content: "...";
    }
  }
  
  /* Make stalling messages work well with your existing design */
  .stalling-container + #results {
    margin-top: 2rem;
  }
  
  /* Add some responsive adjustments */
  @media (max-width: 640px) {
    .stalling-container {
      padding: 12px 15px;
    }
    
    .stalling-message {
      font-size: 14px;
      padding-left: 25px;
    }
    
    .stalling-message:before {
      width: 16px;
      height: 16px;
    }
  }