.swim-calculator {
    font-family: var(--font-body);
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.swim-calculator * {
    box-sizing: border-box;
}

.navigation {
    margin-bottom: 1.25rem;
}

.nav-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.nav-step {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--line-1);
    color: var(--text-secondary-6);
}

.nav-step.active {
    background: var(--navy);
    color: white;
    transform: scale(1.05);
}

.nav-step:hover {
    background: var(--line-3);
}

.nav-step.active:hover {
    background: var(--navy);
}

.nav-line {
    width: 2rem;
    height: 0.125rem;
    margin: 0 0.25rem;
    background: var(--line-1);
    transition: all 0.2s;
}

.nav-line.active {
    background: var(--navy);
}

.nav-labels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.nav-label {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    color: var(--text-secondary-6);
}

.nav-label.active {
    color: var(--navy);
    font-weight: 500;
}

.nav-label:hover {
    color: var(--navy);
    background: var(--bg);
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--navy);
    line-height: 1.2;
}

.section {
    background: white;
    border-radius: var(--radius-xxl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line-1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.section-number {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--red);
    color: white;
    font-family: var(--font-mono);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.input-field {
    padding: 0.75rem;
    border: 1px solid var(--line-3);
    border-radius: var(--radius-m);
    background: var(--field-bg);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.input-field:hover {
    background: var(--field-bg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.input-label {
    font-size: 0.75rem;
    color: var(--text-secondary-6);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary-6);
    pointer-events: none;
}

.pace-unit-toggle {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.pace-unit-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--line-3);
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--field-bg);
    color: var(--text-secondary-8);
    flex: 1;
    text-align: center;
    min-width: fit-content;
}

.pace-unit-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.pace-unit-btn:hover {
    background: var(--line-1);
}

.pace-unit-btn.active:hover {
    background: var(--navy);
}

.slider-group {
    margin-bottom: 0.75rem;
}

.slider {
    width: 100%;
    height: 0.25rem;
    background: var(--switch-track);
    border-radius: 9999px;
    outline: none;
    border: none;
    cursor: pointer;
    accent-color: var(--red);
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
}

.result-main {
    background: var(--navy);
    border-radius: var(--radius-l);
    padding: 1rem;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.result-title {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.result-subtitle {
    color: var(--line-3);
    font-size: 0.75rem;
}

.pace-results {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pace-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: white;
}

.pace-item-name {
    flex: 1;
    font-weight: 500;
    text-align: left;
}

.pace-item-time {
    font-weight: 600;
    color: var(--line-3);
}

.results-section {
    margin-top: 1rem;
}

.results-category {
    margin-bottom: 1.5rem;
}

.results-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--navy);
}

.results-list {
    display: grid;
    gap: 0.25rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--field-bg);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.result-item.highlight {
    background: var(--navy);
    color: white;
    font-weight: 600;
}

.result-item-name {
    text-align: left;
}

.result-item-time {
    font-weight: 500;
    color: var(--text-secondary-6);
    text-align: right;
}

.result-item.highlight .result-item-time {
    color: var(--line-3);
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .swim-calculator {
        padding: 0.5rem;
    }

    .section {
        padding: 0.75rem;
    }

    .input-field {
        padding: 0.5rem;
    }

    .pace-unit-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.3rem;
    }
}

@media (min-width: 640px) {
    .swim-calculator {
        max-width: 85vw;
        width: 85%;
    }
}

@media (min-width: 768px) {
    .swim-calculator {
        max-width: 75vw;
        width: 75%;
    }
}

@media (min-width: 1024px) {
    .swim-calculator {
        max-width: 65vw;
        width: 65%;
    }
}

@media (min-width: 1280px) {
    .swim-calculator {
        max-width: 55vw;
        width: 55%;
    }
}
