.jsim {
    background: #090f18;
    border: 1px solid #38516c;
    border-radius: 10px;
    padding: 16px;
    color: #f0f4fa;
}

.jsim h3, .jsim h4 {
    color: #ffc928;
}

.jsim-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #38516c;
    padding-bottom: 14px;
}

.jsim-scenario {
    background: #172a40;
    padding: 15px;
    border-left: 4px solid #ffc928;
    margin: 16px 0;
    border-radius: 6px;
    line-height: 1.6;
}

.jsim-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.jsim button, .jsim-download {
    background: #142438;
    color: #ffc928;
    border: 1px solid #38516c;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.jsim button:hover,
.jsim button.active,
.jsim-download {
    background: #ffc928;
    color: #080e19;
}

.jsim button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.jsim-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.jsim-card {
    background: #142438;
    border: 1px solid #38516c;
    border-radius: 8px;
    padding: 10px;
}

.jsim-card.selected {
    border: 2px solid #4ade80;
}

.jsim-card canvas {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.jsim-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #d2dcea;
}

.jsim-card button {
    width: 100%;
}

.jsim-timeline {
    background: #111e30;
    border: 1px solid #38516c;
    border-radius: 8px;
    padding: 15px;
    margin-top: 18px;
}

.jsim-event {
    border-left: 3px solid #ffc928;
    margin: 10px 0;
    padding: 10px;
    background: #172a40;
}

.jsim-status {
    color: #d2dcea;
    padding: 12px;
    line-height: 1.6;
}

.jsim-download {
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.jsim-download:visited {
    color: #080e19;
}

.jsim-highlight {
    outline: 2px solid #ffc928;
    outline-offset: 3px;
}

@media(max-width:700px) {
    .jsim-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:450px) {
    .jsim-grid {
        grid-template-columns: 1fr;
    }
}
.jsim-search {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 18px 0;
}

.jsim-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jsim-field label {
    color: #ffc928;
    font-weight: bold;
    font-size: 13px;
}

.jsim-field select {
    background: #142438;
    color: #ffffff;
    border: 1px solid #38516c;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.jsim button.jsim-primary {
    background: #ffc928;
    color: #080e19;
    border: 1px solid #ffc928;
    padding: 14px 22px;
    font-size: 15px;
}

.jsim button.jsim-primary:hover {
    background: #ffdc62;
}

.jsim-summary {
    background: #172a40;
    border-left: 4px solid #4ade80;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    line-height: 1.7;
}

.jsim-route {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin: 18px 0;
}

.jsim-route-item {
    background: #142438;
    border: 1px solid #38516c;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.jsim-route-item canvas {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.jsim-route-time {
    color: #ffc928;
    font-weight: bold;
    margin-top: 10px;
}

.jsim-route-location {
    color: #ffffff;
    font-size: 13px;
    margin-top: 5px;
}

.jsim-live-status {
    color: #4ade80;
    font-weight: bold;
    padding: 12px 0;
}

.jsim-card.selected {
    border: 2px solid #ffc928;
}

.jsim-download,
.jsim-download:visited {
    background: #ffc928;
    color: #080e19;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
}

@media(max-width:650px) {
    .jsim-route {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:450px) {
    .jsim-search {
        grid-template-columns: 1fr;
    }
}
