#chatbox {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

#chatHeader {
    padding: 15px;
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#closeChat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#chatMessages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.bot-message {
    background: #e9ecef;
    margin-right: auto;
}

.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
}

#chatInputArea {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chatInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#sendBtn {
    margin-left: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 768px) {
    #chatbox {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}
