.main-container {
    width: 100%;
    max-width: 1600px; /* Increased max-width for widescreen */
    margin: 1rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* New Layout for Widescreen */
.app-layout {
    display: flex;
    flex-direction: column;
}

#ecg-canvas {
    width: 100%;
    height: 80vh;
    background-color: #000;
    cursor: crosshair;
    border-radius: 5px;
}
.side-panel {
    padding: 0;
}

.controls {
    display: flex;
    flex-direction: column; /* Stack controls vertically by default */
    padding: 1rem 0;
    gap: 10px;
}
.control-btn {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #1a73e8;
    background-color: #fff;
    color: #1a73e8;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}
.control-btn.selected {
    background-color: #1a73e8;
    color: #fff;
}
.scoreboard {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.documentation {
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: #fafafa;
    border-radius: 8px;
}

/* Widescreen Media Query */
@media (min-width: 1200px) {
    .app-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .canvas-container {
        flex: 3; /* Canvas takes up more space */
    }
    .side-panel {
        flex: 1; /* Side panel takes up less space */
        padding-top: 0;
    }
}

/* Notification Style */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #1a73e8;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s, transform 0.5s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toggle Switch Styles */
.toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1a73e8;
}

input:checked + .slider:before {
    transform: translateX(22px);
}
