@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&family=Inter:wght@400;500;700&display=swap');

:root {
    --bg-color: #2a3t45;
    --surface-color: #3c4a56;
    --primary-color: #007bff;
    --text-color: #e0e0e0;
    --text-secondary-color: #a0a0a0;
    --border-color: #4a5b6c;
    --success-color: #00ff88;
    --error-color: #ff4444;
    --font-family-sans: 'Inter', sans-serif;
    --font-family-mono: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-family-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

#root {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5em;
    font-weight: 700;
}

.chat-window {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 20px;
    line-height: 1.6;
}

.message .sender {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.message .content p {
    margin-bottom: 1em;
}

.message .content pre {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-family-mono);
}

.message .content code {
    font-family: var(--font-family-mono);
}

.message .content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.input-form {
    display: flex;
    gap: 10px;
}

.input-form textarea {
    flex-grow: 1;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-color);
    font-family: var(--font-family-sans);
    font-size: 1em;
    resize: none;
}

.input-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.input-form button:hover {
    background-color: #0056b3;
}

.status-bar {
    padding: 10px 20px;
    font-size: 0.9em;
    color: var(--text-secondary-color);
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.sidebar-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.sidebar-section h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--success-color);
}

.status-indicator.offline {
    background-color: var(--error-color);
}

.usage-display, .h100-display {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
}

.usage-display div, .h100-display div {
    margin-bottom: 8px;
}

.sidebar-controls button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.sidebar-controls button:hover {
    background-color: #333;
}

.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.mode-selector button {
    flex-grow: 1;
    padding: 8px;
    background-color: var(--surface-color);
    color: var(--text-secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.mode-selector button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700;
}


/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}
