<?php
if (!defined('ABSPATH')) exit;
?>
        <!-- TAB 4: Advanced Settings -->
        <div id="tab-advanced" class="mtcam-tab-content">
            <h2>⚙️ <?php esc_html_e('Advanced Settings', 'my-trail-camera'); ?></h2>
            <p><?php esc_html_e('Advanced features and data management.', 'my-trail-camera'); ?></p>

            <table class="form-table">
                <tr>
                    <th><label><?php esc_html_e('Data Retention Period', 'my-trail-camera'); ?></label></th>
                    <td>
                        <strong>90</strong> <?php esc_html_e('days', 'my-trail-camera'); ?>
                        <p class="description">🗑️ <?php esc_html_e('Detection records older than 90 days are automatically deleted.', 'my-trail-camera'); ?></p>
                    </td>
                </tr>
                <tr>
                    <th>🔋 <?php esc_html_e('Stolen camera battery', 'my-trail-camera'); ?></th>
                    <td>
                        <label>
                            <input type="checkbox" name="show_battery_stolen" value="yes" <?php checked($settings['show_battery_stolen'], 'yes'); ?>>
                            <?php esc_html_e('Show battery estimate for stolen cameras', 'my-trail-camera'); ?>
                        </label>
                        <p class="description"><?php esc_html_e('When disabled, battery is shown only for active cameras in the field.', 'my-trail-camera'); ?></p>
                    </td>
                </tr>
            </table>

            <div class="mtcam-tip-box mtcam-tip-box-yellow">
                <strong>⚠️ <?php esc_html_e('Warning:', 'my-trail-camera'); ?></strong> <?php esc_html_e('Changing these settings may affect your ability to track and find stolen cameras.', 'my-trail-camera'); ?>
            </div>

        </div>
