/* AI Assistant Styles */

.ai-assistant-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.ai-assistant-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.assistant-avatar {
    color: white;
    font-size: 24px;
}

.ai-assistant-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-gray-700);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.chat-header {
    background-color: var(--bs-primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.assistant-experience {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-right: auto;
    width: 100%;
}

.close-chat-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.user-message {
    align-self: flex-end;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 10px 10px 0 10px;
}

.assistant-message {
    align-self: flex-start;
    background-color: var(--bs-gray-800);
    color: white;
    border-radius: 0 10px 10px 10px;
}

.message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    font-size: 12px;
}

.message-content {
    flex: 1;
}

.chat-form {
    display: flex;
    padding: 10px;
    background-color: var(--bs-gray-900);
    border-top: 1px solid var(--bs-gray-700);
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--bs-gray-600);
    border-radius: 20px;
    background-color: var(--bs-gray-800);
    color: white;
    margin-right: 10px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--bs-primary);
}

.send-btn {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background-color: var(--bs-primary-darker, #0a58ca);
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    .ai-assistant-chat-window {
        width: calc(100% - 40px);
        height: 400px;
    }
}