@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-bg-color: #1e1e1e;
    --secondary-bg-color: #2d2d2d;
    --tertiary-bg-color: #3c3c3c;
    --text-color: #e0e0e0;
    --accent-color: #4a90e2;
    --border-color: #444;
    --font-family: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 218px;
    background-color: var(--secondary-bg-color);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-header .sub-heading {
    font-size: 0.9rem;
    font-weight: 300;
    color: #b0b0b0;
}

.new-chat-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.new-chat-btn:hover {
    background-color: #357abd;
}

.sidebar-nav {
    flex-grow: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover {
    background-color: var(--tertiary-bg-color);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.sidebar-footer a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-footer a:hover {
    background-color: var(--tertiary-bg-color);
}

i {
    margin-right: 10px;
}

.app-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 1rem 0;
    padding: 0;
    object-fit: contain;
}

/* Chat Area */
.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-window {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    display: flex;
    align-items: flex-start;
    max-width: 80%;
}

.message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.message p {
    background-color: var(--secondary-bg-color);
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.6;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .avatar {
    margin-left: 1rem;
    margin-right: 0;
}

.user-message p {
    background-color: var(--accent-color);
    color: white;
}


/* Chat Input */
.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.chat-input-wrapper textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    resize: none;
    height: 24px;
    max-height: 120px; 
    overflow-y: auto;
    font-family: var(--font-family);
}

.chat-input-wrapper textarea:focus {
    outline: none;
}

.chat-input-wrapper button {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
}

/* For bot loading animation */
.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-color);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
        transform: scale(1.0);
    }
}

.copy-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
    transition: color 0.2s;
}
.copy-btn:hover {
    color: #357abd;
} 