* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Navbar Styles - Matching Main Website */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    line-height: 1;
}

.navbar-bit { color: #3b82f6; }
.navbar-bot { color: #8b5cf6; }
.navbar-boo { color: #ec4899; }

.navbar-solutions {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    font-stretch: condensed;
    line-height: 1;
    margin-bottom: 2px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: #f1f5f9;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #475569;
    fill: none;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.chat-container {
    width: 100%;
    max-width: 500px;
    height: calc(100vh - 80px);
    max-height: 700px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 80px auto 20px;
}

.chat-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.chat-title h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-title .status {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-title .status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.close-btn {
    color: white;
    font-size: 28px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-btn {
    padding: 8px 14px;
    border: 1px solid #6366f1;
    background: white;
    color: #6366f1;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #6366f1;
    color: white;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 5px;
}

#userInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
}

.send-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 600px) {
    .chat-container {
        height: calc(100vh - 60px);
        max-height: none;
        border-radius: 0;
        margin: 60px 0 0;
    }
    
    .navbar-nav {
        gap: 5px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .navbar-solutions {
        display: none;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

[data-theme="dark"] .navbar {
    background: #0f172a;
    border-bottom: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar-bit { color: #60a5fa; }
[data-theme="dark"] .navbar-bot { color: #a78bfa; }
[data-theme="dark"] .navbar-boo { color: #f472b6; }
[data-theme="dark"] .navbar-solutions { color: #64748b; }

[data-theme="dark"] .nav-link {
    color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover {
    color: #60a5fa;
    background: #1e293b;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #1e293b;
}

[data-theme="dark"] .theme-toggle svg {
    stroke: #94a3b8;
}

[data-theme="dark"] .chat-container {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-theme="dark"] .chat-messages {
    background: #0f172a;
}

[data-theme="dark"] .bot-message .message-content {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-btn {
    background: #1e293b;
    border-color: #6366f1;
    color: #818cf8;
}

[data-theme="dark"] .quick-btn:hover {
    background: #6366f1;
    color: white;
}

[data-theme="dark"] .chat-input-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .chat-input-wrapper {
    background: #0f172a;
}

[data-theme="dark"] #userInput {
    color: #e2e8f0;
}

[data-theme="dark"] #userInput::placeholder {
    color: #64748b;
}

/* Contact Button */
.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

[data-theme="dark"] .contact-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

[data-theme="dark"] .contact-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}
