/* WhatsApp Chat Widget Styles */

.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  
  .chat-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
  }
  
  .chat-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  .chat-widget-button svg {
    width: 32px;
    height: 32px;
    fill: white;
  }
  
  .chat-widget-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .chat-widget-header {
    background-color: #25D366;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
  }
  
  .chat-widget-profile-picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .chat-widget-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .chat-widget-profile-picture svg {
    width: 24px;
    height: 24px;
    fill: white;
  }
  
  .chat-widget-profile-info {
    flex: 1;
    min-width: 0;
  }
  
  .chat-widget-profile-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .chat-widget-profile-status {
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .chat-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
  }
  
  .chat-widget-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #ECE5DD;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .chat-widget-message {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 8px;
    word-wrap: break-word;
    position: relative;
    animation: fadeIn 0.2s ease-in;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .chat-widget-message.user {
    align-self: flex-end;
    background-color: #DCF8C6;
    border-bottom-right-radius: 2px;
  }
  
  .chat-widget-message.bot {
    align-self: flex-start;
    background-color: white;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .chat-widget-message-text {
    font-size: 14px;
    line-height: 1.4;
    color: #111;
    margin-bottom: 4px;
  }
  
  .chat-widget-message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 11px;
    color: #667781;
  }
  
  .chat-widget-message-timestamp {
    font-size: 11px;
  }
  
  .chat-widget-message-status {
    display: flex;
    align-items: center;
  }
  
  .chat-widget-message-status svg {
    width: 16px;
    height: 16px;
    fill: #667781;
  }
  
  .chat-widget-input-area {
    padding: 12px;
    background-color: #F0F0F0;
    display: flex;
    gap: 8px;
    border-top: 1px solid #E0E0E0;
  }
  
  .chat-widget-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background-color: white;
    font-family: inherit;
  }
  
  .chat-widget-input:focus {
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
  }
  
  .chat-widget-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
  }
  
  .chat-widget-send:hover {
    background-color: #20BA5A;
    transform: scale(1.05);
  }
  
  .chat-widget-send:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
    transform: none;
  }
  
  .chat-widget-send svg {
    width: 20px;
    height: 20px;
    fill: white;
  }
  
  /* Mobile Responsive */
  @media (max-width: 480px) {
    .chat-widget-container {
      bottom: 10px;
      right: 10px;
    }
  
    .chat-widget-window {
      width: calc(100vw - 20px);
      height: calc(100vh - 80px);
      bottom: 70px;
      right: 0;
      border-radius: 12px 12px 0 0;
    }
  }
  
  /* Scrollbar Styling */
  .chat-widget-messages::-webkit-scrollbar {
    width: 6px;
  }
  
  .chat-widget-messages::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .chat-widget-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  
  .chat-widget-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }
  
  