:root { --bg-main: #0a0a0b; --bg-card: #121214; --border: #27272a; --text-main: #fafafa; --text-muted: #a1a1aa; --accent: #ffffff; }
body { margin: 0; padding: 0; background-color: var(--bg-main); color: var(--text-main); font-family: 'Manrope', sans-serif; min-height: 100vh; display: flex; box-sizing: border-box; overflow-x: hidden; }

/* Login View */
#login-view { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; }
.login-card { border: 1px solid var(--border); padding: 4rem; width: 100%; max-width: 450px; background-color: var(--bg-card); text-align: center; box-sizing: border-box; }
.login-card h1 { font-size: 2rem; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 0.5rem; }
.login-card p { color: var(--text-muted); margin-bottom: 2.5rem; }

/* App View */
#app-view { width: 100vw; height: 100vh; display: flex; }
.sidebar { width: 260px; border-right: 1px solid var(--border); background-color: var(--bg-card); display: flex; flex-direction: column; padding: 2rem; }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.sidebar a { color: var(--text-muted); text-decoration: none; padding: 0.75rem 1rem; border-radius: 4px; display: flex; align-items: center; gap: 1rem; font-weight: 600; transition: background 0.2s, color 0.2s; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.05); color: var(--text-main); }
.user-profile { display: flex; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.avatar { width: 32px; height: 32px; background: var(--text-main); color: var(--bg-main); display: flex; justify-content: center; align-items: center; font-weight: 800; border-radius: 50%; }

.main-content { flex: 1; display: flex; flex-direction: column; padding: 3rem 4rem; overflow-y: auto; }
header { margin-bottom: 3rem; }
header h2 { font-size: 1.75rem; font-weight: 700; margin: 0; }
.view-content { display: flex; flex-direction: column; height: 100%; flex: 1; }

.app-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.input-section label, .config-section label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.input-field, textarea, select { width: 100%; background-color: var(--bg-main); color: var(--text-main); border: 1px solid var(--border); padding: 1rem; font-family: 'Manrope', sans-serif; font-size: 1rem; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease; margin-bottom: 1.5rem; }
textarea { height: 500px; line-height: 1.6; resize: none; }
.input-field:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.config-card { border: 1px solid var(--border); padding: 2rem; background-color: var(--bg-card); transition: transform 0.2s ease; }
.config-card:hover { transform: translateY(-2px); }
.config-card h3 { margin: 0 0 1.5rem 0; font-size: 1.25rem; font-weight: 700; }

#console-output { width: 100%; height: 500px; background-color: var(--bg-main); color: var(--text-muted); border: 1px solid var(--border); padding: 1.5rem; font-family: monospace; font-size: 0.95rem; text-align: left; box-sizing: border-box; overflow-y: auto; white-space: pre-wrap; line-height: 1.7; margin-bottom: 1.5rem; }

.action-btn { background: var(--text-main); color: var(--bg-main); border: none; padding: 1.25rem 2rem; font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; transition: opacity 0.2s ease; letter-spacing: 0.5px; }
.action-btn:hover { opacity: 0.9; }
.action-btn:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }