body {
    background-color: #FFF9FF;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.simulation-container {
    width: 900px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.top-row {
    display: flex;
    align-items: stretch;
}

.control-box {
    border: 4px solid black;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
    background-color: white;
}

.dotted-box {
    border: 2px dotted black;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

.label {
    font-weight: bold;
    font-size: 14px;
}

.voltmeter {
    background-color: #001500;
    color: #90EE90;
    font-weight: bold;
    font-size: 28px;
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-green-square {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #e0ffe0 0%, #90ee90 60%, #32cd32 100%);
    border: 2px solid black;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: inset 0px 0px 5px rgba(255,255,255,0.8);
    transition: transform 0.1s;
}

.btn-green-square:active {
    transform: scale(0.95);
}

.btn-green-square.active {
    background: radial-gradient(circle, #ffffff 0%, #adff2f 60%, #00ff00 100%);
    box-shadow: 0px 0px 15px #00ff00;
}

.btn-gray {
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #aaa;
    cursor: pointer;
}

.btn-gray:hover {
    background-color: #e0e0e0;
}

.wires {
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-top: -20px;
}

.wire {
    height: 10px;
    border-top: 4px solid black;
    border-bottom: 4px solid black;
    background-color: white;
}

.apparatus-box {
    border: 4px solid black;
    width: 260px;
    height: 260px;
    background-color: #888;
}

.bottom-row {
    display: flex;
    gap: 50px;
}

.controls-left {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.breakdowns-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label-bold {
    font-weight: bold;
    font-size: 16px;
}

.breakdown-list {
    width: 100%;
    height: 100px;
    border: 1px solid #aaa;
}

.graph-section {
    flex-grow: 1;
}

.graph-wrapper {
    position: relative;
    width: 450px;
    height: 250px;
}

#graph-canvas {
    border-left: 2px solid black;
    border-bottom: 2px solid black;
    background-color: white;
}

.y-axis-label {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    color: white;
    background-color: #4169E1;
    font-weight: bold;
    padding: 2px 5px;
    font-size: 14px;
}

.x-axis-label {
    position: absolute;
    bottom: -25px;
    right: 0px;
    color: white;
    background-color: #4169E1;
    font-weight: bold;
    padding: 2px 5px;
    font-size: 14px;
}

