/* 万歩計タブ専用スタイル */

#tab7Content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.input-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.input-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.input-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.input-row label {
    min-width: 120px;
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.input-row input[type="date"],
.input-row input[type="time"],
.input-row input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-right: 8px;
}

.input-row input[type="date"]:focus,
.input-row input[type="time"]:focus,
.input-row input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.input-row span {
    color: #666;
    font-size: 14px;
}

.input-row textarea {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    resize: vertical;
}

.input-row textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* 運動種別ボタン */
.exercise-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.exercise-btn {
    padding: 8px 16px;
    border: 2px solid #007bff;
    border-radius: 20px;
    background: white;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.exercise-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.exercise-btn.selected {
    background: #007bff;
    color: white;
    opacity: 1;
    transform: scale(1.05);
}

/* 保存ボタン */
.save-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.save-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.save-button:active {
    transform: translateY(0);
}

/* データ表示エリア */
.data-area {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    background: #fafafa;
}

/* 統計表示 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-row label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .exercise-type-buttons {
        justify-content: center;
    }
    
    .exercise-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}