<!-- Schedule Break Modal -->
<div class="modal fade" id="scheduleBreakModal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-info text-white">
                <h5 class="modal-title"><i class="fas fa-coffee mr-2"></i>Schedule Break</h5>
                <button type="button" class="close text-white" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="break_table_select"><strong>Select Table</strong></label>
                    <select class="form-control" id="break_table_select" required>
                        <option value="">-- Select Table --</option>
                        <?php for ($t = 1; $t <= $no_of_table; $t++): ?>
                            <option value="<?= $t ?>">Table <?= $t ?></option>
                        <?php endfor; ?>
                    </select>
                </div>
                <div class="form-group">
                    <label for="break_duration"><strong>Break Duration (hours)</strong></label>
                    <input type="number" 
                           class="form-control" 
                           id="break_duration" 
                           min="0.5" 
                           max="10" 
                           step="0.5" 
                           value="1" 
                           required>
                    <small class="form-text text-muted">Enter duration between 0.5 and 10 hours</small>
                </div>
                <div class="form-group">
                    <label for="break_reason"><strong>Break Reason</strong></label>
                    <select class="form-control" id="break_reason" required>
                        <option value="">-- Select Reason --</option>
                        <option value="Lunch Break">Lunch Break</option>
                        <option value="Tea Break">Tea Break</option>
                        <option value="Maintenance">Scheduled Maintenance</option>
                        <option value="Meeting">Team Meeting</option>
                        <option value="Training">Training Session</option>
                        <option value="Other">Other</option>
                    </select>
                </div>
                <div class="form-group" id="other_reason_group" style="display: none;">
                    <label for="other_break_reason"><strong>Specify Reason</strong></label>
                    <input type="text" 
                           class="form-control" 
                           id="other_break_reason" 
                           placeholder="Enter custom reason">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">
                    <i class="fas fa-times mr-1"></i> Cancel
                </button>
                <button type="button" class="btn btn-info" id="submitScheduleBreak">
                    <i class="fas fa-check mr-1"></i> Schedule Break
                </button>
            </div>
        </div>
    </div>
</div>