/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./app/components/Sidebar.module.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************/
.Sidebar_sidebar__NatnM {
    width: 260px;
    height: 100%;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}

.Sidebar_closed__6Tsr9 {
    width: 0;
    padding: 0;
    border: none;
    opacity: 0;
}

.Sidebar_newChatButton__LOMjH {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-highlight);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1.5rem;
}

.Sidebar_newChatButton__LOMjH:hover {
    background-color: var(--bg-tertiary);
}

.Sidebar_nav__tWk5K {
    flex: 1 1;
    overflow-y: auto;
}

.Sidebar_navLabel__RvaWI {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.Sidebar_navItem__mUSg_ {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Sidebar_navItem__mUSg_:hover {
    background-color: var(--bg-tertiary);
}

.Sidebar_footer__jg2Pa {
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.Sidebar_avatar__Duf10 {
    width: 2rem;
    height: 2rem;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .Sidebar_sidebar__NatnM {
        position: fixed;
        top: 80px;
        /* Below header */
        left: -260px;
        height: calc(100vh - 80px);
        z-index: 50;
    }

    .Sidebar_sidebar__NatnM.Sidebar_open__Jpzb8 {
        transform: translateX(260px);
    }
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./app/components/MessageBubble.module.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************/
.MessageBubble_container__TTwer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid transparent;
    width: 100%;
    max-width: 48rem;
    /* max-w-3xl */
    margin: 0 auto;
}



.MessageBubble_avatar__1_x4T {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.MessageBubble_avatar__1_x4T.MessageBubble_user__I7GEa {
    background-color: var(--text-tertiary);
    color: var(--text-primary);
}

.MessageBubble_avatar__1_x4T.MessageBubble_assistant___ACI6 {
    background-color: #10a37f;
    /* ChatGPT-like green, or use accent */
    background-color: var(--accent-primary);
    color: white;
}

.MessageBubble_content__d0Mtu {
    flex: 1 1;
    min-width: 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Markdown Styles */
.MessageBubble_content__d0Mtu p {
    margin-bottom: 1rem;
}

.MessageBubble_content__d0Mtu p:last-child {
    margin-bottom: 0;
}

.MessageBubble_content__d0Mtu h1,
.MessageBubble_content__d0Mtu h2,
.MessageBubble_content__d0Mtu h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.MessageBubble_content__d0Mtu ul,
.MessageBubble_content__d0Mtu ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.MessageBubble_content__d0Mtu li {
    margin-bottom: 0.5rem;
}

.MessageBubble_content__d0Mtu pre {
    background-color: #000;
    /* Darker code block */
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border-subtle);
}

.MessageBubble_content__d0Mtu code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
}

.MessageBubble_content__d0Mtu :not(pre)>code {
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

.MessageBubble_typingIndicator__PvzDF {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 12px;
    width: -moz-fit-content;
    width: fit-content;
}

.MessageBubble_typingIndicator__PvzDF span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: MessageBubble_typing__cRB_n 1.4s infinite ease-in-out both;
}

.MessageBubble_typingIndicator__PvzDF span:nth-child(1) {
    animation-delay: -0.32s;
}

.MessageBubble_typingIndicator__PvzDF span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes MessageBubble_typing__cRB_n {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}
/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./app/components/ChatArea.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.ChatArea_container__VA92L {
    flex: 1 1;
    overflow-y: auto;
    padding: 0 1rem 10rem;
    /* Bottom padding for input area */
    scroll-behavior: smooth;
}

.ChatArea_emptyState__syo_Y {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-align: center;
}

.ChatArea_logo__RipU0 {
    width: 4rem;
    height: 4rem;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
}

.ChatArea_title__sq_E2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.ChatArea_examples__EkLMv {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    gap: 1rem;
    max-width: 48rem;
    width: 100%;
}

.ChatArea_exampleCard__Iki_b {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.ChatArea_exampleCard__Iki_b:hover {
    background-color: var(--bg-tertiary);
}

.ChatArea_exampleTitle__u_74j {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.ChatArea_exampleDesc__NXjH2 {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./app/components/InputArea.module.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/
.InputArea_container__NCRW4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 2rem;
    background-image: linear-gradient(to top, var(--bg-primary) 80%, transparent);
}

.InputArea_inputWrapper__0vGb2 {
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    border: 1px solid var(--border-highlight);
    border-radius: 0.75rem;
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s;
}

.InputArea_inputWrapper__0vGb2:focus-within {
    border-color: var(--text-secondary);
}

.InputArea_textarea__TA4RU {
    width: 100%;
    max-height: 200px;
    padding: 1rem 3rem 1rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    line-height: 1.5;
    display: block;
}

.InputArea_textarea__TA4RU::placeholder {
    color: var(--text-secondary);
}

.InputArea_sendButton__qVEo3 {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
}

.InputArea_sendButton__qVEo3:hover:not(:disabled) {
    background-color: var(--accent-hover);
}

.InputArea_sendButton__qVEo3:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

.InputArea_disclaimer__FAp_W {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}
