/* Heart Rate Display Styles */
.hr-section {
    flex: 0 0 28vh;
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hr-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 20px;
}

.hr-value {
    font-size: 72px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 0.9;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.hr-value.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hr-unit {
    font-size: 24px;
    color: var(--color-text-secondary);
    margin-left: 10px;
}

/* Heart Rate Zone Bar */
.zone-container {
    width: 80%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zone-bar {
    width: 100%;
    height: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.zone-segment {
    flex: 1;
    height: 100%;
    position: relative;
    transition: opacity 0.3s ease;
}

.zone-segment:nth-child(1) { background: var(--color-zone-1); }
.zone-segment:nth-child(2) { background: var(--color-zone-2); }
.zone-segment:nth-child(3) { background: var(--color-zone-3); }
.zone-segment:nth-child(4) { background: var(--color-zone-4); }
.zone-segment:nth-child(5) { background: var(--color-zone-5); }

.zone-segment.inactive {
    opacity: 0.2;
}

.zone-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, left 0.3s ease;
    pointer-events: none;
}

.zone-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Contact indicator */
.contact-indicator {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.contact-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-secondary);
    transition: background 0.3s;
}

.contact-indicator.good::before {
    background: var(--color-success);
}

.contact-indicator.poor::before {
    background: var(--color-warning);
}

.contact-indicator.none::before {
    background: var(--color-error);
}