/* ========== EditWorkoutPage ========== */

.edit-workout-content {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* ── Section card ─────────────────────────────────────────────────────────── */

.edit-workout-card {
    background: #ffffff;
    border: 1px solid rgba(46, 44, 40, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.edit-workout-card-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(46, 44, 40, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}

.edit-workout-error {
    font-size: 13px;
    color: #b00020;
    margin: 0 0 10px;
}

/* ── Focus area select row ────────────────────────────────────────────────── */

.edit-workout-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.edit-workout-select-row:first-of-type {
    margin-top: 0;
}

/* ── Custom select wrapper ────────────────────────────────────────────────── */

.edit-workout-select-wrapper {
    position: relative;
    flex: 1;
    height: 48px;
    border: 1px solid rgba(46, 44, 40, 0.2);
    border-radius: 10px;
    background: #fefefd;
    display: flex;
    align-items: center;
    padding: 0 10px 0 14px;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.edit-workout-select-wrapper:focus-within {
    border-color: #006a8e;
    box-shadow: 0 0 0 3px rgba(0, 106, 142, 0.12);
}

.edit-workout-select-value {
    flex: 1;
    font-size: 15px;
    color: #2e2c28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.edit-workout-select-placeholder {
    color: rgba(46, 44, 40, 0.38);
}

.edit-workout-select-wrapper svg {
    flex-shrink: 0;
    opacity: 0.4;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

/* The native select is invisible but covers the entire wrapper so it captures clicks */
.edit-workout-select-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    font-size: 16px; /* prevents iOS auto-zoom */
}

/* ── Info button ──────────────────────────────────────────────────────────── */

.edit-workout-info-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.15s;
}

.edit-workout-info-btn:hover {
    opacity: 1;
}

.edit-workout-info-placeholder {
    width: 32px;
    flex-shrink: 0;
}

/* ── Save footer ──────────────────────────────────────────────────────────── */

.edit-workout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 16px 8px;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid rgba(46, 44, 40, 0.08);
}

@media (min-width: 600px) {
    .edit-workout-content {
        padding: 24px 16px 32px;
    }

    .edit-workout-footer {
        position: static;
        border-top: none;
        background: transparent;
        padding: 0 0 32px;
    }
}
