* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
}

/* Demo content */
.demo-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Collapsed state */
.chat-collapsed {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chat-collapsed::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 30px;
    height: 30px;
    background: #00ace9;
    border-radius: 0 25px 0 25px;
}

.chat-collapsed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    margin-right: 4px;
}

/* Expanded state */
.chat-expanded {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #00ace9;
    border-radius: 0 12px 0 40px;
}

.close-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: 1.5px solid white;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-left: 20px;
    background-position: center;
    background-size: contain;
    background-image: url(../images/admin.jpg);
}

.agent-info {
    margin-left: 8px;
}

.agent-name {
    font-weight: 600;
    font-size: 16px;
}

.agent-role {
    font-size: 13px;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafafa;
}

.message {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-message-avatar {
    background: #e2e8f0;
    background-position: center;
    background-size: contain;
    background-image: url(../images/admin.jpg);
}

.user-message-avatar {
    background: #4299e1;
    background-position: center;
    background-size: contain;
    background-image: url(../images/user.png);
}

.message-content {
    max-width: 240px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.agent .message-content {
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message.user .message-content {
    background: #48bb78;
    color: white;
    border-bottom-right-radius: 6px;
}

.message-time {
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
    text-align: right;
}

.message.agent .message-time {
    text-align: left;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #cbd5e0;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

.chat-input-area {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7fafc;
    border-radius: 24px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
}

.chat-input-container:focus-within {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 80px;
    font-family: inherit;
}

.chat-input::placeholder {
    color: #a0aec0;
}

.input-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 16px;
}

.input-btn:hover {
    background: #e2e8f0;
}

.send-btn {
    background: #48bb78;
    color: white;
}

.send-btn:hover {
    background: #38a169;
}

.send-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.jivo-branding {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: #a0aec0;
    background: #f7fafc;
}

.jivo-branding a {
    color: #4299e1;
    text-decoration: none;
}

.hidden-chat {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 10px;
        right: 10px;
    }

    .chat-expanded {
        width: calc(100vw - 20px);
        height: calc(100vh - 60px);
        max-height: 500px;
    }
}
.hero-section {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.demo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16rem;
    color: #6b7280;
}
/* --- Custom typography for article content --- */

.demo-content h1, .demo-content h2, .demo-content h3 {
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }
  
  .demo-content h1 {
    font-size: 2.25rem;
  }
  
  .demo-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
  }
  
  .demo-content h3 {
    font-size: 1.25rem;
    color: #2d3748;
  }
  
  .demo-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #2d3748;
  }
  
  .demo-content ul, .demo-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .demo-content ul li, .demo-content ol li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
  }
  
  .demo-content strong {
    font-weight: 600;
    color: #1a202c;
  }
  
  .demo-content em {
    font-style: italic;
    color: #4a5568;
  }
  
  .demo-content a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
  }
  
  .demo-content a:hover {
    color: #1d4ed8;
  }
  
  .demo-content blockquote {
    border-left: 4px solid #4299e1;
    background: #f0f4f8;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4a5568;
  }
  
  .demo-content pre, .demo-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: #edf2f7;
    color: #1a202c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
  }
  
  .demo-content pre {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
  }
  
  .demo-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
  }
  
  .demo-content th, .demo-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
  }
  
  .demo-content th {
    background-color: #f7fafc;
    text-align: left;
    font-weight: 600;
  }
  
  .demo-content tr:nth-child(even) {
    background-color: #f9fafb;
  }
  
  /* Responsive enhancements */
  @media (max-width: 600px) {
    .demo-content {
      padding: 24px;
    }
  
    .demo-content h1 {
      font-size: 1.75rem;
    }
  
    .demo-content h2 {
      font-size: 1.375rem;
    }
  
    .demo-content h3 {
      font-size: 1.125rem;
    }
  }
  .install-extension-wrapper {
    text-align: center;
    margin: 3rem 0 2rem;
  }
  .install-extension-wrapper a, .install-extension-wrapper a:hover {
    text-decoration: none;
    color: white;
  }
  .install-extension-button {
    display: inline-block;
    background-color: #3cb371;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(60, 179, 113, 0.3);
  }
  
  .install-extension-button:hover {
    background-color: #2e8b57;
    transform: translateY(-2px);
  }
    