:root {
    --sidebar-width: 260px;
    --bg-light: #f7f7f8;
    --ai-bubble: #ffffff;
    --user-bubble: #007bff;
    --text-dark: #343541;
    --border-color: #e5e5e5;
}

body,
html {
    height: 100%;
    margin: 0;
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: #202123;
    display: flex;
    flex-direction: column;
}

.history-item {
    background: transparent;
    color: #ececf1;
    border: none;
    padding: 10px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-container:hover {
    background: #2b2c33;
    border-radius: 5px;
}

.history-container.active {
    background: #343541;
    border-radius: 5px;
}

/* Chat Area Main Layout */
#page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Suggestions Branding */
#suggestions-container {
    margin: auto 0;
    padding: 20px 0;
}

.suggestion-card {
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.suggestion-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    border-color: var(--user-bubble) !important;
}

.user-message {
    align-self: flex-end !important;
    /* Forces the bubble to the right */
    background-color: #0084ff !important;
    /* Messenger Blue */
    color: white !important;
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px !important;
    /* Messenger tail */

    /* These lines make the bubble wrap tightly around your text */
    width: fit-content !important;
    box-shadow: none !important;

    max-width: 75% !important;
    display: block !important;

    /* Clean up margins */
    margin-left: auto !important;
    margin-bottom: 8px !important;
}



/* Input Area Fixed to Bottom */
.input-area {
    padding: 20px;
    /* Change from #ffffff to match your --bg-light variable */
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.container-max {
    max-width: 800px;
    margin: 0 auto;
}

.input-group {
    background: white;
    /* This keeps the actual typing box white */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#user-input {
    background: black;
    /* Allows it to take the color of the group */
    border: none;
    outline: none;
}

input::placeholder {
    color: #6c757d;
}

#user-input:focus {
    box-shadow: none;
}

/* Typing Indicator Animation */
.dot {
    width: 8px;
    height: 8px;
    background-color: #90949c;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.3s linear infinite;
}

.dot:nth-child(2) {
    animation-delay: -1.1s;
}

.dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

.input-wrapper {
    background: transparent;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-bar-container {
    background: #212529;
    /* Dark primary surface */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    /* Large pill shape */
    padding: 12px 20px;
    width: 100%;
    color: #e3e3e3;
    transition: box-shadow 0.3s ease;
}

.input-bar-container:focus-within {
    box-shadow: 0 4px 20px rgba(243, 243, 243, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-top-row #user-input {
    background: transparent;
    color: white;
    font-size: 1.1rem;
    padding: 10px 0;
}

.input-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.btn-tool {
    background: transparent;
    border: none;
    color: #c4c7c5;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-tool:hover {
    background: rgba(255, 255, 255, 0.08);
}

.engine-badge {
    font-size: 0.85rem;
    color: #c4c7c5;
    padding: 0 10px;
}

.disclaimer {
    font-size: 0.75rem;
    color: #80868b;
}

.btn-circle-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f0f0f0;
    /* Light grey circle */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.btn-circle-send:hover {
    background-color: #e0e0e0;
    color: #000;
}

.btn-circle-send i {
    font-size: 1.2rem;
    transform: rotate(45deg);
    /* Tilts the paper plane icon */
}

::placeholder {
    color: #ffffff;
    /* Replace with your desired color */
    opacity: 1;
    /* Required for consistent color in Firefox */
}

#user-input::placeholder {
    color: #ffffff;
    opacity: 1;
}

.sidebar-brand {
    background-color: #202123;
    /* Matches your sidebar color */
    height: 70px;
    /* Consistent height for the brand area */
}

.sidebar-brand span {
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', sans-serif;
}

/* Optional: Add a hover effect to the brand logo */
.sidebar-brand:hover {
    cursor: pointer;
    opacity: 0.9;
}

/* Update the wrapper to match your design background */
.input-wrapper {
    background: #f7f7f8;
    /* Or whatever your main background color is */
    padding-bottom: 30px;
}

/* Ensure entered text is black */
#user-input {
    color: #000000 !important;
    background: transparent;
    border: none;
}

/* Custom placeholder color */
#user-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.auth-card h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px;
    font-weight: 600;
}

.avatar-sm {
    font-size: 0.9rem;
    line-height: 1;
}

.property-card {
    transition: transform 0.2s ease-in-out;
    min-width: 280px;
    border-radius: 12px;
}

.property-card:hover {
    transform: translateY(-5px);
}

.text-orange {
    color: #ff5a3d;
    /* Matches the pin color in your reference image */
}

.property-results-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 0;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

/* Hide scrollbar for a cleaner look but keep functionality  */
.property-results-row::-webkit-scrollbar {
    height: 6px;
}

.property-results-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Ensure AI messages don't restrict the scroller width */

/* Give the cards a consistent size so they don't collapse */
.property-card {
    min-width: 280px !important;
    max-width: 280px !important;
    height: auto;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    flex-shrink: 0;
}

/* Base Message Wrapper */
.ai-message {
    max-width: 75%;
    margin-bottom: 4px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 85%;
    border-radius: 12px;
}

/* AI Text Bubble (The Gray Box) */
/* .ai-message p {
    background-color: #f8f9fa !important;
    
    color: #050505 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
    width: fit-content !important;
    box-shadow: none !important;
     align-self: flex-start;
    background-color: transparent !important;
    border: none !important;
    color: var(--text-dark);
    max-width: 85% !important;
    padding: 0 !important;
    align-items: flex-start;
    
} */