body {
    font-family: 'Noto Serif SC', serif;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1593382753938-1815335b3769?q=80&w=2574&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.9);
    z-index: -1;
    display: none;
}

#auth-container { background-color: #f9fafb; }

#deep-thought-toggle:checked ~ .dot { transform: translateX(1.5rem); background-color: #374151; }
#deep-thought-toggle:checked ~ .block { background-color: #93c5fd; }

#history-list::-webkit-scrollbar { width: 4px; }
#history-list::-webkit-scrollbar-track { background: transparent; }
#history-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #374151;
}
.history-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}
.history-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.history-item.active {
    background-color: #b48c5a;
    color: white;
    font-weight: bold;
}
.delete-chat-btn {
    visibility: hidden;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.history-item.active .delete-chat-btn, .history-item:hover .delete-chat-btn {
    visibility: visible;
}
.delete-chat-btn:hover {
    opacity: 1;
}

.prompt-card {
    background-color: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.chat-message { display: flex; gap: 0.75rem; max-width: 85%; }
.chat-message.user { margin-left: auto; flex-direction: row-reverse; }
.chat-message.bot { margin-right: auto; }
.message-avatar { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background-color: #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.message-content { display: flex; flex-direction: column; gap: 0.5rem; }
.message-text { padding: 0.75rem 1.25rem; border-radius: 1.25rem; line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; }
.chat-message.user .message-text { background-color: #374151; color: #f9fafb; border-bottom-right-radius: 0.25rem; }
.chat-message.bot .message-text { background-color: #ffffff; color: #1f2937; border: 1px solid #e5e7eb; border-bottom-left-radius: 0.25rem; }
.thought-bubble { padding: 1rem; background-color: #f3f4f6; border: 1px dashed #d1d5db; border-radius: 0.75rem; font-size: 0.9em; color: #4b5563; }
.thought-bubble-header { display: flex; align-items: center; gap: 0.5rem; font-weight: bold; margin-bottom: 0.5rem; color: #374151; }

#chat-box::-webkit-scrollbar { width: 6px; }
#chat-box::-webkit-scrollbar-track { background: transparent; }
#chat-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
#chat-box::-webkit-scrollbar-thumb:hover { background: #aaa; }
