/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background-color: #fafafa; /* Clean background */
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    height: 100vh;
//    overflow: hidden; /* Prevents the whole page from scrolling */
}
/* Chat Box Container */
.chat-container {
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    border: none; /* Removed the 2px border */
    box-shadow: none; /* Removed the retro shadow for a cleaner full-screen look */
}

/* Top Header Bar */
.chat-header {
    background-color: #333;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff00;
    border-radius: 50%;
}

/* Message Area */
#chat-window {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
    line-height: 1.5;
}

#chat-window {
    flex: 1;
    padding: 20px;
    overflow-y: auto; /* Keeps the scrollbar inside the chat area */
    background-color: #ffffff;
    line-height: 1.5;
    word-wrap: break-word; /* Forces long words to wrap */
    overflow-wrap: break-word; /* modern equivalent */
}

.ai-msg {
    margin-bottom: 20px;
    color: #0056b3;
}

.user-msg {
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

/* Input Area at Bottom */
.input-area {
    padding: 15px;
    background: #eeeeee;
    border-top: 2px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
.input-area {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd; /* Subtle top border */
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    bottom: 0;
}
.prompt {
    color: #666;
    font-size: 12px;
}

input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 16px;
}

button {
    background: #333;
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #555;
}

/* The Spinner Animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333; /* Matches your header/text color */
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* Hide the spinner by default */
#loading-spinner {
    display: none;
    padding: 10px;
    font-style: italic;
    color: #666;
}
