:root {
    --bg-color: #131314;
    --sidebar-bg: #1e1f20;
    --text-color: #e3e3e3;
    --border-color: #333537;
    --input-bg: #212121;
    --accent-color: #8ab4f8;
}

#llm-premium-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
    z-index: 999999;
}

#llm-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#llm-sidebar.closed { transform: translateX(-100%); position: absolute; height: 100%; }

.sidebar-header { margin-bottom: 24px; }
#llm-new-chat-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

#llm-chat-list { flex: 1; overflow-y: auto; }
.llm-chat-item {
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.llm-chat-item:hover { background: #333; }
.llm-chat-item.active { background: #444; font-weight: bold; }

.sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border-color); }

#llm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
#llm-top-bar {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

#llm-sidebar-toggle { background: none; border: none; color: var(--text-color); font-size: 24px; cursor: pointer; }
#llm-model-select { background: transparent; border: none; color: var(--text-color); font-size: 16px; font-weight: bold; outline: none; }

#llm-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 40px 15%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message-row { display: flex; gap: 20px; padding: 20px; border-radius: 12px; }
.message-row.user { background: #2f2f2f; }

.msg-avatar {
    width: 32px;
    height: 32px;
    background: #555;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-content { flex: 1; line-height: 1.6; font-size: 16px; color: #e3e3e3 !important; }
.msg-content * { color: #e3e3e3 !important; }
.msg-content pre { background: #000; padding: 15px; border-radius: 8px; overflow-x: auto; }

#llm-input-area { padding: 20px 15%; background: var(--bg-color); }
.input-wrapper {
    background: var(--input-bg);
    border: 1px solid #444;
    border-radius: 24px;
    padding: 10px 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

#llm-chat-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 16px;
    outline: none !important;
    resize: none;
    padding: 8px 0;
    display: block;
}

#llm-chat-send {
    background: var(--accent-color);
    color: black;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-hidden { display: none !important; }
#llm-set-instructions { color: white !important; }
