/* ECG Waveform Styles */
.ecg-section {
    flex: 0 0 30vh;
    min-height: 25vh;
    position: relative;
    cursor: pointer;
    transition: outline 0.2s;
    background: var(--color-bg);
}

.ecg-section:active {
    outline: 1px solid rgba(255, 255, 255, 0.3);
}

#ecgCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ECG Detail Overlay */
.ecg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 20px;
}

.ecg-overlay.active {
    display: flex;
}

.ecg-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ecg-overlay-title {
    font-size: 18px;
    font-weight: 300;
}

.ecg-overlay-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--color-text-secondary);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ecg-overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text);
}

#ecgDetailCanvas {
    flex: 1;
    width: 100%;
    background: var(--color-bg);
}

.ecg-overlay-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.ecg-export-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--color-text-secondary);
    color: var(--color-text);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.ecg-export-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text);
}