* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #0a0a1a; color: #e0e0e0; min-height: 100vh; }

/* NAV */
.topnav { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: #12122a; border-bottom: 1px solid #e94560; }
.nav-brand { color: #e94560; font-size: 18px; font-weight: bold; text-decoration: none; }
.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #e94560; }

/* CONTENT */
.content { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* BUTTONS */
.btn { padding: 6px 16px; border: 1px solid #333; border-radius: 4px; background: #1a1a3e; color: #e0e0e0; cursor: pointer; font-size: 13px; }
.btn:hover { background: #2a2a5e; border-color: #555; }
.btn-primary { background: #e94560; border-color: #e94560; color: #fff; }
.btn-primary:hover { background: #c13350; }
.btn-danger { background: #aa0000; border-color: #aa0000; color: #fff; }
.btn-danger:hover { background: #880000; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* INPUTS */
.input { padding: 8px 12px; background: #0a0a1a; border: 1px solid #333; border-radius: 4px; color: #e0e0e0; font-size: 14px; }
.input:focus { outline: none; border-color: #e94560; }

/* LOGIN */
.login-page { display: flex; justify-content: center; align-items: center; height: calc(100vh - 60px); }
.login-box { background: #12122a; padding: 40px; border-radius: 8px; border: 1px solid #333; text-align: center; min-width: 350px; }
.login-box h1 { color: #e94560; margin-bottom: 20px; font-size: 24px; }
.login-box .input { width: 100%; margin-bottom: 15px; }
.login-box .btn { width: 100%; }
.login-error { color: #ff5555; margin-bottom: 15px; font-size: 14px; }

/* SERVER LIST */
.server-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.server-card { display: flex; align-items: center; justify-content: space-between; background: #12122a; border: 1px solid #333; border-radius: 6px; padding: 15px 20px; }
.server-card:hover { border-color: #e94560; }
.server-info { flex: 1; }
.server-name { font-size: 16px; font-weight: bold; color: #e0e0e0; }
.server-url { font-size: 13px; color: #888; margin-top: 3px; }
.server-actions { display: flex; gap: 8px; }

/* ADD SERVER FORM */
.add-server { background: #12122a; border: 1px solid #333; border-radius: 6px; padding: 20px; margin-top: 20px; }
.add-server h3 { margin-bottom: 15px; color: #e94560; }
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-row .input { flex: 1; min-width: 150px; }

/* CONSOLE */
.console-container { display: flex; flex-direction: column; height: calc(100vh - 120px); }
.console-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.console-header h2 { color: #e94560; font-size: 18px; }
.console-output {
    flex: 1; background: #050510; border: 1px solid #333; border-radius: 4px;
    padding: 10px; overflow-y: auto; font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px; line-height: 1.5;
}
.console-input-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.console-prompt { color: #e94560; font-family: monospace; font-size: 16px; font-weight: bold; }
.console-input {
    flex: 1; padding: 8px 12px; background: #050510; border: 1px solid #333;
    border-radius: 4px; color: #e0e0e0; font-family: 'Consolas', monospace; font-size: 14px;
}
.console-input:focus { outline: none; border-color: #e94560; }
.console-msg { margin: 1px 0; white-space: pre-wrap; word-break: break-all; }
.console-msg .time { color: #666; margin-right: 8px; }
.console-msg .instance { color: #888; margin-right: 8px; }

/* BADGE */
.badge { padding: 3px 8px; border-radius: 3px; font-size: 12px; }
.badge-ok { background: #00aa00; color: #fff; }
.badge-err { background: #aa0000; color: #fff; }

/* MODAL */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 100; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: #12122a; border: 1px solid #333; border-radius: 8px; padding: 30px; min-width: 400px; }
.modal-box h3 { color: #e94560; margin-bottom: 15px; }
.modal-box .input { width: 100%; margin-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; }
