/* Reset and base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header — minimal, stays out of the way */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 28px;
    width: auto;
}

.site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link:hover {
    color: #1a1a1a;
}

/* Chat container — fills all remaining viewport space */
.chat-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* FlowiseAI full chatbot fills the container */
flowise-fullchatbot {
    display: block;
    width: 100%;
    height: 100%;
}

/* Override FlowiseAI's default positioning to fill our container */
flowise-fullchatbot::part(chatbot) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .site-header {
        padding: 0.5rem 1rem;
    }

    .site-name {
        font-size: 1rem;
    }
}
