#ai-toggle-btn {
    bottom: 20px;
    right: 20px;
}

#ai-chat-box {
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 50%;
    max-width: 800px;
    height: 400px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    background: rgba(33, 37, 41);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

#ai-chat-box.hidden {
    display: none;
}

#ai-chat-box button {
    padding: 5px 10px;
    background: var(--info);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-header {
    background: var(--gray-dark);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 16px;
    color: white;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.ai-input {
    padding: 10px;
    display: flex;
    gap: 5px;
}

.ai-input input {
    flex: 1;
    padding: 5px;
}



.msg.user {
    text-align: right;
    margin: 5px 0;
}

.msg.assistant {
    text-align: left;
    color: #007acc;
    margin: 5px 0;
}


@media (max-width: 600px) {
    #ai-chat-box {
        width: 90vw;
        left: 5vw;
        right: 0;
        bottom: 0;
        height: 50vh;
        min-height: 200px;
        max-width: none;
    }
    .ai-input input {
        font-size: 16px;
    }
    .ai-messages {
        font-size: 15px;
    }
}