#chatIcon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
    background: #1976d2;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#chatWindow {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
}

#chatHeader {
    background: #1976d2;
    color: white;
    padding: 12px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#chatBox {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user {
    align-self: flex-end;
    background: #1976d2;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
}

.ai {
    align-self: flex-start;
    background: #f1f1f1;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
}

#chatInput {
    display: flex;
    border-top: 1px solid #ddd;
}

#question {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

#sendBtn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}
