/* General Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Main Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    width: 800px;
    max-width: 100%;
    height: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.5em;
}

/* Chat Box: Where messages appear */
.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

/* Individual Chat Message Styling */
.message {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

/* Message Bubbles */
.message .text {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 14px;
}

.message.user .text {
    background-color: #007bff;
    color: white;
    border-radius: 20px 20px 0px 20px;
}

.message.bot .text {
    background-color: #e0e0e0;
    color: black;
    border-radius: 20px 20px 20px 0px;
}

/* Input Container Styling */
.input-container {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid #ddd;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
}

#send-btn {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

#send-btn:hover {
    background-color: #0056b3;
}

.toolbar{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.switch{
    position:relative;
    display:inline-block;
    width:55px;
    height:28px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    cursor:pointer;
    background:#ccc;
    border-radius:30px;
    top:0;
    left:0;
    right:0;
    bottom:0;
    transition:.3s;
}

.slider:before{
    position:absolute;
    content:"";
    width:22px;
    height:22px;
    left:3px;
    bottom:3px;
    background:white;
    border-radius:50%;
    transition:.3s;
}

input:checked + .slider{
    background:#e53935;
}

input:checked + .slider:before{
    transform:translateX(27px);
}