/* Monitor Vitals Styling */
#vitals-display {
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #0f0;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

.vital-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.vital-label {
    width: 100px;
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    z-index: 10;
}

.vital-value {
    width: 150px;
    font-size: 5em;
    font-weight: bold;
    text-align: right;
    margin-right: 20px;
    z-index: 10;
    text-shadow: 0 0 10px currentColor;
}

.vital-graph {
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.vital-graph canvas {
    width: 100%;
    height: 100%;
}

/* Specific Colors */
.heart-rate { color: #0f0; } /* Green */
.spo2 { color: #0ff; } /* Cyan */
.bp { color: #f00; } /* Red */
.resp { color: #ff0; } /* Yellow */

/* Setup Panel in Control */
#setup-panel {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#trial-list {
    list-style: none;
    padding: 0;
    border: 1px solid #eee;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

#trial-list li {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#trial-list li:last-child {
    border-bottom: none;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* ROSC Button */
#btn-rosc {
    background-color: #ffc107;
    color: #000;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    display: none; /* Hidden by default */
}
