/* Reset defaults */
body, h1 {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Toggler button */
.chatbot-toggler {
    position: fixed;
    right: 20px;
    bottom: 20px;
    height: 45px;
    width: 45px;
    border: none;
    background: #de742f;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.show-chatcontainer .chatbot-toggler {
    transform: rotate(90deg);
}
.chatbot-toggler span {
    position: absolute;
}
.chatbot-toggler img {
    height: 24px;
    width: 24px;
}
.chatbot-toggler span:last-child {
    opacity: 0;
}
.show-chatcontainer .chatbot-toggler span:first-child {
    opacity: 0;
}
.show-chatcontainer .chatbot-toggler span:last-child {
    opacity: 1;
}

/* Chat container */
.chat-container {
    position: fixed;
    bottom: 80px;
    right: 15px;
    width: 280px;
    max-height: 420px;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    background-color: black;
    border: 1px solid #de742f;
    box-shadow: 0 4px 8px rgba(222, 116, 47, 0.4);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    transition: all 0.3s ease-in-out;
    z-index: 999;
}
.show-chatcontainer .chat-container {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.header {
    background-color: #de742f;
    color: black;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

/* Chat messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #1a1a1a;
    color: white;
    font-size: 0.9rem;
}

/* Message bubbles */
.message {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}
.input-message {
    align-self: flex-start;
    background-color: #333;
    color: white;
    border-radius: 12px 12px 12px 0;
}
.output-message {
    align-self: flex-end;
    background-color: #de742f;
    color: black;
    border-radius: 12px 12px 0 12px;
}

/* Input section */
.chat-input {
    display: flex;
    padding: 8px;
    background: black;
    border-top: 1px solid #de742f;
}
#message-input {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-size: 0.9rem;
}
#send-button {
    background: none;
    border: none;
    margin-left: 8px;
    cursor: pointer;
}
.chat-input img {
    height: 24px;
    width: 24px;
    filter: invert(80%);
    transition: transform 0.2s ease;
}
.chat-input img:hover {
    transform: scale(1.2);
}
