/* file: data/static/cp_simulator.css */

body, html {
    background: #161a20;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Remove margin for main content to let the layout breathe */
.main-content, main {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

/* No card for main simulator area! */

/* Form layout: clean, horizontal flow */
.simulator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 32px;
    align-items: flex-end;
    margin-bottom: 1.3em;
    background: none;
    padding: 0;
}
.simulator-form > div {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.simulator-form label {
    font-size: 1.05em;
    font-weight: 500;
    margin-bottom: 3px;
}
.simulator-form input,
.simulator-form input[type="password"],
.simulator-form select {
    background: #232b34;
    color: #eaf6ff;
    border-radius: 0.32em;
    border: 1px solid #1b2430;
    font-size: 1.12em;
    padding: 0.37em 0.8em;
    margin-top: 2px;
    min-width: 76px;
}
.simulator-form .form-btns {
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}
.simulator-form button {
    font-size: 1.08em;
    padding: 0.29em 1.4em;
    border-radius: 0.32em;
    margin-right: 10px;
    min-width: 80px;
    cursor: pointer;
}
.simulator-form button[disabled] {
    background: #333;
    color: #aaa;
    cursor: not-allowed;
}

/* Status dot and status text */
.state-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -2px;
    box-shadow: 0 0 4px #0008;
}
.state-dot.online  { background: #48e16c; }
.state-dot.error   { background: #ff3e3e; }
.state-dot.stopped { background: #eee; }

.simulator-status {
    margin-bottom: 1.0em;
    font-size: 1.14em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulator-details {
    font-size: 1.03em;
    margin-bottom: 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 36px;
}
.simulator-details label {
    font-weight: 400;
    margin-right: 4px;
}
.simulator-details .stat {
    font-family: monospace;
    margin-right: 15px;
}

/* Message bar */
.sim-msg {
    color: #5f0;
    font-weight: 500;
    background: #181;
    border-radius: 7px;
    padding: 0.9em 1.1em;
    margin-bottom: 1.1em;
    display: inline-block;
}

.simulator-panel summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.09em;
    margin-bottom: 3px;
}
.simulator-panel pre {
    margin: 0.6em 0 0 0;
    border-radius: 7px;
    padding: 12px 14px;
    font-size: 1.03em;
    overflow-x: auto;
}

.error {
    background: #faa;
    color: #a00;
    padding: 0.8em 1em;
    border-radius: 7px;
    margin-bottom: 1em;
    font-weight: 600;
}

/* Responsive: stack fields on small screens */
@media (max-width: 900px) {
    .simulator-form {
        flex-direction: column;
        gap: 12px 0;
    }
    .simulator-details {
        flex-direction: column;
        gap: 8px 0;
    }
}
