/* Chatbot Widget Styles - Scoped to avoid conflicts */


    :root {
      --primary: #1e40af;
      --secondary: #f97316;
      --accent: #10b981;
      --dark: #1e293b;
      --gray: #64748b;
      --light-gray: #f1f5f9;
      --white: #ffffff;
    }


  #easblink-chatbot-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  #easblink-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  }
  

  /* Chat Button */
  #easblink-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) );
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }
  
  #easblink-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  }
  
  #easblink-chat-button svg {
    width: 30px;
    height: 30px;
    fill: white;
  }
  
  #easblink-chat-button .notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
  }
  
  /* Chat Window */
  #easblink-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
  }
  
  #easblink-chat-window.show {
    display: flex;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Chat Header */
  #easblink-chat-header {
    background: linear-gradient(135deg, var(--primary));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #easblink-chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }
  
  #easblink-chat-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 4px 0 0 0;
  }
  
  #easblink-close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  #easblink-close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Messages Container */
  #easblink-messages {
    flex: 1;
    overflow-y: auto;
    padding-left: 30px;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .easblink-message {
    display: flex;
    gap: 8px;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .easblink-message.user {
    flex-direction: row-reverse;
  }
  
  .easblink-message-content {
    max-width: 90%;
    padding-left: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
  }
  
  .easblink-message.bot .easblink-message-content {
    background: white;
    color: #2c3e50;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .easblink-message.user .easblink-message-content {
    background: linear-gradient(135deg, var(--primary) );
    color: white;
    border-bottom-right-radius: 4px;
    width: 80%;
  }
  
  .easblink-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  .easblink-message.bot .easblink-message-avatar {
    background: var(--secondary);
  }
  
  .easblink-message.user .easblink-message-avatar {
    background: #e0e7ff;
  }
  
  .easblink-typing {
    display: none;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .easblink-typing.show {
    display: block;
  }
  
  .easblink-typing span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
  }
  
  .easblink-typing span:nth-child(1) { animation-delay: -0.32s; }
  .easblink-typing span:nth-child(2) { animation-delay: -0.16s; }
  
  @keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
  }
  
  /* Input Area */
  #easblink-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e1e8ed;
    display: flex;
    gap: 8px;
  }
  
  #easblink-user-input {
    flex: 1;
    border: 1px solid #e1e8ed;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
  }
  
  #easblink-user-input:focus {
    border-color: #667eea;
  }
  
  #easblink-send-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  
  #easblink-send-button:hover:not(:disabled) {
    transform: scale(1.05);
  }
  
  #easblink-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  #easblink-send-button svg {
    width: 20px;
    height: 20px;
    fill: white;
  }
  
  /* Mobile Responsive */
  @media (max-width: 480px) {
    #easblink-chat-window {
      width: calc(100vw - 20px);
      height: calc(100vh - 100px);
      right: 10px;
      bottom: 80px;
    }
  }