:root { --bg-dark: #121315; --bg-panel: #1a1c1f; --text-main: #ffffff; --dot-grey: #3b3d42; --dot-white: #ffffff; --border: #2c2e33; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 30px; border-bottom: 1px solid var(--border); background: var(--bg-dark); }
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.nav-center { display: flex; align-items: center; gap: 20px; }
.model-select-wrapper { display: flex; align-items: center; background: var(--bg-panel); border: 1px solid var(--border); padding: 5px 15px; border-radius: 20px; gap: 8px;}
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; }
.icon-monitor { font-size: 14px; }
.model-select { background: transparent; color: #fff; border: none; font-family: inherit; font-size: 13px; font-weight: 600; outline: none; cursor: pointer;}
.agent-icons { display: flex; gap: 10px; }
.agent-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-panel); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; border: 1px solid var(--border); transition: 0.2s;}
.agent-icon:hover { background: #3b3d42; }
.agent-icon.active { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.sync-status { font-size: 12px; display: flex; align-items: center; gap: 10px; }
.port-info { color: #888; }
.badge-online { border: 1px solid #10b981; color: #10b981; padding: 2px 8px; border-radius: 4px; font-weight: 600; background: rgba(16, 185, 129, 0.1);}
.btn-icon { background: transparent; border: none; font-size: 18px; cursor: pointer; filter: grayscale(1); transition: 0.2s; }
.btn-icon:hover { filter: grayscale(0); }

.layout { display: flex; flex: 1; overflow: hidden; }
.hero-panel { flex: 0 0 28%; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--border); background: var(--bg-dark); padding: 30px;}

/* Agent Status Card */
.agent-status-card { width: 100%; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 40px;}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.agent-info { display: flex; align-items: center; gap: 15px; }
.agent-emoji { width: 40px; height: 40px; background: #2c2e33; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px;}
.agent-info h3 { font-size: 14px; font-weight: 700; margin: 0 0 4px 0;}
.agent-info small { font-size: 11px; color: #aaa; }
.badge-standby { background: #2c2e33; color: #ccc; font-size: 11px; padding: 4px 8px; border-radius: 4px; font-weight: 600;}
.card-details { display: flex; justify-content: space-between; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 15px 0; margin-bottom: 15px;}
.detail-block label { display: block; font-size: 10px; color: #888; margin-bottom: 5px;}
.detail-block p { font-size: 12px; font-weight: 600; margin: 0;}
.cpu-load .cpu-header { display: flex; justify-content: space-between; font-size: 11px; color: #888; margin-bottom: 8px;}
.progress-bar { width: 100%; height: 6px; background: #2c2e33; border-radius: 3px; overflow: hidden;}
.progress-bar .fill { height: 100%; background: #10b981; }

/* Hero Content */
.logo-mark { display: grid; grid-template-columns: repeat(3, 30px); gap: 8px; margin-bottom: 20px; }
.dot { width: 30px; height: 30px; border-radius: 50%; }
.dot.grey { background-color: var(--dot-grey); }
.dot.white { background-color: var(--dot-white); box-shadow: 0 0 10px rgba(255,255,255,0.2); }
.brand-name { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; }
.subtitle { color: #888; margin-bottom: 30px; font-size: 14px;}
.btn-primary { background: #fff; color: #000; border: none; padding: 12px 30px; font-weight: 600; border-radius: 6px; cursor: pointer; font-size: 14px;}

/* Config Panel */
.config-panel { flex: 0 0 42%; background: var(--bg-dark); padding: 40px; overflow-y: auto; border-right: 1px solid var(--border); }
.config-title { font-size: 20px; font-weight: 800; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.form-section { margin-bottom: 25px; background: var(--bg-panel); padding: 20px; border-radius: 8px; border: 1px solid var(--border);}
.form-section h3 { font-size: 14px; color: #fff; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px;}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #aaa; margin-bottom: 8px; }
.form-group input, .form-group textarea, .cyber-select { width: 100%; background: var(--bg-dark); border: 1px solid var(--border); color: #fff; padding: 10px; border-radius: 6px; font-family: inherit; font-size: 13px; outline: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .cyber-select:focus { border-color: #fff; }
.param-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ccc; cursor: pointer; margin:0;}
.btn-save { background: #fff; color: #000; border: none; padding: 12px 24px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.2s; width: 100%; font-size: 14px;}
.btn-save:hover { background: #ddd; }

/* Chat Panel */
.chat-panel { flex: 0 0 30%; display: flex; flex-direction: column; background: var(--bg-panel); }
.chat-history { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 8px; line-height: 1.5; font-size: 13px; }
.msg.agent { background: #2c2e33; align-self: flex-start; }
.msg.user { background: #ffffff; color: #000; align-self: flex-end; }
.chat-input-area { padding: 15px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; background: var(--bg-dark); border: 1px solid var(--border); padding: 10px; color: #fff; border-radius: 6px; outline: none; font-size: 13px;}
.chat-input-area input:focus { border-color: #fff; }
.btn-send { background: #fff; color: #000; border: none; padding: 0 15px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 13px;}
