body {
    background-color:  #292222;
    display: flex;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    
}

.chat-container {
    width: 100%;
    /* max-width: 800px; */
    background-color: black;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 90vh;
    position: fixed;
    height: 100vh;
    font-size: large;
    overflow-y: hidden;
}

#output-field {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 15px;
    /* background-color: black; */
    /* border-top-left-radius: 12px;
    border-top-right-radius: 12px; */
    color: white;
}

#output-container {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
background-color: #2a2a2a;
background-image: url('bgchatbot.png');
background-size: cover;
background-repeat: no-repeat;

}

.user-message, .ai-message {
max-width: 95%;
padding: 10px 15px;
border-radius: 18px;
margin-bottom: 10px;
word-wrap: break-word;
display: inline-block; /* Add this line */
}

.user-message {
align-self: flex-end;
background-color: #030d17;
color: white;
margin-top:50px;
}

.ai-message {
align-self: flex-start;
background-color: #e4e6eb;
color: black;
}

p{
margin-bottom: 0;
}
.input-group {
    margin-top: auto;
    padding: 15px;
    background-color: black;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

#prompt-input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 10px 15px;
    background-color: #e0e0e0;
}

/* #generate-btn {
    border-radius: 20px;
    margin-left: 10px;
    background-color: #030d17;
    color: white;

} */
button:hover #generate-btn .stars{
    border-radius: 20px;
    margin-left: 10px;
    background-color: #030d17;
    color: white;
    display:block;
    filter:drop-shadow(0 0 10px #fffdef);
}
.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    position: absolute; /* Absolute positioning */
    top: 10px; /* Adjust to align it vertically */
    left: 10px; /* Adjust to align it horizontally */
    z-index: 1000; /* Ensure it stays on top */
    margin-left: 10px;
}
.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
#editor-btn{
    position: absolute;
    margin-left: 60px;
}
.icon-btn, i{
    color:white;
    font-size: 25px;
}
.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #05101b;
    margin: 0 5px;
    animation: loading 0.6s infinite alternate;
}

@keyframes loading {
    0% { transform: scale(1); }
    100% { transform: scale(1.5); }
}

/* .container {
    display: flex;
    height: 100vh;
    background-color: aqua;
} */

.history-panel {
    width: 300px;
    background-color: #f0f0f0;
    padding: 20px;
    overflow-y: auto;
    /* padding-top: 10px; */
    
}

/* .main-panel {
    flex-grow: 1;
    padding: 20px;
} */

.history-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.history-item:hover {
    background-color: #e0e0e0;
}
