body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #373636);
    color: #fff;
    padding: 0 20px 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 933px;
    margin: 0 auto;
}

.chat-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    padding: 20px;
    width: 400px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
}


textarea {
    width: 100%;
    height: auto; /* Doesn't expand automatically with content */
    min-height: 100px;
    max-height: 700px; /* Limits how tall the textarea can grow */
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    resize: vertical; /* Allows manual resizing */
    overflow-y: auto; /* Scrolls when content overflows */
    margin-bottom: 10px;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.broom,
#runButton,
#send{
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #4CAF50;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.playback {
    width: 240px;
}

.playStop {
    margin-top: 7px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.broom,
#runButton {
    background: rgba(255, 255, 255, 0.2);
}

.broom,
#runButton:hover {
    background: rgba(255, 255, 255, 0.3);
}

#runButton:active {
    background: rgba(255, 255, 255, 0.87);
}

#send:hover,
button:hover {
    background: #45a049;
}

pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    max-height: 70%;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.previousChatDiv::-webkit-scrollbar,
.think-placeholder::-webkit-scrollbar,
textarea::-webkit-scrollbar,
pre::-webkit-scrollbar {
    width: 8px;
}

.previousChatDiv::-webkit-scrollbar-track,
.think-placeholder::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.previousChatDiv::-webkit-scrollbar-thumb,
.think-placeholder::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.previousChatDiv::-webkit-scrollbar-thumb:hover,
.think-placeholder::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    cursor: grab;
}

.previousChatDiv::-webkit-scrollbar-thumb:active,
.think-placeholder::-webkit-scrollbar-thumb:active,
textarea::-webkit-scrollbar-thumb:active,
pre::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
}

/* Thinking Indicator */
.thinking-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.thinking-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #333;
    font-size: 18px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.think-placeholder {
    font-size: 14px;
    color: rgba(175, 162, 162, 0.7);
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.1;
    background-color: rgba(51, 51, 51, 0.28);
    padding: 12px;
    border-radius: 10px;
    display: none;
    width: 100%;
}

#output {
    width: 100%;
    min-height: 200px;
    max-height: 800px;
    height: auto;
    overflow-y: auto;
    /* Rest of the styling from your pre element will apply since #output is a pre */
}

#output {
    display: none;
}

.llm-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
}

.llm-controls select {
    width: 100%;
    padding: 7px 2px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.llm-controls select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.llm-controls select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

option {
    background: #1e1e1e; /* Dark background for dropdown options */
    color: #fff;        /* White text for better readability */
}

.myInput {
    color: darkgreen;
}

#send {
    margin-bottom: 40px;
}

#send:active {
    background: rgba(76, 175, 80, 0.58);
}

.creativityDiv input {
    cursor: pointer;
}

#input {

}

.creativityDiv p {
    cursor: default;
}

#initialsDate {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    background: rgba(119, 116, 116, 0.7);
    color: white;
    font-size: 12px;
    font-family: Arial, sans-serif;
    border-bottom-right-radius: 8px;
}

.custom-tooltip {
    position: relative;
    cursor: pointer;
}

.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
    top: 100%; /* Show below button */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.custom-tooltip:hover::after {
    opacity: 1;
}

.previousChatDiv {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background-color: rgba(240, 240, 240, 0.11);
    overflow: hidden;
    transition: width 0.3s ease;
}

.previousChatDiv h3, p {
    padding-left: 21px;
}

.previousChatDiv.collapsed {
    width: 10px;
    cursor: pointer;
}

.previousChatDiv .toggle-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(180deg) translateX(-5%);
    background-color: #4CAF50;
    padding: 5px;
    cursor: pointer;
}

.previousChatDiv .toggle-btn:active {
    background: rgba(76, 175, 80, 0.58);
}

.chat-item-container {
    display: flex;
    align-items: center;
}

.broomDiv {
    position: relative;
}

.broom {
    position: absolute;
    cursor: pointer;
    bottom: 14px;
    right: -466px;
    font-size: 20px;
    color: #555;
    z-index: 10;
}

.broomDiv {
    position: relative;
    display: inline-block;
}

/* Broom hover effect */
.broom:hover {
    color: #000;
    transform: scale(1.2);
}

.previousChatDiv {
    height: 100%;
    overflow-y: auto;
}

.chat-item-container {
    margin-bottom: 10px;
}

.previousChatDiv.collapsed {
    overflow: hidden;
}


.loading {
    position: relative;

    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateX(-100%);
    animation: wave 1s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.noSelect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.info-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-color: #00b9fe;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    color: #fff;
    transition: background-color 0.3s ease;
}

.info-icon:hover {
    background-color: #006494;
}

.tooltip {
    position: absolute;
    bottom: 40px;
    right: -10px;
    width: 280px;
    background-color: #1e3c72;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    text-align: center;
}

.info-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    right: 15px;
    border-width: 8px;
    border-style: solid;
    border-color: #1e3c72 transparent transparent transparent;
}

.tooltip a:link,
.tooltip a:visited,
.tooltip a:hover,
.tooltip a:active {
    text-decoration: none;
    color: rgba(11, 232, 18, 0.58);
}

.tooltip a:hover {
    color: rgba(11, 232, 18, 0.8);
}