/* Pace Calculator Specific Styles */

/* Radio button inline groups */
.inline-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.inline-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    cursor: pointer;
}

.inline-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Input with select (distance + unit) */
.input-with-select {
    display: flex;
    gap: 8px;
}

.input-with-select .form-input {
    flex: 1;
}

.input-with-select .form-select {
    width: auto;
    min-width: 110px;
}

/* Time inputs row */
.time-inputs {
    display: flex;
    gap: 8px;
}

.time-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.time-input-wrapper .form-input {
    text-align: center;
}

.time-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* Pace inputs (time + unit select) */
.pace-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pace-inputs .time-inputs {
    flex: 1;
}

.pace-inputs .form-select {
    width: 100%;
}

@media (min-width: 480px) {
    .pace-inputs {
        flex-direction: row;
        align-items: flex-start;
    }

    .pace-inputs .form-select {
        width: auto;
        min-width: 110px;
        margin-top: 0;
    }
}

/* Splits table */
.splits-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.splits-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.splits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.splits-table th,
.splits-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.splits-table th {
    font-weight: 600;
    color: #666;
    background: #f9f9f9;
}

.splits-table td {
    color: #333;
}

.splits-table tr:last-child td {
    border-bottom: none;
}

/* Animation for results */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden group styling */
.form-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}
