:root {
--bg-color: #0f172a;
--panel-bg: #1e293b;
--border-color: #334155;
--text-color: #f8fafc;
--accent-color: #3b82f6;
--success-color: #22c55e;
--error-color: #ef4444;
--font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
}
.container {
max-width: 1400px;
margin: 0 auto;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
header {
padding: 1rem 2rem;
border-bottom: 1px solid var(--border-color);
}
header h1 {
margin: 0;
font-size: 1.5rem;
}
header p {
margin: 0.5rem 0 0;
color: #94a3b8;
font-size: 0.9rem;
}
main {
flex: 1;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background-color: var(--border-color);
overflow: hidden;
}
.panel {
background-color: var(--panel-bg);
display: flex;
flex-direction: column;
min-width: 0;
}
.panel-header {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-header h2 {
margin: 0;
font-size: 1rem;
font-weight: 600;
}
.actions {
display: flex;
gap: 0.5rem;
}
button {
background-color: #334155;
color: white;
border: none;
padding: 0.4rem 0.8rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.85rem;
transition: background 0.2s;
}
button:hover {
background-color: #475569;
}
button.primary {
background-color: var(--accent-color);
}
button.primary:hover {
background-color: #2563eb;
}
.editor-container {
flex: 1;
display: flex;
flex-direction: column;
}
textarea {
flex: 1;
background-color: #1e293b;
color: #e2e8f0;
border: none;
padding: 1rem;
font-family: var(--font-mono);
font-size: 14px;
line-height: 1.5;
resize: none;
outline: none;
}
.log-container {
flex: 1;
overflow-y: auto;
padding: 1rem;
font-family: var(--font-mono);
font-size: 13px;
white-space: pre-wrap;
}
.log-entry {
margin-bottom: 0.5rem;
padding-left: 0.5rem;
border-left: 2px solid transparent;
}
.log-info { color: #94a3b8; }
.log-success { border-left-color: var(--success-color); color: var(--success-color); }
.log-error { border-left-color: var(--error-color); color: var(--error-color); }
.log-model { color: #facc15; }
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
}
.modal.hidden {
display: none;
}
.modal-content {
background: var(--panel-bg);
padding: 1.5rem;
border-radius: 8px;
width: 600px;
max-width: 90%;
border: 1px solid var(--border-color);
}
.modal-content h3 {
margin-top: 0;
}
.modal-content textarea {
width: 100%;
height: 150px;
margin: 1rem 0;
background: #0f172a;
border-radius: 4px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
#ai-status {
margin-top: 1rem;
font-size: 0.9rem;
color: #94a3b8;
}