:root {
    --background: 0 0% 90%;
    --foreground: 0 0% 0%; /* Changed to black */
    --primary: 43.3 96% 22.7%;
    --primary-foreground: 0 0% 0%; /* Changed to black */
    --secondary: 0 0% 90%;
    --secondary-foreground: 0 0% 0%; /* Changed to black */
    --muted: 0 0% 80%;
    --muted-foreground: 0 0% 0%; /* Changed to black */
    --accent: 43.3 96% 22.7%;
    --accent-foreground: 0 0% 0%; /* Changed to black */
    --border: 0 0% 80%;
    --input: 0 0% 80%;
    --radius: 0.5rem;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom right, hsl(0 0% 90%), hsl(0 0% 95%), hsl(0 0% 85%));
    color: hsl(var(--foreground));
    min-height: 100vh;
    overflow-x: hidden;
}

.logo {
    display: flex;
    align-items: center;
    color: hsl(0 0% 0%); /* Changed to black */
    font-size: 1.2rem;
    font-weight: bold;
}
.logo i {
    margin-right: 0.3rem;
}
.nav-buttons button {
    background: none;
    border: none;
    color: hsl(0 0% 0%); /* Changed to black */
    padding: 0.3rem 0.8rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}
.nav-buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav-buttons button.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.chatbot-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: rgba(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
.chatbot-container.hidden {
    display: none;
}
.chatbot-container.fullscreen {
    width: 100%;
    height: calc(100vh - 3rem);
    bottom: 0;
    right: 0;
    border-radius: 0;
}
.chat-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header .avatar {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(184, 134, 11, 0.3);
    position: relative;
}
.chat-header .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.chat-header .avatar .status {
    width: 0.6rem;
    height: 0.6rem;
    background: hsl(120, 100%, 50%);
    border-radius: 50%;
    position: absolute;
    bottom: -0.1rem;
    right: -0.1rem;
    border: 2px solid hsl(0, 0%, 0%);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.chat-header .title {
    color: hsl(0 0% 0%); /* Changed to black */
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.chat-header .title i {
    margin-left: 0.4rem;
    color: hsl(var(--primary));
}
.chat-header .subtitle {
    color: hsl(0 0% 0%); /* Changed to black */
    font-size: 0.65rem;
    display: flex;
    align-items: center;
}
.chat-header .subtitle i {
    margin-right: 0.2rem;
}
.chat-header .badge {
    background: rgba(184, 134, 11, 0.2);
    color: hsl(0 0% 0%); /* Changed to black */
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
}
.chat-messages {
    flex: 1;
    padding: 0.8rem;
    overflow-y: auto;
}
.message {
    display: flex;
    margin-bottom: 1.2rem;
}
.message.user { justify-content: flex-end; }
.message.bot { justify-content: flex-start; }
.message-content {
    max-width: 85%;
    padding: 0.8rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: hsl(0 0% 0%); /* Changed to black */
}
.message.user .message-content {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.message.bot .message-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: hsl(0 0% 0%); /* Changed to black */
}
.message .avatar {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    margin: 0 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message.user .avatar {
    background: hsl(0 0% 80%);
}
.message.bot .avatar {
    background: hsl(var(--primary));
}
.message-content p, .message-content ul, .message-content ol {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: hsl(0 0% 0%); /* Changed to black */
}
.message-content ul, .message-content ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
.message-content strong {
    font-weight: 700;
    color: hsl(0 0% 0%); /* Changed to black */
}
.message-content a {
    color: hsl(0 0% 0%); /* Changed to black */
    text-decoration: underline;
}
.message-content a:hover {
    color: hsl(43.3 96% 32.7%);
}
.message-content .meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.65rem;
    opacity: 0.6;
    color: hsl(0 0% 0%); /* Changed to black */
}
.message-content .actions button {
    background: none;
    border: none;
    color: hsl(0 0% 0%); /* Changed to black */
    cursor: pointer;
    padding: 0.2rem;
    margin-left: 0.2rem;
}
.message-content .actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}
.message-content .bot-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-top: 0.4rem;
    object-fit: cover;
}
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 1rem;
}
.loading-spinner.hidden {
    display: none;
}
.loading-spinner .dot {
    width: 0.4rem;
    height: 0.4rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    margin-right: 0.2rem;
    animation: bounce 1.2s infinite;
}
.loading-spinner .dot:nth-child(2) {
    animation-delay: 0.1s;
}
.loading-spinner .dot:nth-child(3) {
    animation-delay: 0.2s;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.4rem); }
}
.quick-prompts {
    padding: 0 0.8rem 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.quick-prompts button {
    background: none;
    border: 1px solid hsl(0 0% 80%);
    color: hsl(0 0% 0%); /* Changed to black */
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    cursor: pointer;
}
.quick-prompts button:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.chat-input {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
}
.chat-input form {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}
.chat-input .input-wrapper {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.8rem;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}
.chat-input input {
    flex: 1;
    background: none;
    border: none;
    color: hsl(0 0% 0%); /* Changed to black */
    font-size: 0.8rem;
    outline: none;
}
.chat-input input::placeholder {
    color: hsl(0 0% 20%); /* Slightly lighter for visibility */
}
.chat-input .input-actions button {
    background: none;
    border: none;
    color: hsl(0 0% 0%); /* Changed to black */
    padding: 0.2rem;
    cursor: pointer;
}
.chat-input .input-actions button:hover {
    color: hsl(43.3 96% 32.7%);
}
.chat-input .send-button {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    border: none;
    cursor: pointer;
}
.chat-input .send-button:hover {
    background: hsl(43.3 96% 32.7%);
    transform: scale(1.05);
}
.chat-input .input-info {
    text-align: center;
    font-size: 0.65rem;
    color: hsl(0 0% 0%); /* Changed to black */
    margin-top: 0.4rem;
}
.toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: hsl(var(--primary));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.toggle-button img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(184, 134, 11, 0.3);
}
.toggle-button.visible {
    display: flex;
}
.toggle-button:hover {
    transform: scale(1.1);
}
/* Mobile responsiveness */
@media (max-width: 640px) {
    .chatbot-container {
        width: 90%;
        height: 80vh;
        bottom: 50px;
        right: 5%;
    }
    .chatbot-container.fullscreen {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
    }
    .chat-header {
        padding: 0.6rem;
    }
    .chat-header .title {
        font-size: 0.9rem;
    }
    .chat-header .subtitle {
        font-size: 0.6rem;
    }
    .chat-messages {
        padding: 0.6rem;
    }
    .message-content {
        max-width: 90%;
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    .chat-input {
        padding: 0.6rem;
    }
    .chat-input input {
        font-size: 0.75rem;
    }
    .chat-input .send-button {
        padding: 0.5rem 1rem;
    }
    .quick-prompts button {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
    .toggle-button {
        width: 36px;
        height: 36px;
        bottom: 15px;
        right: 15px;
    }
    .toggle-button img {
        width: 20px;
        height: 20px;
    }
}