:root {
    --primary-color: #005eb8; /* Classic Tech Blue */
    --primary-hover: #004a94;
    --secondary-color: #333333;
    --bg-color: #e4e9e8; 
    --text-color: #555555;
    --wrapper-bg-fallback: #c8df8e; /* Fallback green */
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    box-sizing: border-box;
    overflow: hidden; /* Prevent full-page scroll to lock the chat in place */
    height: 100vh;
    width: 100%; 
}

/* Header Navigation */
header {
    background-color: #ffffff;
    padding: 5px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px; 
    position: relative;
    z-index: 10;
}

.logo-container img {
    display: block;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- LAYOUT WRAPPER --- */
#layout-wrapper {
    display: flex;
    justify-content: center; /* Centers the chat container */
    width: 100%;
    height: calc(100vh - 40px); /* Fills full vertical screen beneath the header area */
    
    /* Background Properties */
    background-color: var(--wrapper-bg-fallback); /* Renders this color if image is missing */
    background-image: url('iconbackgroundnavy.png'); /* Requested background image */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

/* Center Chat Container */
#chat-container {
    width: 100%;
    max-width: 1000px; /* Capped at 1000px */
    height: 100%; /* Fills the vertical space of layout-wrapper */
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1); 
    box-sizing: border-box;
    position: relative; /* CRITICAL: Traps the absolute positioning of the Voiceflow widget */
    display: block;
    overflow: hidden; 
}

/* Lock the center container to exactly 1000px on wider screens */
@media (min-width: 1000px) {
    #chat-container {
        flex: 0 0 1000px;
        border-left: 2px solid #cccccc; 
        border-right: 2px solid #cccccc;
    }
}

/* Responsive Design for smaller screens */
@media (max-width: 599px) {
    header { 
        padding: 15px 20px; 
        height: auto; 
        flex-direction: column; 
        gap: 15px; 
    }
    #layout-wrapper { 
        height: calc(100vh - 120px); /* Adjusts height if header wraps on mobile */
    }
}

/* --- VOICEFLOW WIDGET OVERRIDES --- */

/* Force any element injected by Voiceflow to fit perfectly inside the container */
#chat-container > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: absolute !important; /* Ties the widget strictly to the #chat-container's boundaries */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important; /* Removes any default floating bubble rounded corners */
}